|
NEP 4.0.0
NetCDF Expansion Pack
|
Macros | |
| #define | NEP_UDF_GEOTIFF_BIGTIFF NC_UDF0 |
| #define | NEP_UDF_GEOTIFF_STANDARD NC_UDF1 |
| #define | NEP_UDF_GRIB2 NC_UDF2 |
| #define | NEP_UDF_CDF NC_UDF4 |
| #define | NEP_UDF_FITS NC_UDF3 |
| #define | NEP_UDF_PDS4 NC_UDF5 |
| #define | NEP_UDF_DICOM NC_UDF6 |
| #define | NEP_UDF_PDB NC_UDF7 |
| #define | NEP_UDF_MMCIF NC_UDF8 |
| #define | NEP_UDF_NEXTCDF4 NC_UDF9 |
| #define | NC_NEXTCDF4 NEP_UDF_NEXTCDF4 |
| #define | NC_NETCDF4_MODEL 0x04000000 |
NetCDF-C exposes ten User-Defined Format (UDF) slots (UDF0–UDF9). Each NEP format handler occupies a permanently assigned slot so that multiple handlers can be enabled simultaneously without conflict. Slot assignments are stable across NEP releases.
| Slot | Macro | Format | Magic |
|---|---|---|---|
| UDF0 | NEP_UDF_GEOTIFF_BIGTIFF | GeoTIFF BigTIFF | II+ |
| UDF1 | NEP_UDF_GEOTIFF_STANDARD | GeoTIFF standard TIFF | II* |
| UDF2 | NEP_UDF_GRIB2 | GRIB2 meteorological | GRIB |
| UDF3 | NEP_UDF_FITS | FITS astronomical | SIMPLE |
| UDF4 | NEP_UDF_CDF | NASA CDF space physics | 0xCDF30001 |
| UDF5 | NEP_UDF_PDS4 | NASA/ESA PDS4 planetary | <?xml |
| UDF6 | NEP_UDF_DICOM | DICOM medical imaging | DICM |
| UDF7 | NEP_UDF_PDB | Legacy PDB protein data | HEADER |
| UDF8 | NEP_UDF_MMCIF | PDBx/mmCIF protein data | data_ |
| UDF9 | NEP_UDF_NEXTCDF4 | NEXTCDF-4 HDF5 backend | explicit |
Call NC_GEOTIFF_initialize(), NC_GRIB2_initialize(), NC_FITS_initialize(), NC_CDF_initialize(), NC_PDS4_initialize(), NC_DICOM_initialize(), NC_PDB_initialize(), or NC_MMCIF_initialize() to register the corresponding handler before calling nc_open(). With .ncrc autoload (NetCDF-C main branch) no explicit call is needed.
| #define NC_NETCDF4_MODEL 0x04000000 |
Request NetCDF-4-model compatibility from the NEXTCDF-4 backend
| #define NC_NEXTCDF4 NEP_UDF_NEXTCDF4 |
Explicit create/open mode for the NEXTCDF-4 backend
| #define NEP_UDF_CDF NC_UDF4 |
NASA CDF format uses UDF4 slot
| #define NEP_UDF_DICOM NC_UDF6 |
DICOM medical imaging data format uses UDF6 slot
| #define NEP_UDF_FITS NC_UDF3 |
FITS astronomical data format uses UDF3 slot
| #define NEP_UDF_GEOTIFF_BIGTIFF NC_UDF0 |
GeoTIFF BigTIFF format uses UDF0 slot
| #define NEP_UDF_GEOTIFF_STANDARD NC_UDF1 |
GeoTIFF standard TIFF format uses UDF1 slot
| #define NEP_UDF_GRIB2 NC_UDF2 |
GRIB2 meteorological format uses UDF2 slot
| #define NEP_UDF_MMCIF NC_UDF8 |
PDBx/mmCIF protein structure data format uses UDF8 slot
| #define NEP_UDF_NEXTCDF4 NC_UDF9 |
NEXTCDF-4 HDF5 backend uses UDF9 slot
| #define NEP_UDF_PDB NC_UDF7 |
Legacy PDB protein structure data format uses UDF7 slot
| #define NEP_UDF_PDS4 NC_UDF5 |
PDS4 planetary data system format uses UDF5 slot