NEP 1.7.0
NetCDF Extension Pack: compression extensions for NetCDF
Loading...
Searching...
No Matches
Functions/Subroutines
f_coord.f90 File Reference

Demonstrates 3D surface temperature with time, lat, lon coordinate variables (Fortran) More...

Functions/Subroutines

program f_coord
 
subroutine handle_err (status)
 

Detailed Description

Demonstrates 3D surface temperature with time, lat, lon coordinate variables (Fortran)

This is the Fortran equivalent of coord.c, demonstrating 3D surface temperature data with time, latitude, and longitude coordinate variables following CF conventions. The program creates a surface temperature dataset on a 4x5 lat/lon grid with 3 time steps using the Fortran 90 NetCDF API.

Learning Objectives:

Key Fortran Concepts:

Prerequisites:

Related Examples:

Compilation:

gfortran -o f_coord f_coord.f90 -lnetcdff -lnetcdf
program f_coord
Definition f_coord.f90:46

Usage:

ncdump f_coord.nc
Author
Edward Hartnett, Intelligent Data Design, Inc.
Date
2026

Function/Subroutine Documentation

◆ f_coord()

program f_coord

◆ handle_err()

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