Using regrid function with only 2 dimensions

P.R. romero619 at HOTMAIL.COM
Sun Jun 21 23:37:19 EDT 2009


Im trying to plot a regridded variable in 2D space, i.e., a line graph.
However, Im receiving an error about having "Invalid grid coordinates".
Here's my output...

ga-> set lon -110 -100
LON set to -110 -100
ga-> set lat 10 25
LAT set to 10 25
ga-> g=regrid2(u,0.25,0.25)
41 -100 -110
re_(u,41,LINEAR,-110,0.25,61,LINEAR,10,0.25,ba)

Regrid Successful! The output grid is UNIFORM lat/lon:

UNDEF   1.000000e+15
XDEF    41      LINEAR  -110    0.25
YDEF    61      LINEAR  10      0.25
regrid method is: box averaging

re: all done!
Define memory allocation size = 20008 bytes
ga-> set lon -110
LON set to -109.999 -109.999
ga-> d g
Data Request Error: Invalid grid coordinates
  World coordinates convert to non-integer  grid coordinates
    Variable = g  Dimension = 0
  Error ocurred at column 1
DISPLAY error:  Invalid expression
  Expression = g

It seems that grads wont let me plot a line graph from a variable created
using re()...
Is there a work-around for this? Am I doing something wrong?

Please help,
Thanks,
P.R.



More information about the gradsusr mailing list