Ticket #2581 (assigned enhancement)
netcdf: add metadata record for original array dimension when reading from multidimensional files
| Reported by: | mdsumner | Owned by: | kyle |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | GDAL_Raster | Version: | unspecified |
| Severity: | normal | Keywords: | netcdf |
| Cc: | neteler, dnadeau, kyle |
Description
When accessing a file with 3D or 4D subdatasets such as NetCDF it's possible to discover the original array dimension via the "DESC=[TxZxYxX]" tag.
This information is not available for single dataset files - there is no analogous "DESC=[dim]" tag for multi-dim arrays from single dataset files.
The higher dimensions get unrolled into bands but there's no record of the original shape - having this metadata available as per SDS files would be useful.
An example file from the Unidata samples: http://www.unidata.ucar.edu/software/netcdf/examples/rhum.2003.nc
This file contains variable "rhum"(time=365, level=8, lat=73, lon=144) that is unrolled to a 2920 band raster.

