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

Home » Public Forums » archive » (Beginner) issue setting variables using ENVI_FILE_QUERY
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: (Beginner) issue setting variables using ENVI_FILE_QUERY [message #86290 is a reply to message #86289] Wed, 23 October 2013 07:42 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Simon Mitchell writes:

> Thank you for your help.
> I used your example code, but I get another error.
>
> % Expression must be a structure in this context: FILEINFO.
> With the "dims = fileInfo.dimensions" highlighted.
>
> Would you please be able to tell me what this means?

It probably means that this isn't a TIFF file that you are trying to
read. Who knows why? Try this code:

isTiff = Query_Tiff(ifname, fileInfo)
IF isTiff THEN BEGIN
dims = fileInfo.dimensions
ns = dims[0]
nl = dims[1]
ENDIF ELSE BEGIN
Print, 'Problem file: ', ifname
Continue
ENDELSE

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: xtickformat type conversion
Next Topic: Using POLYGON to plot unstructred mesh

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

Current Time: Sat Oct 11 07:50:38 PDT 2025

Total time taken to generate the page: 0.15348 seconds