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

Demonstrate chunked storage in a local NcZarr dataset (Fortran). More...

Functions/Subroutines

program f_nczarr_chunking
 
subroutine handle_err (status)
 

Detailed Description

Demonstrate chunked storage in a local NcZarr dataset (Fortran).

Fortran equivalent of nczarr_chunking.c. Creates a 4x5 temperature array with explicit chunk shape [2, 5] (y, x) in a local NcZarr store, verifies chunking metadata after reopening, and validates data values.

Learning Objectives:

Key Concepts:

Fortran vs C Differences:

Related Examples:

Compilation:

gfortran -o f_nczarr_chunking f_nczarr_chunking.f90 -lnetcdff -lnetcdf
program f_nczarr_chunking
Definition f_nczarr_chunking.f90:54

Usage:

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

Expected Output: Creates the directory f_nczarr_chunking.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-26

Function/Subroutine Documentation

◆ f_nczarr_chunking()

program f_nczarr_chunking

◆ handle_err()

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