<div dir="ltr"><div>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.<br></div><div><br>
</div><div>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 <a href="http://file1.nc">file1.nc</a> <a href="http://file2.nc">file2.nc</a>).</div>
<div><br></div><div>cheers, Etienne</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 6, 2014 at 10:22 AM, Benedetta Onori <span dir="ltr"><<a href="mailto:benedetta.onori@gmail.com" target="_blank">benedetta.onori@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi all, <br>I have a question about NetCDF writing using GDAL.<br></div>The netcdf driver doesn't support the option GA_Update used to edit dataset, but only GA_ReadOnly.<br>
</div>My question is: during the creation of a new netCDF dataset, how can I <span>differentiate the sizes of different subsets?</span><span><br>
</span></div><div><span>(For example the subset 1 must be 100x100, subset 2 100x1, ...etc...)<br>Thank you for the attention<br><br></span></div><div><span>Regards<span class="HOEnZb"><font color="#888888"><br><br></font></span></span></div>
<span class="HOEnZb"><font color="#888888"><div><span>b.o.</span><span></span></div>
</font></span></div>
<br>_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/gdal-dev</a><br></blockquote></div><br></div></div>