Re: OUPUT TRIGRID to ENVI [message #49442] |
Thu, 27 July 2006 08:06 |
DMac
Messages: 6 Registered: May 2006
|
Junior Member |
|
|
Thanks Ulan. Rotate worked great. I also was not aware of the ENVI
functionality you described.
Derek
Ulan wrote:
> Hi Derek,
>
> First, you don't have to read and write image files in order to import
> and export from ENVI to IDL - there is a menu button (File->Import from
> IDL variable and FIle->Export to IDL variable). Or else, if you have
> to, then try in IDL after the trigrid:
>
> be_grid=ROTATE(be_grid,7)
>
> Hope this helps,
> Ulan
>
>
>
>
> DMac wrote:
>> 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 #49449 is a reply to message #49442] |
Thu, 27 July 2006 00:37  |
Ulan
Messages: 8 Registered: April 2005
|
Junior Member |
|
|
Hi Derek,
First, you don't have to read and write image files in order to import
and export from ENVI to IDL - there is a menu button (File->Import from
IDL variable and FIle->Export to IDL variable). Or else, if you have
to, then try in IDL after the trigrid:
be_grid=ROTATE(be_grid,7)
Hope this helps,
Ulan
DMac wrote:
> 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.
|
|
|