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

Home » Public Forums » archive » IDL - Extracting data from within boundary defined by shapefile
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
IDL - Extracting data from within boundary defined by shapefile [message #73795] Sat, 27 November 2010 04:04 Go to next message
katie is currently offline  katie
Messages: 3
Registered: November 2010
Junior Member
Hello all,

I am using IDL 6.1, and was wondering if it's possible to extract data
(defined by lat and long gridpoints) from within a boundary defined by
a shapefile. For example, I have a contour map of global soil
moisture, but would only like to look at the data within the
Mississippi River Basin. I have the shapefile for this basin, and have
overplotted it onto the contour map so I can see the basin outline and
note that it is properly projected on top of my data, but I do not
know where to go from there.

Any advice would be great!
Thanks,
Katie
Re: IDL - Extracting data from within boundary defined by shapefile [message #73820 is a reply to message #73795] Wed, 01 December 2010 20:28 Go to previous message
katie is currently offline  katie
Messages: 3
Registered: November 2010
Junior Member
David -

"You actually have 64*128 points that you want to check,
so you have to make that many lats and lons:"

I actually thought about that after I wrote the message, but didn't
know how exactly to do it, so thanks for the code. And I did end up
needing to shift my longitudes around for the ContainsPoints to find
them, so thanks for that link as well. :-)

Paulo -

Noted about the loop, and fixed. Thanks for finding that and pointing
it out.


Things are now working a whole lot better for me. Thanks guys!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Strange TITLE output using NG PLOT.
Next Topic: problem calling histoplot

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

Current Time: Wed Oct 08 20:07:14 PDT 2025

Total time taken to generate the page: 0.03073 seconds