[gdal-dev] editing NetCDF size using GDAL in C++ code
Etienne Tourigny
etourigny.dev at gmail.com
Thu Feb 6 06:31:08 PST 2014
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 tools (e.g. ncks -A file1.nc file2.nc).
cheers, Etienne
On Thu, Feb 6, 2014 at 10:22 AM, Benedetta Onori
<benedetta.onori at gmail.com>wrote:
> 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 1 must be 100x100, subset 2 100x1, ...etc...)
> Thank you for the attention
>
> Regards
>
> b.o.
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20140206/9b34da98/attachment.html>
More information about the gdal-dev
mailing list