Opened 13 years ago

Closed 13 years ago

#4006 closed defect (fixed)

Radarsat-2 subdataset's statistics/histogram is not saved to aux.xml

Reported by: rprinceley Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: svn-trunk
Severity: normal Keywords: RS2
Cc: gaopeng


Statistics and histogram computed for different subdatasets in an Radarsat-2 XML product does not persist in it's aux.xml.

Change History (5)

comment:1 by warmerdam, 13 years ago


I tried:

gdalinfo -stats -hist product.xml

on a radarsat 2 dataset. The .aux.xml file held statistics and histograms after this, and a new gdalinfo confirmed (by not going through any slow computation) that the .aux.xml file was being used. I tested this on "trunk" and the "1.8-esri" branch. Can you provide more detail on why you think the values aren't being persisted?

comment:2 by warmerdam, 13 years ago

Keywords: RS2 added

comment:3 by rprinceley, 13 years ago


We are using subdatasets exposed by the Radarsat-2 driver (beta0, gamma, sigma0). gdalinfo complains when computing statistics for specific subdatasets:

Warning 1: Unable to save auxilary information in RADARSAT_2_CALIB:BETA0:c:\data\test\product.xml.aux.xml.

Computing for the whole dataset does save one set of statistics and histogram, but not for each subdataset.

comment:4 by rprinceley, 13 years ago


Building overviews has similar problem - overview for subdataset is saved as product.xml.ovr instead of independent overviews for each subdataset.

comment:5 by warmerdam, 13 years ago

Resolution: fixed
Status: newclosed

Support for metadata and overviews on subdatasets for Radarsat2 files added in trunk (r22065), 1.8 (r22066) and 1.8-esri (r22067).

No regression tests added.

Note: See TracTickets for help on using tickets.