NEP 2.7.0
NetCDF Extension Pack
Loading...
Searching...
No Matches
Functions/Subroutines
f_nczarr_enhanced.f90 File Reference

Demonstrate NcZarr with the NetCDF-4 enhanced data model (Fortran). More...

Functions/Subroutines

program f_nczarr_enhanced
 
subroutine handle_err (status)
 

Detailed Description

Demonstrate NcZarr with the NetCDF-4 enhanced data model (Fortran).

Creates a local NcZarr store with: Root group: time (unlimited) and x dimensions, temperature(time,x) and pressure(time,x) variables. Child group obs/: station (unlimited), obs_value(station) and obs_time(station) variables.

Note: NcZarr supports groups and unlimited dims from the enhanced model; user-defined types (enum, compound) require HDF5 storage.

Reopens the store and validates all metadata and data values.

Learning Objectives:

Key Concepts:

Prerequisites:

Related Examples:

Compilation:

gfortran -o f_nczarr_enhanced f_nczarr_enhanced.f90 -lnetcdff -lnetcdf
program f_nczarr_enhanced
Definition f_nczarr_enhanced.f90:70

Usage:

ncdump 'file://f_nczarr_enhanced.zarr#mode=nczarr'

Expected Output: Creates the directory f_nczarr_enhanced.zarr containing:

Note
Companion code for "The NetCDF Developer's Handbook: The Authoritative Guide to Writing High-Performance Programs for Scientific Data Management, Second Edition" (https://www.amazon.com/dp/B0H7Q1Z75L)
Author
Edward Hartnett, Intelligent Data Design, Inc.
Date
2026-06-27

Function/Subroutine Documentation

◆ f_nczarr_enhanced()

program f_nczarr_enhanced

◆ handle_err()

subroutine f_nczarr_enhanced::handle_err ( integer, intent(in)  status)