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

Home » Public Forums » archive » extract raster statistics from vector
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
extract raster statistics from vector [message #82127] Mon, 19 November 2012 14:48 Go to next message
Danxia is currently offline  Danxia
Messages: 10
Registered: September 2012
Junior Member
Dear all,

I'm looking for a simple/efficient way to extract raster statistics from vector file in IDL/ENVI+IDL. Here's my question:

I have a raster image, say temperature, for a country and an administrative boundary shapefile, say state level, with the same projection.
I want to get state's mean temperature from the raster image.

I know I can extract raster image based on vector file and save to another file, and then get stats. However, considering the large number of states, I prefer a more efficient and less space-consuming way rather than saving states' raster image to the disk. For example, get an array of each state based on the query of the state's name?

So anybody has any idea or inspiration to pursue this in IDL/ENVI+IDL?

Thanks a lot.

Danxia
Re: extract raster statistics from vector [message #82277 is a reply to message #82127] Sat, 24 November 2012 03:17 Go to previous message
Fabzi is currently offline  Fabzi
Messages: 305
Registered: July 2010
Senior Member
On 11/19/2012 11:48 PM, Danxia wrote:
> Dear all,
>
> I'm looking for a simple/efficient way to extract raster statistics from vector file in IDL/ENVI+IDL.

Hi,

IDLanROI and ->computeMask could be helpful:

http://www.exelisvis.com/docs/IDLanROI.html

Fab
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Device Coordinates vs Normalized Coordinates
Next Topic: Re: cgplot and eps

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

Current Time: Wed Oct 08 15:18:44 PDT 2025

Total time taken to generate the page: 0.00535 seconds