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

Home » Public Forums » archive » ENVI header files in IDL
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
ENVI header files in IDL [message #58954] Wed, 27 February 2008 07:29 Go to next message
raghuram is currently offline  raghuram
Messages: 32
Registered: February 2008
Member
Hi,

In IDL, i'm using filesearch function to read through files of certain
types.
Since an envi file has no specific extension, i'm not able to figure
out how to sort out the files.
Here's an example:

Say i have 2 images in ENVI format. It would look like IMAGE1,
IMAGE1.hdr,IMAGE2, IMAGE2.hdr.
As you can see, its only the header file which has the extension. When
i use the filesearch(image*), i am not
able to ignore the header files. These header files are not to be
processed.

Any ideas of how to choose only the images and not the header files,
as in this case ?
I guess i could convert the files to IMG so that they have an
extension, but there must be an easier way.

Thanks,

Raghu
Re: ENVI header files in IDL [message #59147 is a reply to message #58954] Tue, 11 March 2008 08:16 Go to previous messageGo to next message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
> Hi,
>
> I got a very simple answer to my question from James Jones on the
> ITTVIS usergroup.
>
> Here it is:
>
> images=FILE_SEARCH('*[^\.{hdr}]', /QUOTE)
>
> In this case, the file_search function ignores the hdr files and reads
> in only whats left.
> Credit to James Jones for this.
>
> Thanks,
> Raghu

Hi,

it is good if you only have 2 files: the data and the header. Now, if
you have more (like a .aux if you open your data in ArcGis), this file
will be found and treated as a data file, while it is not..

Jean
Re: envi header file [message #71595 is a reply to message #58954] Thu, 01 July 2010 07:23 Go to previous message
rogass is currently offline  rogass
Messages: 200
Registered: April 2008
Senior Member
On 1 Jul., 11:55, dolly <gaurijyot...@gmail.com> wrote:
> I want envi files to input in itpfind (kennedy and cohen 2003) idl
> code for image tie point. But the itpfind code needs header file with
> following information;
>
> BANDS:   ok
> ROWS:    ok
> COLS:     ok
> DATATYPE:    ok
> UL_X_COORDINATE:   ?
> UL_Y_COORDINATE:  ?
> LR_X_COORDINATE:   ?
> LR_Y_COORDINATE:  ?
> PIXEL_WIDTH:    ok
> PIXEL_HEIGHT:   ok
>
> Could anybody suggest me how to put (?) information in envi hdr file?
>  Any help will be much appreciated.

Hi,
Just have a look in the ENVI help for ENVI_SETUP_HEAD and GEO_POINTS.

Regards

CR
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: envi header file
Next Topic: Re: moderation of the list seems broken

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

Current Time: Wed Oct 08 19:59:16 PDT 2025

Total time taken to generate the page: 0.00734 seconds