[gradsusr] Find nearest valid data

Sam Wilson sam at surfline.com
Thu Jun 23 17:50:01 EDT 2016


Thank you Stephen! I’ll give those a shot.

Best,
Sam


From: <gradsusr-bounces at gradsusr.org<mailto:gradsusr-bounces at gradsusr.org>> on behalf of Stephen McMillan <smcmillan at planalytics.com<mailto:smcmillan at planalytics.com>>
Reply-To: GrADS Users Forum <gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>>
Date: Thursday, June 23, 2016 at 2:13 PM
To: GrADS Users Forum <gradsusr at gradsusr.org<mailto:gradsusr at gradsusr.org>>
Subject: Re: [gradsusr] Find nearest valid data

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<mailto: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

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<mailto: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/a829d6eb/attachment.html 


More information about the gradsusr mailing list