WRITE_TIFF [message #14794] |
Mon, 29 March 1999 00:00  |
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.
|
|
|