Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Adding basic support for AddBand() as 2D variables with netCDF driver #9448

Open
chacha21 opened this issue Mar 12, 2024 · 0 comments

Comments

@chacha21
Copy link
Contributor

Feature description

Currently, (gdal 3.8) the netCDF driver does not support AddBand().
This driver could have such a feature since bands can be NETCDF variables.

Additional context

quoted from a discussion on the mailing list

Also, is there a reason why AddBand() is not supported by the netCDF driver ? I expected it to be able to add bands on demand as new "netcdf variables".

I guess that could be implemented. There would be a subtlety however:

  • if CreateCopy() has been invoked with NETCDF_DIM_EXTRA_xxx, NETCDF_DIM_xxx_DEF metadata items, to ask for bands to be modeled as a dimension (for example the time dimension of a 3D variable), that would require the band dimension to be created as UNLIMITED however at dataset creation.

  • otherwise for 2D variables, yes, implementing AddBand() should be relatively straighforward ... hopefully ... (please don't sue me, if it is not. The netCDF driver has its peculiarities...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant