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

Home » Public Forums » archive » Shape to raster
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Shape to raster [message #78139] Wed, 26 October 2011 09:52 Go to previous message
Fabzou is currently offline  Fabzou
Messages: 76
Registered: November 2010
Member
Dear IDLers,

My apologies if this question has been posted before.

I have a polygon vector file from which I know the coordinates within a
grid (subpixel precision) and I would like to make a mask from this
information (within the polygon = 1, outside = 0).

The only idea I have to make this would be to use the polyfill command
and use the produced image as a mask. This would be easy to do, but I am
worried about the precision I would reach by doing so (I am concerned
about the line thickness, for example, and all the things that make of
POLYFILL and DRAW_ROI a plot routine and not a "shape to raster" routine).

Maybe there is an IDL equivalent to the ENVI "Build mask from a ROI" tool?

Thanks for your help!

Fabz
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: unable to set time attribute for netCDF in IDL
Next Topic: Re: wind fields on map

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

Current Time: Fri Oct 10 07:52:29 PDT 2025

Total time taken to generate the page: 0.64084 seconds