[gdal-dev] Converting GEOS to Gtiff lat/lon

António Rocha antonio.rocha at deimos.com.pt
Tue Feb 23 13:18:17 EST 2010


Greetings

Bas has been helping me in TRANSLATE and WARPING MSG data, in HDF5 
format, to a georrectified format that I can use in GRASS.

First I do this:
gdal_translate -of GTiff -a_srs "+proj=geos +lon_0=0.0 +h=35785831 
+x_0=0.0 +y_0=0.0" -a_ullr -924124.2 5421728.5 4179561.6 3468466.1 
"HDF5:"HDF5_MSG_200802170100"://ABC" "area_georeferenced.tif"
Everything runs smoothly.

Then I have to do:
gdalwarp -s_srs "+proj=geos +lon_0=0.0 +h=35785831 +x_0=0.0 +y_0=0.0" 
-t_srs "+proj=latlong" "area_georeferenced.tif" "euro_area_latlong.tif"

For some datasets I get an image with different size (instead of 1701, 
651 is 1721, 595) and in another cases I get the following error:
Creating output file that is 1721P x 595L.
Processing input file euro_area_georeferenced.tif.
0...10...20...30...40...50...60...70...80...90...ERROR 1: 
TIFFReadDirectory:euro_area_latlong.tif: Can not read TIFF directory count
ERROR 1: TIFFWriteEncodedStrip:euro_area_latlong.tif: Must set 
"ImageWidth" before writing data
ERROR 1: TIFFWriteEncodedStrip:euro_area_latlong.tif: Must set 
"ImageWidth" before writing data
ERROR 1: TIFFWriteEncodedStrip:euro_area_latlong.tif: Must set 
"ImageWidth" before writing data
(...)

Why am I obtaining a smaller dataset and, why I get this error in some 
datasets?


I even tried with different fileformats and the error is the same. Bas 
is using GDAL1.6dev in FWTOOLS and I'm using 1.5.4 in Ubuntu OS (to work 
with GRASS)

Thank you

Best regards
Antonio Rocha


__________ Information from ESET NOD32 Antivirus, version of virus signature database 4890 (20100223) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




More information about the gdal-dev mailing list