-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Description
Feature description
Planet Labs have an open feed for 400+-band Hyperspectral Imagery. I'm able to convert the H5s into GeoTIFFs but the georeference data doesn't copy over. Planet Labs describe their deliverable as georeferenced.
$ wget "https://storage.googleapis.com/open-cogs/planet-stac/release1-basic-radiance/20250225_153627_16_4001_basic_radiance.h5"
$ gdalinfo 20250225_153627_16_4001_basic_radiance.h5 | grep geotransform
HDFEOS_SWATHS_HYP_Geolocation_Fields_Planet_Ortho_Framing={"cols": 778, "epsg_code": 32619, "geotransform": [355530.0, 30.0, 0.0, 1299210.0, 0.0, -30.0], "rows": 657}
$ gdal_translate \
-of GTiff \
HDF5:"20250225_153627_16_4001_basic_radiance.h5"://HDFEOS/SWATHS/HYP/Data_Fields/toa_radiance \
20250225_153627_16_4001_basic_radiance.tif
$ gdalinfo 20250225_153627_16_4001_basic_radiance.tif
That metadata field does copy over but it has no effect when I load the GeoTIFF into QGIS.
Driver: GTiff/GeoTIFF
Files: 20250225_153627_16_4001_basic_radiance.tif
20250225_153627_16_4001_basic_radiance.tif.aux.xml
Size is 607, 501
Metadata:
HDFEOS_INFORMATION_HDFEOSVersion=HDFEOS_5.1.15
HDFEOS_SWATHS_HYP_created_at=2025-07-12T14:33:39.649432+00:00
HDFEOS_SWATHS_HYP_Geolocation_Fields_Planet_Ortho_Framing={"cols": 778, "epsg_code": 32619, "geotransform": [355530.0, 30.0, 0.0, 1299210.0, 0.0, -30.0], "rows": 657}
HDFEOS_SWATHS_HYP_strip_id=20250225_153623_00_4001_strip
Image Structure Metadata:
INTERLEAVE=PIXEL
Corner Coordinates:
Upper Left ( 0.0, 0.0)
Lower Left ( 0.0, 501.0)
Upper Right ( 607.0, 0.0)
Lower Right ( 607.0, 501.0)
Center ( 303.5, 250.5)
Additional context
No response