Opened 11 years ago
Closed 11 years ago
#5044 closed enhancement (worksforme)
Recognize HDF scale/offset metadata
Reported by: | simonf | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | GDAL_Raster | Version: | unspecified |
Severity: | normal | Keywords: | HDF4 |
Cc: | antonio |
Description
For HDF files stored here: ftp://casfse.bu.edu/data20/sqs/gapfilled/2001/
gdalinfo prints the following HDF-level metadata:
Metadata:
HDFEOSVersion=HDFEOS_V2.17 _FillValue=32767 valid_range=1000, 0 scale_factor=0.001 add_offset=0 long_name=Gapfilled BRDF/Albedo data from MCD43D unit=none
If the field names 'scale_factor' and 'add_offset' are standard for HDF, gdal band-level functions GetScale and GetOffset() should return the corresponding values. Currently they return None. For comparison, the FillValue field is recognized by GDAL.
Change History (3)
comment:1 by , 11 years ago
Cc: | added |
---|
comment:2 by , 11 years ago
Component: | default → GDAL_Raster |
---|---|
Keywords: | HDF4 added |
Status: | new → assigned |
comment:3 by , 11 years ago
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
This is already working in GDAL trunk.
Please upgrade. :-)