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 #77214] Wed, 17 August 2011 04:40 Go to previous message
Klemen is currently offline  Klemen
Messages: 80
Registered: July 2009
Member
>> I haven't done it, but based on the help page I'd guess that you might
>> want to use /SPHERE and /DEGREE.
>
>> -Jeremy.
>
> Those seemed like reasonable suggestions, but unfortunately they did
> nothing for me  =(

Ty it again. Use a combination of TRIANGULATE and GRIDDATA - an
example below (with a link to discussion about reprojection). But be
aware - this might be very slow if working with large datasets. If you
don't have many points to interploate it would make sense to select
the area around each point and use only the closest points for
interpolation. You can of course use also some other method instead
of /NEAREST_NEIGHBOR.
Cheers, Klemen

TRIANGULATE, lon, lat, trg, SPHERE=sphere, /DEGREES, FVALUE=testgrid
mygrid = GRIDDATA(lon, lat, m_testgrid, /SPHERE, /DEGREES, /
NEAREST_NEIGHBOR, TRIANGLES = trg, /GRID, XOUT=[-115.0], YOUT=[35.0])

http://groups.google.com/group/comp.lang.idl-pvwave/browse_t hread/thread/688e9587fa29ecb7/2f7820d787d6047f?hl=en&lnk =gst&q=#2f7820d787d6047f
[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: Wed Oct 08 13:41:48 PDT 2025

Total time taken to generate the page: 0.00395 seconds