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

Home » Public Forums » archive » Writing BIG RGB GEOTIFF
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Writing BIG RGB GEOTIFF [message #65786] Thu, 19 March 2009 07:08
Leonardo R. Sbaraini is currently offline  Leonardo R. Sbaraini
Messages: 26
Registered: October 2007
Junior Member
Hi everyone,

I have 3 geoSRF images and I want to use them to create a RGB
geoTIFF. I can create it using ENVI diaplay bands and menus but I
need to make a automatic program to do it.

I had success:

1) Creating big RGB TIFF from 3 SRF
2) Creating big geoTIFF from one SRF

After envi RGB geoTIFF generated from menus I read each label in file
to know which geo label is needed and added them in my class that
creates properly a RGB TIFF. No success, linux gimp or xv cant open
it.

GEO labels needed: ModelTiepointTag, ModelPixelScaleTag,
GeoKeyDirectoryTag
I tried the code below and had no sucess:

; ==============================================
width = 10L
height= 10L
dataR = 100*sin(findgen(width,height)/(width*height))
dataR = bytscl(dataR, 0, max(dataR))
data = bytarr(width, height, 3)

write_tiff, strTiffFileName, dataR, BITS_PER_SAMPLE = 8, $
COMPRESSION = 0, $
PLANARCONFIG = 2, $
RED = data[*,*,0], $
GREEN = data[*,*,1], $
BLUE = data[*,*,2]


dataR = dataR + 100b
data[*,*,0] = dataR
data[*,*,1] = dataR + 100b
data[*,*,2] = dataR + 200b

write_tiff, strTiffFileName, dataR, BITS_PER_SAMPLE = 8, $
COMPRESSION = 0, $
PLANARCONFIG = 2, $
RED = data[*,*,0], $
GREEN = data[*,*,1], $
BLUE = data[*,*,2], $
/APPEND

; ==============================================


---> Is there a way to append data using write_tiff and create a
geoTIFF colored ?
---> someone have the code of write_tiff ?
[Message index]
 
Read Message
Previous Topic: Re: color plot in postscript
Next Topic: regress

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

Current Time: Wed Oct 08 15:22:58 PDT 2025

Total time taken to generate the page: 0.00434 seconds