Hi all,
I have a question about NetCDF writing using GDAL.
The netcdf driver doesn't support the option GA_Update used to edit
dataset, but only GA_ReadOnly.
My question is: during the creation of a new netCDF dataset, how can I
differentiate
the sizes of different subsets?
(For example the subset
What do you mean by subsets? Do you mean datasets (known as variables in
netcdf terminology)? If so, there is no way the netcdf driver can create a
netcdf file with subdatasets, sorry.
A workaround is to use gdal to create a file for each subdataset and then
merge them with the nco commandline
In the creation of a NetCDF I treat subsets as bands.
with gdalinfo I get this:
Subdatasets:
SUBDATASET_1_NAME=NETCDF:myfile.nc:Band1
SUBDATASET_1_DESC=[1x1] Band1 (64-bit floating-point)
SUBDATASET_2_NAME=NETCDF:myfile.nc:Band2
SUBDATASET_2_DESC=[1x1] Band2 (64-bit
For a given dataset, all bands have to be of same dimensions in order to be
treated as a single dataset, and not a number of different datasets.
This is documented in the GDAL data model page, right on top [1].
A dataset (represented by the
GDALDatasethttp://www.gdal.org/classGDALDataset.html