Helloo!!!
When My supervisor try to use the .nc file I got...and he ask me from which position the angle of each cell is readed... I didn't know what to answer...
I mean the axe 0->x (hotizontal=east) is equivalent to 0 degree and 0->y (vertical=north) 90 degrees...or there is other convention.. like start reading the angles of the cell distorsion from the left (0 -> -x) axe...
Thank you: r
From which axes does start to read the angle (.nc file from)
Re: From which axes does start to read the angle (.nc file from)
The grid angle is the angle between the positive i direction and due east. A grid aligned with i increasing eastward will have a zero angle. My Northeast Pacific grid is tilted so that positive i is heading ENE at the southern end, pointing nearly northward at the northern end. The value of angle will be nearly 90 degrees (pi/2) at the 'northern' end (which is actually facing west). Perhaps a picture would help:
Re: From which axes does start to read the angle (.nc file from)
Thanks Kate...
Even if the pic is not visible I believe I got it...
RRR
Even if the pic is not visible I believe I got it...
RRR
Re: From which axes does start to read the angle (.nc file from)
How to interpret the sense of the rotation is sometimes confusing. i.e. do you rotate a vector in roms coordinates by *angle* to place it in earth coordinates for plotting, or rotate data in earth coordinates by *angle* for input?
I sometimes add an "equation" attribute to angle in my grid file to remind myself:
angle:long_name = "angle ROMS xi axis is rotated anticlockwise from due east" ;
angle:equation = "u(roms)=Real((Ueast+i*Vnorth)*exp(-i*angle)) and v(roms)=Imag((Ueast+i*Vnorth)*exp(-i*angle))" ;
angle:units = "radian" ;
I sometimes add an "equation" attribute to angle in my grid file to remind myself:
angle:long_name = "angle ROMS xi axis is rotated anticlockwise from due east" ;
angle:equation = "u(roms)=Real((Ueast+i*Vnorth)*exp(-i*angle)) and v(roms)=Imag((Ueast+i*Vnorth)*exp(-i*angle))" ;
angle:units = "radian" ;
John Wilkin: DMCS Rutgers University
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu
71 Dudley Rd, New Brunswick, NJ 08901-8521, USA. ph: 609-630-0559 jwilkin@rutgers.edu
Re: From which axes does start to read the angle (.nc file from)
ok!! really good idea...
Thank you Wilkin: R
Thank you Wilkin: R