Problem in Use of gr2stn

mmacleod mmacleod at SCOTIAWEATHER.COM
Thu Mar 12 14:01:45 EDT 2009


Good afternoon Folks.

I am trying to get the function gr2stn working in GrADS 2.0.5

I am attaching a png file that shows the area of coverage and the
control file so one can see the grads expression is correct.

Here is the output from the command line:

ga->   Expression = gr2stn(t,-60.05,46.16)
Notice:  Automatic Grid Interpolation Taking Place
DEFINE Error:  Define does not yet support station data
    Expression results in station data object

then I cleared the display with  clear command  and then I get this

ga-> d gr2stn(t2,-60.05,46.16)
Notice:  Automatic Grid Interpolation Taking Place
Invalid station data dimension environment


I have tried several variables but get the same answer. The
documentation says:


    *gr2stn()*

This function is a grid-to-station interpolator. It creates "station"
data by taking a 1-dimensional sample from a gridded data set and
interpolating to a given location. That location may be provided by
specifying a longitude and a latitude, or by providing a station
expression.

      |gr2stn(/grid_expr, lon, lat <,-a>/)|
      or
      |gr2stn(/grid_expr, stn_expr <,-a>/)|

where:

      |/grid_expr/| is a GrADS expression that gives a grid result. The
      interpolation will be done on this data.

      |/stn_expr/| is a GrADS expression that gives a station data
      result. The interpolation will be done to the station /location/,
      the value of the station data is not used.

      |/lon,lat/| may be used instead of |/stn_expr/| to specify the
      location to which the gridded data will be interpolated.


      Any Help would be greatly appreciated.

      Sincerely

      Mac MacLeod





--
M.A. (Mac) MacLeod
President and General Manager
Scotia Weather Services Inc
192 Wyse Road, Suite 8,
Dartmouth, N.S. B3A 1M9

Tele: 902-468-3866
Fax:  902-461-1768
E-mail: mmacleod at scotiaweather.com
Visit us: www.scotiaweather.com

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: WRF1KM.ctl
Url: http://gradsusr.org/pipermail/gradsusr/attachments/20090312/49a3291a/attachment.pl 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WRF_1KMCapeB_HrWindSpdH01.png
Type: image/png
Size: 18751 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20090312/49a3291a/attachment.png 


More information about the gradsusr mailing list