Ticket #2540 (new enhancement)

Opened 3 years ago

Last modified 3 years ago

band selection in NETCDF driver

Reported by: gaffigan Owned by: warmerdam
Priority: normal Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords: netcdf
Cc: dnadeau

Description

Allow selection of individual band using extended syntax

NETCDF:"filename":subdataset:index0:index1:...:indexN

where index0,...,indexN are indicies of higher-order dimensions

This is a subset of the enhancements included in ticket #1808, http://trac.osgeo.org/gdal/ticket/1808. In using the updates from that ticket, I had encountered segfaults when accessing grids through Mapserver. While waiting for those enhancements to be vetted and distributed in a future gdal release, I have instead been using the attached patch very extensively over the past year.

 http://ak.aoos.org/data/patch/frmts_netcdf_bands.patch

Attachments

frmts_netcdf_bands.patch Download (2.3 KB) - added by gaffigan 3 years ago.
patch to netcdfdataset.cpp

Change History

Changed 3 years ago by gaffigan

patch to netcdfdataset.cpp

Changed 3 years ago by warmerdam

  • cc dnadeau added
  • keywords netcdf added
  • component changed from default to GDAL_Raster
Note: See TracTickets for help on using tickets.