|
NEP 4.0.0
NetCDF Expansion Pack
|
File state, markers, synchronization, and cleanup for NEXTCDF-4. More...
Functions | |
| int | NEXTCDF4_hdf_error (void) |
| static void | close_group_hdf (NC_GRP_INFO_T *grp) |
| int | NEXTCDF4_free_file (NEXTCDF4_FILE_INFO_T *file) |
| int | NEXTCDF4_add_file (int ncid, const char *path, int mode, NEXTCDF4_FILE_INFO_T **filep) |
| int | NEXTCDF4_get_file (int ncid, NC_FILE_INFO_T **h5p, NEXTCDF4_FILE_INFO_T **filep) |
| static int | write_string_att (hid_t location, const char *name, const char *value) |
| int | NEXTCDF4_write_markers (NEXTCDF4_FILE_INFO_T *file) |
| int | NEXTCDF4_read_markers (NEXTCDF4_FILE_INFO_T *file) |
| int | NEXTCDF4_sync (int ncid) |
| int | NEXTCDF4_close (int ncid, void *parameters) |
| int | NEXTCDF4_abort (int ncid) |
| int | NEXTCDF4_inq_format (int ncid, int *formatp) |
| int | NEXTCDF4_inq_format_extended (int ncid, int *formatp, int *modep) |
| int | NEXTCDF4__enddef (int ncid, size_t h_minfree, size_t v_align, size_t v_minfree, size_t r_align) |
| int | NEXTCDF4_redef (int ncid) |
File state, markers, synchronization, and cleanup for NEXTCDF-4.
|
static |
| int NEXTCDF4__enddef | ( | int | ncid, |
| size_t | h_minfree, | ||
| size_t | v_align, | ||
| size_t | v_minfree, | ||
| size_t | r_align | ||
| ) |
Materialize pending root-group metadata to HDF5 and exit define mode.
| ncid | NetCDF file identifier. |
| h_minfree | Ignored (reserved for future alignment control). |
| v_align | Ignored (reserved for future alignment control). |
| v_minfree | Ignored (reserved for future alignment control). |
| r_align | Ignored (reserved for future alignment control). |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_abort | ( | int | ncid | ) |
Abort a NEXTCDF-4 file operation and release its resources.
| ncid | NetCDF file identifier. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_add_file | ( | int | ncid, |
| const char * | path, | ||
| int | mode, | ||
| NEXTCDF4_FILE_INFO_T ** | filep | ||
| ) |
Allocate and register per-file NEXTCDF-4 state.
| ncid | NetCDF file identifier. |
| path | File-system path. |
| mode | Effective NetCDF mode. |
| filep | Destination for the allocated state. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_close | ( | int | ncid, |
| void * | parameters | ||
| ) |
Close a NEXTCDF-4 file and release its resources.
| ncid | NetCDF file identifier. |
| parameters | Optional close parameters; currently ignored. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_free_file | ( | NEXTCDF4_FILE_INFO_T * | file | ) |
Close HDF5 identifiers and free per-file state.
| file | State to release; may be NULL. |
NC_NOERR or NC_EHDFERR if an HDF5 close fails. | int NEXTCDF4_get_file | ( | int | ncid, |
| NC_FILE_INFO_T ** | h5p, | ||
| NEXTCDF4_FILE_INFO_T ** | filep | ||
| ) |
Resolve registered NEXTCDF-4 state from a NetCDF identifier.
| ncid | NetCDF file identifier. |
| h5p | Optional destination for common NetCDF-4 state. |
| filep | Optional destination for NEXTCDF-4 state. |
NC_NOERR on success, or NC_EBADID for invalid state. | int NEXTCDF4_hdf_error | ( | void | ) |
Return the NetCDF error used for an HDF5-layer failure.
NC_EHDFERR. | int NEXTCDF4_inq_format | ( | int | ncid, |
| int * | formatp | ||
| ) |
Inquire the public NetCDF format class.
| ncid | NetCDF file identifier. |
| formatp | Optional destination for NC_FORMAT_NETCDF4. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_inq_format_extended | ( | int | ncid, |
| int * | formatp, | ||
| int * | modep | ||
| ) |
Inquire the extended NEXTCDF-4 format and effective mode.
| ncid | NetCDF file identifier. |
| formatp | Optional destination for NC_FORMATX_NEXTCDF4. |
| modep | Optional destination for the effective open/create mode. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_read_markers | ( | NEXTCDF4_FILE_INFO_T * | file | ) |
Read and validate NEXTCDF-4 provenance and compatibility markers.
| file | Open NEXTCDF-4 state. |
NC_NOERR on success, or NC_EFILEMETA for invalid markers. | int NEXTCDF4_redef | ( | int | ncid | ) |
Return the file to define mode.
| ncid | NetCDF file identifier. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_sync | ( | int | ncid | ) |
Flush a writable NEXTCDF-4 file to storage.
| ncid | NetCDF file identifier. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_write_markers | ( | NEXTCDF4_FILE_INFO_T * | file | ) |
Write NEXTCDF-4 provenance and compatibility markers.
| file | Open writable NEXTCDF-4 state. |
NC_NOERR on success, or NC_EHDFERR.
|
static |