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 ?
|