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 
Return to the default flat view Create a new topic Submit Reply
WRITE_TIFF [message #14794] Mon, 29 March 1999 00:00 Go to previous 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.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: HELP !!!
Next Topic: Problem with COMMON block

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

Current Time: Thu Oct 09 14:59:29 PDT 2025

Total time taken to generate the page: 0.99781 seconds