OUPUT TRIGRID to ENVI [message #49452] |
Wed, 26 July 2006 15:59  |
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  |
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
|
|
|