[Thread Prev][Thread Next][Index]

Re: [ferret_users] Fw: modulo



Hi Anita,
When you did the CANCEL AXIS/MODULO command, did you intend to apply that to the X axis?  From what you say, it looks like you watnted it to apply to the X axis, but have specified the Y axis instead. Also, the syntax is can axis/modulo `my_var,return=yaxis`  (not var=my_var).

Ferret automatically sets longitude axes as moduo, if the range of the axis is less than or equal to 360 degrees, but you can turn off the modulo setting with CANCEL AXIS/MODULO `my_var, return=xaxis`

Please write back if I've missed what you were intending to ask.

Ansley

Anita Gera wrote:
 
 
Hello,
 
If I do the following , I am obtaining extra edges and modulo in the output file .
 
use my_file
can axis/modulo `var=my_var,return=yaxis`
save/clobber/file=my_file.nc my_var

I see, the x-axis is now modulo. Originally:
dimensions:
    my_var=150
..............
..................
float xt_i(xt_i) ;
xt_i:long_name = "Longitude of T points" ;
xt_i:units = "degrees_E" ;
xt_i:cartesian_axis = "X" ;
new file:
dimensions:
    my_var=150
    my_varedges=151
..............
..................

double XT_I(XT_I) ;
XT_I:units = "degrees_east" ;
XT_I:modulo = 360. ;
XT_I:point_spacing = "uneven" ;
XT_I:axis = "X" ;
XT_I:bounds = "XT_I_bnds" ;
 
 
Can someone please solve. 
 

[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement