|
NEP 2.7.0
NetCDF Extension Pack
|
Creating, writing, and reading a local NcZarr dataset (Fortran). More...
Functions/Subroutines | |
| program | f_nczarr_simple |
| subroutine | handle_err (status) |
Creating, writing, and reading a local NcZarr dataset (Fortran).
Fortran equivalent of nczarr_simple.c. Creates a 4x5 temperature array in a local NcZarr Zarr store, attaches units, long_name, and _FillValue attributes, closes the dataset, reopens it read-only, and verifies metadata and data values.
Learning Objectives:
file://...#mode=nczarr URL from Fortran via nf90_create / nf90_openKey Concepts:
#mode=nczarr selects the NcZarr dispatcherFortran vs C Differences:
real :: data(NX, NY) vs C float data[NY][NX]Related Examples:
Compilation:
Usage:
Expected Output: Creates the directory f_simple_nczarr.zarr containing:
| program f_nczarr_simple |
| subroutine f_nczarr_simple::handle_err | ( | integer, intent(in) | status | ) |