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

Home » Public Forums » archive » WRITE_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
WRITE_TIFF [message #14794] Mon, 29 March 1999 00:00 Go to next message
gurman is currently offline  gurman
Messages: 82
Registered: August 1992
Member
Hi -

Today for the first time, I had the occasion to write some files in
TIFF format using the WRITE_TIFF procedure on an OpenVMS system with IDL
5.2.

I use the instruction:

IDL> write_tiff, file + strmid(strtrim(10000 + i, 2), 1, 4), b0, 0, red =
r, green = g, blue = b

(that is, I explicitly tell write_tiff to assume the order is "0").

Then, on the same system, I try:

IDL> c = read_tiff('file.0957', r, g, b, order = order) & print, order

The result I get is "4," not "0."

If I were only using IDL, I would not be concerned, but when I try
reading the same file on a Mac using Adobe Photoshop 5.0.2, I get an
inverted (top to bottom) image.

To confuse myself yet further, I decided to try to write the same
image with an order paramater of "1." Once again, the order was read
correctly with READ_TIFF, but once again, the image on the Mac was
inverted.

Any advice?

Thanks,

Joe Gurman

--
| Joseph B. Gurman, NASA Goddard Space Flight Center, Solar Physics
| Branch, Greenbelt MD 20771 USA / Federal employees are still
| prohibited from holding opinions while at work. Therefore, any
| opinions expressed herein are somebody else's.
Re: WRITE_TIFF [message #14896 is a reply to message #14794] Thu, 01 April 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Joseph B. Gurman (gurman@gsfc.nasa.gov) writes:

> I guess I'm a little bit stunned (read: e.g. with a cattle prod)
> to find I can't use IDL to create a TIFF that will display with
> the same orienttation in application X (let's call it Netscape,
> for instance) and IDL....
>
> I guess I should be thankful that (i) REVERSE runs so fast on
> Alphas, and (ii) WRITE_GIF doesn't have that problem.

Well, an ORDER keyword on the display routine and an ORDER
switch in the pull-down menu does wonders for training users. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: WRITE_TIFF [message #14897 is a reply to message #14794] Thu, 01 April 1999 00:00 Go to previous message
gurman is currently offline  gurman
Messages: 82
Registered: August 1992
Member
In article <MPG.1169d935a51c74aa98973b@news.frii.com>, davidf@dfanning.com
(David Fanning) wrote:

> Joseph B. Gurman (gurman@gsfc.nasa.gov) writes about his problems
> getting the ORDER keyword to work with TIFF files:
>
>
> Dick and I have pretty much given up on the ORDER keyword
> with TIFF files. As far as we can tell, it's mostly
> ignored by almost all software that we routinely use.
> We have had to resort to reversing the image order
> physically, so that the image appears correct in the
> software in which we want to display it.
>
> Cheers,
>
> David

David -

That works great if you know in advance for which software you're
creating the file.

I guess I'm a little bit stunned (read: e.g. with a cattle prod) to
find I can't use IDL
to create a TIFF that will display with the same orienttation in
application X (let's
call it Netscape, for instance) and IDL....

I guess I should be thankful that (i) REVERSE runs so fast on Alphas,
and (ii)
WRITE_GIF doesn't have that problem.

Joe

--
Joseph B. Gurman / NASA Goddard Space Flight Center / Solar Physics Branch /
Greenbelt MD 20771 / work: gurman@gsfc.nasa.gov /other: gurman@ari.net

Government employees are still not allowed to hold opinions while at work,
so any opinions expressed herein must be someone else's.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: HELP !!!
Next Topic: Problem with COMMON block

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

Current Time: Wed Oct 08 19:19:14 PDT 2025

Total time taken to generate the page: 0.00403 seconds