Paolo, This feature would have to be driver-specific, so adding it to netcdf would not benefit other drivers (in fact not all of them support this).
Some time ago there was a discussion about standardizing the driver:filename syntax , it seems to have stalled. It could be a nice addition to have the option band=<band_no> in there. http://lists.osgeo.org/pipermail/gdal-dev/2011-October/030305.html http://trac.osgeo.org/gdal/wiki/rfc36_open_by_drivername Would it be worth it allowing to select multiple bands (by range or list) such as NETCDF:file.nc:var:1-2,4 There is a similar request already for selecting multiple bands: http://trac.osgeo.org/gdal/ticket/2540 Etienne On Fri, Feb 10, 2012 at 9:04 AM, Paolo Corti <[email protected]> wrote: > Hi all > > Using the netCDF driver, I have noticed that there is a nice syntax > for getting the dataset and the single raster in the dataset. > > For example, in my case, for accessing the dataset: > > $ gdalinfo NETCDF:/my/path/data/mynetcdf_dataset.nc > > and for accessing the single raster: > > $ gdalinfo NETCDF:/my/path/data/mynetcdf_dataset.nc:myraster > > I was wondering if there is a way (that could be very useful also for > other raster formats) to concatenate also the band, something like > this: > > $ gdalinfo NETCDF:/my/path/data/mynetcdf_dataset.nc:myraster:myband > > I would need this for using it in MapServer, without the need to > create virtual rasters (that seems to be the only viable solution at > my eyes) > Thanks for your patience > > P > > -- > Paolo Corti > Geospatial software developer > web: http://www.paolocorti.net > twitter: @capooti > skype: capooti > _______________________________________________ > gdal-dev mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/gdal-dev _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
