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

Home » Public Forums » archive » Re: DESCRIPTION field missing from read_tiff()
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: DESCRIPTION field missing from read_tiff() [message #48755] Thu, 18 May 2006 19:37
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
M. Katz writes:

> Fantastic! Thanks, David and Jeff.
> Now wouldn't it make sense to sneak that wonderful info structure into
> read_tiff() somewhere?

I think you could probably manage that in less than three
lines of a BETTER_READ_TIFF program! :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: DESCRIPTION field missing from read_tiff() [message #48756 is a reply to message #48755] Thu, 18 May 2006 18:04 Go to previous message
M. Katz is currently offline  M. Katz
Messages: 69
Registered: May 2005
Member
Fantastic! Thanks, David and Jeff.
Now wouldn't it make sense to sneak that wonderful info structure into
read_tiff() somewhere?
-M. Katz
Re: DESCRIPTION field missing from read_tiff() [message #48757 is a reply to message #48756] Thu, 18 May 2006 17:34 Go to previous message
Jeff N. is currently offline  Jeff N.
Messages: 120
Registered: April 2005
Senior Member
I think you probably want the QUERY_TIFF routine instead. Something
like:

result = query_tiff('yourfile.tif', info)
print, info.description

should do what you want.

Jeff
Re: DESCRIPTION field missing from read_tiff() [message #48758 is a reply to message #48757] Thu, 18 May 2006 17:31 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
M. Katz writes:

> I just noticed, sadly, that the write_tiff procedure has a description
> field
>
> WRITE_TIFF, Filename [, Image]. . . [, DESCRIPTION=string] . . .
>
> but read_tiff can't help you get your string back
>
> Result = READ_TIFF( Filename [, R, G, B] . . . {S.O.L.} )
>
> Any suggestions for how to tuck some information away in the tiff for
> later retrieval within IDL. I'd love to not have to create separate
> descriptive text files.

You can access this information with the QUERY_TIFF function. :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: DESCRIPTION field missing from read_tiff()
Next Topic: plot GRIB2 data as an image

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

Current Time: Wed Oct 08 15:27:45 PDT 2025

Total time taken to generate the page: 0.00567 seconds