-
Notifications
You must be signed in to change notification settings - Fork 6
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
Support for Creating and Setting NetCDF Attributes in Fortran #42
Conversation
With #39 merged, can the base branch for this PR be changed to |
e87ebbe
to
3e67cbe
Compare
3e67cbe
to
3c1e423
Compare
As a general observation, putting every parameter to a function call on it's own line, and the closing
|
I adjusted my linter to only wrap function calls/declarations if they exceed 72 characters. |
* Added support for writing netcdf attributes using the netcdf-cxx interface. * Updated PutAtt functions so that they all use the same templated function. * Removed duplicate defs of setFill interface functions. * Changed signatures for putAtt functions. * Generalized template docstrings. * Updated order of putAtt args in fortran docstring. Removed template declarations in netcdf_variable.h, updated docs, and removed all getVar related netcdf functions. Renamed netcdfPutVar data argument to values. Removed @tparam from netcdf variable docstrings and added a default class to setFill/putVar select type statements. Added support for writing netcdf attributes. Removed unused c_f_pointer import Replaced netcdf fortran io ops with netcdf-cxx ops in ncio_mod.f90
Description:
This PR adds support for creating and writing attributes in NetCDF files from Fortran using the NetCDF C++ API. It simplifies defining attributes, specifying data types, and assigning values, handling global, group-scoped, and variable-specific attributes.
Key Features:
Motivation:
This enhancement provides a streamlined Fortran interface for managing NetCDF attributes, eliminating manual memory handling and C interoperability complexities.