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

Support for Creating and Setting NetCDF Variables #39

Merged
merged 6 commits into from
Feb 11, 2025

Conversation

amstokely
Copy link
Collaborator

@amstokely amstokely commented Jan 31, 2025

PR Description: Support for Creating and Setting NetCDF Variables in Fortran

Description:

This PR adds support for creating and writing variables in NetCDF files from Fortran using the NetCDF C++ API. It simplifies defining variables, specifying data types and dimensions, and writing data, handling both global and group-specific variables.

Key Features:

  • Variable Creation: Supports defining variables with multiple dimensions in global or group contexts.
  • Data Writing: Enables writing integer, real, and string data with automatic C/Fortran string conversion.
  • Fortran-Friendly Interface: Abstracts low-level C++ API details, ensuring easy integration.

Motivation:

This enhancement provides a streamlined Fortran interface for NetCDF variable management, eliminating manual memory handling and C interoperability complexities.

@amstokely amstokely self-assigned this Jan 31, 2025
@amstokely amstokely requested review from mgduda and jim-p-w January 31, 2025 23:16
obs2ioda-v2/src/cxx/netcdf_variable.cc Outdated Show resolved Hide resolved
obs2ioda-v2/src/cxx/netcdf_variable.h Outdated Show resolved Hide resolved
obs2ioda-v2/src/cxx/netcdf_variable.h Show resolved Hide resolved
obs2ioda-v2/src/cxx/netcdf_variable.h Outdated Show resolved Hide resolved
obs2ioda-v2/src/netcdf_cxx_mod.f90 Show resolved Hide resolved
obs2ioda-v2/src/cxx/netcdf_variable.h Show resolved Hide resolved
obs2ioda-v2/src/cxx/netcdf_variable.h Outdated Show resolved Hide resolved
@amstokely amstokely requested review from mgduda and jim-p-w February 7, 2025 00:09
obs2ioda-v2/src/netcdf_cxx_mod.f90 Outdated Show resolved Hide resolved
@amstokely amstokely requested a review from mgduda February 7, 2025 01:13
obs2ioda-v2/src/cxx/netcdf_variable.h Outdated Show resolved Hide resolved
obs2ioda-v2/src/netcdf_cxx_mod.f90 Outdated Show resolved Hide resolved
obs2ioda-v2/src/netcdf_cxx_mod.f90 Show resolved Hide resolved
@amstokely amstokely requested a review from jim-p-w February 8, 2025 00:21
@amstokely amstokely force-pushed the feature/netcdf_cxx_variables branch from b98c638 to 01ee459 Compare February 10, 2025 17:23
@amstokely amstokely requested a review from mgduda February 11, 2025 00:08
mgduda
mgduda previously approved these changes Feb 11, 2025
@mgduda mgduda self-requested a review February 11, 2025 23:03
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.

3 participants