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

Home » Public Forums » archive » Select Images based on vector/shapefile/ROI
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
Select Images based on vector/shapefile/ROI [message #87903] Mon, 03 March 2014 12:11 Go to next message
Sean Hartling is currently offline  Sean Hartling
Messages: 4
Registered: March 2014
Junior Member
Hi. I am working with MODIS data and I am attempting to find images (from several thousand) that encompass a specific geographic area (the state of Missouri). I was attempting to perform this using Layer Stack and Subset via ROI in ENVI. However, due to the fact that the images do not have a common geographic range, ENVI adds 0.0 data values (instead of NaN, which would be helpful) where it adds extent to each image to encompass the all the image ranges. These 0.0 values will affect my overall calculations when I attempt to pull average pixel values over the specific time period.

I would like to select images where the vector file for Missouri falls entirely within an image and omit images where it does not. Is there an IDL code, or other method) that would help facilitate this?

I appreciate any help. Thanks!
Re: Select Images based on vector/shapefile/ROI [message #87921 is a reply to message #87903] Mon, 03 March 2014 17:31 Go to previous messageGo to next message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
Hi Sean-

Is 0.0 a valid data point for "good" images? Or does 0.0 always indicate "added extent"?
Re: Select Images based on vector/shapefile/ROI [message #87989 is a reply to message #87921] Mon, 10 March 2014 11:25 Go to previous messageGo to next message
Sean Hartling is currently offline  Sean Hartling
Messages: 4
Registered: March 2014
Junior Member
Phillip,

That is the problem I am running into. 0.0 is a valid data point if it occurs within the ROI; however, it is also used to indicate added extent, which does not allow me to ignore all of those values.
Re: Select Images based on vector/shapefile/ROI [message #87990 is a reply to message #87903] Mon, 10 March 2014 12:12 Go to previous message
PMan is currently offline  PMan
Messages: 61
Registered: January 2011
Member
On Monday, March 3, 2014 3:11:56 PM UTC-5, Sean Hartling wrote:
> Hi. I am working with MODIS data and I am attempting to find images (from several thousand) that encompass a specific geographic area (the state of Missouri). I was attempting to perform this using Layer Stack and Subset via ROI in ENVI. However, due to the fact that the images do not have a common geographic range, ENVI adds 0.0 data values (instead of NaN, which would be helpful) where it adds extent to each image to encompass the all the image ranges. These 0.0 values will affect my overall calculations when I attempt to pull average pixel values over the specific time period.
>
>
>
> I would like to select images where the vector file for Missouri falls entirely within an image and omit images where it does not. Is there an IDL code, or other method) that would help facilitate this?
>
>
>
> I appreciate any help. Thanks!

Envi allows "No data Values" I believe, set in the header file. If you set that (to say -1 or NAN), then do your resize, does this populate the extra data to the no data values? you might need to convert to ENVI format first.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: poly_fit - yband
Next Topic: MPFIT and initial Guesses

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

Current Time: Wed Oct 08 11:36:41 PDT 2025

Total time taken to generate the page: 0.00494 seconds