comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Unable to get GRIDDATA Function to Work Properly
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Unable to get GRIDDATA Function to Work Properly [message #77225 is a reply to message #77216] Tue, 16 August 2011 09:32 Go to previous message
Jeremy Bailin is currently offline  Jeremy Bailin
Messages: 618
Registered: April 2008
Senior Member
On 8/15/11 10:01 PM, Jon wrote:
> Hello IDL'ers
>
> I'm trying to do some interpolation with the GRIDDATA function.
>
> I have a regular lon/lat grid spanning the globe, consisting of values
> that are either 0 or 1. I am trying to interpolate these values to an
> irregular lon/lat grid spanning much of the U.S.
>
> Trouble is, no matter what I do, I cannot get the routine to give me a
> 1, where they clearly should exist. For a simple example, on my global
> grid, all points surrounding -115 W, 35 N are 1, but when I run (where
> testGrid is my global grid):
>
> myGrid = GRIDDATA(Lon, Lat, testGrid, /GRID, XOUT=[-115.0],
> YOUT=[35.0])
>
> I get a 0. Shouldn't this routine interpolate a value of 1 at this
> point?
>
> Thanks,
> JonR

I haven't done it, but based on the help page I'd guess that you might
want to use /SPHERE and /DEGREE.

-Jeremy.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: my god, it's full of stars....
Next Topic: Re: creating a 2D mask for image filtering

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 12:37:43 PDT 2025

Total time taken to generate the page: 0.24322 seconds