|
NEP 2.7.0
NetCDF Extension 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 |
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; UDF6–UDF9 are reserved for future formats.
| 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–9 | — | Reserved | — |
Call NC_GEOTIFF_initialize(), NC_GRIB2_initialize(), NC_FITS_initialize(), NC_CDF_initialize(), or NC_PDS4_initialize() to register the corresponding handler before calling nc_open(). With .ncrc autoload (NetCDF-C main branch) no explicit call is needed.
| #define NEP_UDF_CDF NC_UDF4 |
NASA CDF format uses UDF4 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_PDS4 NC_UDF5 |
PDS4 planetary data system format uses UDF5 slot