NEP 4.3.0
NetCDF Expansion Pack
Loading...
Searching...
No Matches
NEP (NetCDF Expansion Pack)

Overview

NEP (NetCDF Expansion Pack) provides scientific format readers and the nxCDF backend through the NetCDF API.

Compression Filters

LZ4 and BZIP2 HDF5 filter plugins and their C/Fortran wrappers are provided by the separate nep-compress project; NEP no longer ships them.

See the nep-compress compression guide for the package/API move.

Format Readers

Five NetCDF UDF handlers that expose external scientific formats through the standard nc_open() API, all disabled by default:

  • GeoTIFF (UDF0/UDF1): Geospatial raster files with CF-1.8 CRS metadata
  • GRIB2 (UDF2): Meteorological and oceanographic NWP model output (NOAA GFS, NAM, HRRR)
  • FITS (UDF3): Astronomical images and tables from HST, JWST, Chandra, and other observatories
  • CDF (UDF4): NASA space physics and heliophysics time-series data
  • PDS4 (UDF5): NASA/ESA planetary science archives (Curiosity, Perseverance, Cassini, and others)

See Format Readers — usage, code examples, and dependency information for each reader.

nxCDF Backend

Optional alternative NetCDF-4/HDF5 backend selected explicitly with NC_NXCDF (UDF9). It supports the full enhanced NetCDF-4 data model, variable I/O, chunking, compression, and new atomic types (NC_FLOAT16, small floating-point types, complex numbers, bitfields, and HDF5 references) while coexisting with netcdf-c's built-in HDF5 backend. Files written in NC_NETCDF4_MODEL compatibility mode remain readable by upstream netcdf-c. Not all NetCDF-4 features are implemented yet.

See nxCDF — selection flags, compatibility modes, supported types, and examples — nxCDF Architecture — how the UDF dispatch table, per-object state, and hidden attributes work — and nxCDF float16 storage — the NC_FLOAT16/NC_BFLOAT16 user guide with examples and benchmark results. For an overview of bfloat16 support and the nc_*_bfloat16 functions, with performance charts, see bfloat16 in NEP.

Example Programs

Example programs exercising NEP features: nxCDF small-float I/O and conversion benchmarks, disk-bound performance benchmarks, and UDF reader examples. The generic NetCDF teaching examples (C and Fortran) moved to the NetCDF Developer's Handbook repository, companion code for The NetCDF Developer's Handbook, Second Edition.

See Example Programs — complete program listing by category.

Installation

NEP requires:

  • Unmodified NetCDF-C library (v4.10.1+), including nxCDF: both released 10-slot and development 64-slot UDF schemes are supported. Rebuild NEP and applications when switching schemes.
  • HDF5 library (v1.14+; v2.1.1+ for nxCDF) and its dependencies
  • NetCDF-Fortran library (optional, for Fortran support)
  • NASA CDF library v3.9+ (optional, for CDF file reading)
  • libgeotiff and libtiff (optional, for GeoTIFF file reading; --enable-geotiff)
  • NOAA NCEPLIBS-g2c >= 2.1.0 and libjasper >= 3.0.0 (optional, for GRIB2 file reading; --enable-grib2)
  • CFITSIO >= 3.0 (optional, for FITS file reading; --enable-fits)
  • libxml2 >= 2.9 (optional, for PDS4 file reading; --enable-pds4)

Build with CMake:

# CMake
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr/local
cmake --build build
cmake --install build

Build Options

See the Configuration Options section of the README for the CMake option reference.

API Documentation

Key API reference pages:

Refer to the documentation header for the exact version of NEP corresponding to this build.

License

See the COPYRIGHT file for licensing information.