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

Kim Besson kimbesson1981 at gmail.com
Wed Feb 24 07:28:27 EST 2010


Greetings

I have used the same dataset from MSG and I got the same error. I thought
that maybe it has something to do with my coordinates but using your command

Using command:
dal_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_LST_Euro_200901010000"://LST" euro_lst.tif
I did gdalinfo to this file:
Driver: GTiff/GeoTIFF
Files: euro_lst.tif
Size is 1701, 651
Coordinate System is:
LOCAL_CS["unnamed",
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]
Origin = (-924124.199999999953434,5421728.500000000000000)
Pixel Size = (3000.403174603174648,-3000.403072196620542)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  ( -924124.200, 5421728.500)
Lower Left  ( -924124.200, 3468466.100)
Upper Right ( 4179561.600, 5421728.500)
Lower Right ( 4179561.600, 3468466.100)
Center      ( 1627718.700, 4445097.300)
Band 1 Block=1701x2 Type=Int16, ColorInterp=Gray
  Metadata:
    LST=CAL_OFFSET=999

(seems Ok, right?)

After that I did:
gdalwarp -of GTiff -s_srs "+proj=geos +lon_0=0.0 +h=35785831 +x_0=0.0
+y_0=0.0" -t_srs "+proj=latlong" "eurolat.tif" "lat.tif"&>log.log

It creates an "almost" empty and with errors  TIFF file and reports the
following:
Creating output file that is 1721P x 595L.
Processing input file euro_lst.tif.
0...10...20...30...40...50...60...70...80...90...ERROR 1:
TIFFReadDirectory:lat.tif: Can not read TIFF directory count
ERROR 1: TIFFWriteEncodedStrip:lat.tif: Must set "ImageWidth" before writing
data
ERROR 1: TIFFWriteEncodedStrip:lat.tif: Must set "ImageWidth" before writing
data
(.........) repeats for 278 times
100 - done.

I'm using  GDAL 1.5.4, released 2009/01/07

Any ideas of what might be happening? And Why?

Thanks

Best regards
Kim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20100224/4602a772/attachment.html


More information about the gdal-dev mailing list