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

Home » Public Forums » archive » OUPUT TRIGRID to ENVI
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
OUPUT TRIGRID to ENVI [message #49452] Wed, 26 July 2006 15:59 Go to next message
DMac is currently offline  DMac
Messages: 6
Registered: May 2006
Junior Member
Hello All,
I am trying to write/export a grid produced from the TRIGRID function
to an ENVI image file as follows:

BE_GRID = TRIGRID(XBE, YBE, LAS_BE.Z, TR, NX = NX2, NY=NY2,
XGRID=XGRID, YGRID=YGRID)
OPENW, 1, 'd:\temp\BE_GRIDER1'
WRITEU, 1, BE_GRID
CLOSE, 1

I than manually create the header file based off the size of the array
of BE_GRID and the min X and Max Y coordinate values from the input
points to TRIGRID.

My problem is that when I try to bring the image up in ENVI it is
flipped (i.e., the top left corner pixel value should be moved to the
bottom left and the top right corner pixel value should be moved to the
bottom right, etc..). If that makes any sense.

Anyone know what I might be doing wrong?

Any help is greatly appreciated.

Derek M.
Re: OUPUT TRIGRID to ENVI [message #49540 is a reply to message #49452] Thu, 27 July 2006 10:25 Go to previous message
David Streutker is currently offline  David Streutker
Messages: 34
Registered: June 2005
Member
Btw, as you've probably already guessed, ENVI references images from
the upper-left corner, so that pixel [0,0] is at the top left. Thus
the need to flip with ROTATE. I believe this is also true in IDL when
reading/writing image files such as TIFFs and JPEGs.

You might also look at ENVI_WRITE_ENVI_FILE for saving your images.

-David
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: negative return values after FFT
Next Topic: PU license horror

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

Current Time: Wed Oct 08 15:56:00 PDT 2025

Total time taken to generate the page: 0.00477 seconds