Skip to content

Conversation

@gmao-cda
Copy link
Contributor

@gmao-cda gmao-cda commented Aug 30, 2025

Add tests nf03_test4/f90tst_att to check if NF90_STRING & NF90_CHAR attributes can be read in correctly by the new implementation (#453).

The test reads the NF90_STRING & NF90_CHAR attributes at 3 levels: 1) global attributes, 2) var attributes under root, and 3) var attributes under group.

A reference input data ref_att.nc (size 8.0KB) is included as testing input data. The cdl ref_att.cdl to generate this reference input data is also included.

The reason why not adopting the approach to generate the reference data by netcdf-fortran first then reading it in is because the current version (main branch) does not support writing NF90_STRING attributes directly into the NC file.

This test is added to both 1) CMake & 2) autotools, so both installation approaches cover this test.

graziano-giuliani and others added 3 commits October 17, 2024 10:17
…gle string attributes from a netCDF4 CF-1.9 compliant using string type for attributes. It overloads the nf90_get_att_text function returning single string (note nlen == 1) as if they are character attributes. What is not implemented are multidimensional strings, and the capability to write string attributes, because of the lack of string type in Fortran standard. This patch would allow reading netCDF files like the one created from the Copernicus cds-beta site for ECMWF ERA5 model. See reference to this in issue Unidata#181 "string attributes are not supported yet?"
@CLAassistant
Copy link

CLAassistant commented Aug 30, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@WardF WardF left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@WardF WardF merged commit 1d43476 into Unidata:main Sep 9, 2025
7 checks passed
@gmao-cda
Copy link
Contributor Author

Thanks!

@WardF Thank you for giving me the opportunity to contribute to the src for the netcdf-fortran!
Thank you very much!

@WardF
Copy link
Member

WardF commented Sep 10, 2025

You're quite welcome, thank you!

@gmao-cda
Copy link
Contributor Author

gmao-cda commented Oct 6, 2025

You're quite welcome, thank you!

Good morning @WardF , may I ask how do I contribute to the continuous development of the NetCDF-fortran in the future? For example, how do I know what development can I contribute for the next release version of the NetCDF-fortran?

Thank you very much for your guidance!

@WardF
Copy link
Member

WardF commented Oct 16, 2025

Well, the best way, if you have something you're interested in contributing, would be to open a conversation or an issue. We certainly would love to have your contributions! I'm currently working on the netCDF-C 4.10.0 release, which will have a Fortran release at the same time!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants