[gdal-dev] TRMM in GDAL?

Frank Warmerdam warmerdam at pobox.com
Fri Jan 25 00:41:09 EST 2008


Yann Chemin wrote:
> Hello I am trying to convert TRMM 2B31 from HDF into anything more
> common for processing (Gtiff, HFA, ...)
> 
> Basically gdalinfo returns this:
> 
> yann at gis4400:~/TRMM$ gdalinfo 2B31.070101.52014.6.HDF
> Driver: HDF4/Hierarchical Data Format Release 4
> Size is 512, 512
> Coordinate System is `'
> Corner Coordinates:
> Upper Left  (    0.0,    0.0)
> Lower Left  (    0.0,  512.0)
> Upper Right (  512.0,    0.0)
> Lower Right (  512.0,  512.0)
> Center      (  256.0,  256.0)

Yann,

The above sounds like the bogus parent dataset.  Were there
subdatasets?  If so, do a gdalinfo on them and see if they have
meaningful georeferencing.

If there are subdatsets but they lack georeferencing, you may
find you can use "-a_ullr -180 40 180 40" on a gdal_translate line
to assign the following bounds as part of a translation.

Best regards,

> while in the  2B31.070101.52014.6.HDF.XML:
> <SpatialDomainContainer>
>     <HorizontalSpatialDomainContainer>
>       <BoundingRectangle>
>         <WestBoundingCoordinate>-180</WestBoundingCoordinate>
>         <NorthBoundingCoordinate>40</NorthBoundingCoordinate>
>         <EastBoundingCoordinate>180</EastBoundingCoordinate>
>         <SouthBoundingCoordinate>-40</SouthBoundingCoordinate>
>       </BoundingRectangle>
>     </HorizontalSpatialDomainContainer>
>   </SpatialDomainContainer>
> 
> Any suggestion please?
> Yann
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
> 


-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org



More information about the gdal-dev mailing list