|
NEP 1.5.1
NetCDF Extension Pack: compression extensions for NetCDF
|
Basic example demonstrating 2D array creation and reading in NetCDF (Fortran) More...
Functions/Subroutines | |
| program | f_simple_2d |
| subroutine | handle_err (status) |
Basic example demonstrating 2D array creation and reading in NetCDF (Fortran)
This is the Fortran equivalent of simple_2D.c, demonstrating the fundamental workflow for working with NetCDF files using the Fortran 90 NetCDF API. The program creates a 2D integer array, writes it to a NetCDF file, then reopens the file to verify both metadata and data correctness.
Learning Objectives:
Key Concepts:
Fortran vs C Differences:
Prerequisites:
Related Examples:
Compilation:
Usage:
Expected Output: Creates f_simple_2D.nc containing:
| program f_simple_2d |
| subroutine f_simple_2d::handle_err | ( | integer, intent(in) | status | ) |