Hi Lev, The SCAT2GRID functions don't apply modulo shifting to the scattered X location data. The note in the SCAT2GRIDGAUSS_XY documentation in the Users Guide is If the output X axis is a modulo longitude axis, then the scattered X values should lie within the range of the actual coordinates of the axis. That is, if the scattered X values are xpts={355, 358, 2, 1, 352, 12} and the coordinates of the X axis you wish to grid to are longitudes of x=20,23,25,...,379 then you should apply a shift to your scattered points ... This means that, for instance, if your variable xln cpntains values such as x= {-2, -3, 0.4, 1., 19} and if you define an axis, DEFINE AXIS/X=4.75W:119.25E:0.5/UNIT=DEGREE xlone5fb The values on the X axis are used in the function as 355.25, 355.75, ... yes? set list/prec=6And so you would need to add 360 to xln before calling the function. Or, you could define your axis starting with x= -4.75E as follows to perhaps match the modulo branch that the scattered x values lie in: yes? DEFINE AXIS/X=-4.75E:119.25E:0.5/UNIT=DEGREE xlone5fbIs this the kind of thing that you're seeing?? Ansley Lev Tarasov wrote: Hi; |