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

Home » Public Forums » archive » Re: Reading PCI files in ENVI
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Reading PCI files in ENVI [message #15844] Wed, 16 June 1999 00:00 Go to previous message
Peter Mason is currently offline  Peter Mason
Messages: 145
Registered: June 1996
Senior Member
Jeff Nettles <jnettles@csc.noaa.gov> wrote:
> Does anybody know of a way to open and read a PCI (*.pix) file in ENVI
> using (non-interactive) batch routines? I know you can open them from
> the ENVI menu, but we want to set up automatic routines to do image
> processing at night while we're not here. Is this even possible? If
> i use the ENVI_OPEN_FILE routine i immediately get the edit header
> dialogue.
>
> Any help is welcome.

I'll take you on your word with that last sentence, Jeff :-) I have
neither used ENVI in batch mode nor had any truck with PCI files, but I
gather that an ENVI batch command script is essentially an IDL program
that calls ENVI support routines, and so something like the following
should work. (?)

;Open it (with filename_string holding the file's path+name)
ENVI_OPEN_DATA_FILE,filename_string,/PCI,R_FID=fid

;Find out how big it is
ENVI_FILE_QUERY,fid,ns=ns,nl=nl,nb=nb,data_type=dt

;Make an array for it
img=MAKE_ARRAY(ns,nl,nb,TYPE=dt,/NOZERO)

;Read all bands
FOR i=0L,nb-1L do img[0,0,i]=ENVI_GET_DATA(fid,POS=i)


Perhaps more to the point, it appears that once you have a FID from
ENVI_OPEN_DATA_FILE it's pretty much business as usual. e.g., You
should be able to do spatial subsetting in the read using a DIMS array,
and so on.


Peter Mason


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
[Message index]
 
Read Message
Read Message
Previous Topic: Re: image color representing a vector...
Next Topic: Set Precision???????????

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

Current Time: Wed Oct 08 17:29:13 PDT 2025

Total time taken to generate the page: 0.00424 seconds