[gradsusr] Find nearest valid data

Stephen McMillan smcmillan at planalytics.com
Thu Jun 23 17:13:09 EDT 2016


Hi Sam,

'set x 1';'set y 1'
'set gxout print';'set prnopts %0.3f'      or your format of choice
'd gr2stn(var,lon,lat,-n)'  where var is the variable you wish to query

-n gets value from nearest grid to that lon/lat

You could also use 'q defval...' to query specific grids surrounding a
point, using the x and y coordinates.  References:

http://cola.gmu.edu/grads/gadoc/gradfuncgr2stn.html

http://cola.gmu.edu/grads/gadoc/gradcomdquery.html

You might find 'set gxout grid' useful in displaying the grid values
surrounding a point

Stephen

On Thu, Jun 23, 2016 at 4:55 PM, Sam Wilson <sam at surfline.com> wrote:

> Hi,
>
> I came across the following issue and am having the same problem but never
> saw a response:
>
> <http://gradsusr.org/pipermail/gradsusr/2010-July/028033.html>
> <http://gradsusr.org/pipermail/gradsusr/2010-July/028033.html>
>
> *http://gradsusr.org/pipermail/gradsusr/2010-July/028033.html
> <http://gradsusr.org/pipermail/gradsusr/2010-July/028033.html>*
>
>
> I know by default GrADS will return data from the nearest grid point to
> the lat/lon specified.  Is there any sort of function that will return the
> nearest non-undefined data?
>
>
> Thanks,
>
> Sam
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20160623/d148edfb/attachment.html 


More information about the gradsusr mailing list