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

Home » Public Forums » archive » Re: 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
Re: OUPUT TRIGRID to ENVI [message #49442] Thu, 27 July 2006 08:06
DMac is currently offline  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 Go to previous message
Ulan is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: problem loading color palette
Next Topic: Re: negative return values after FFT

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

Current Time: Wed Oct 08 15:39:59 PDT 2025

Total time taken to generate the page: 0.00529 seconds