|
NEP 4.0.0
NetCDF Expansion Pack
|
Private state and shared helpers for the NEXTCDF-4 backend. More...
Go to the source code of this file.
Data Structures | |
| struct | NEXTCDF4_FILE_INFO |
| struct | NEXTCDF4_GRP_INFO |
| struct | NEXTCDF4_DIM_INFO |
| struct | NEXTCDF4_VAR_INFO |
| struct | NEXTCDF4_TYPE_INFO |
Macros | |
| #define | NEXTCDF4_BACKEND_ATT "_Nextcdf4Backend" |
| #define | NEXTCDF4_MODEL_ATT "_Nextcdf4Model" |
| #define | NEXTCDF4_BACKEND_VALUE "NEXTCDF-4/1.0" |
| #define | NEXTCDF4_DIMID_ATT "_Netcdf4Dimid" |
| #define | NEXTCDF4_VARID_ATT "_Nextcdf4Varid" |
| #define | NEXTCDF4_VARDIMIDS_ATT "_Netcdf4Coordinates" |
| #define | NEXTCDF4_DIMCLASS "DIMENSION_SCALE" |
| #define | NEXTCDF4_DIMNAME_ATT "NAME" |
Typedefs | |
| typedef struct NEXTCDF4_FILE_INFO | NEXTCDF4_FILE_INFO_T |
| typedef struct NEXTCDF4_GRP_INFO | NEXTCDF4_GRP_INFO_T |
| typedef struct NEXTCDF4_DIM_INFO | NEXTCDF4_DIM_INFO_T |
| typedef struct NEXTCDF4_VAR_INFO | NEXTCDF4_VAR_INFO_T |
| typedef struct NEXTCDF4_TYPE_INFO | NEXTCDF4_TYPE_INFO_T |
Functions | |
| 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) |
| int | NEXTCDF4_free_file (NEXTCDF4_FILE_INFO_T *file) |
| int | NEXTCDF4_write_markers (NEXTCDF4_FILE_INFO_T *file) |
| int | NEXTCDF4_read_markers (NEXTCDF4_FILE_INFO_T *file) |
| int | NEXTCDF4_hdf_error (void) |
| int | NEXTCDF4_check_write_define (NEXTCDF4_FILE_INFO_T *file) |
| int | NEXTCDF4_map_hdf_type (nc_type xtype, hid_t *typep) |
| int | NEXTCDF4_type_size (nc_type xtype, size_t *sizep) |
| const char * | NEXTCDF4_type_name (nc_type xtype) |
| int | NEXTCDF4_check_atomic_type (NEXTCDF4_FILE_INFO_T *file, nc_type xtype) |
| int | NEXTCDF4_load_metadata (NEXTCDF4_FILE_INFO_T *file, NC_FILE_INFO_T *h5) |
| 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) |
| int | NEXTCDF4_def_dim (int ncid, const char *name, size_t len, int *idp) |
| int | NEXTCDF4_inq_dim (int ncid, int dimid, char *name, size_t *lenp) |
| int | NEXTCDF4_def_var (int ncid, const char *name, nc_type xtype, int ndims, const int *dimidsp, int *varidp) |
| int | NEXTCDF4_def_var_chunking (int ncid, int varid, int storage, const size_t *chunksizesp) |
| int | NEXTCDF4_def_var_deflate (int ncid, int varid, int shuffle, int deflate, int deflate_level) |
| int | NEXTCDF4_def_var_fletcher32 (int ncid, int varid, int fletcher32) |
| int | NEXTCDF4_def_var_fill (int ncid, int varid, int no_fill, const void *fill_value) |
| int | NEXTCDF4_def_var_endian (int ncid, int varid, int endianness) |
| int | NEXTCDF4_def_var_quantize (int ncid, int varid, int quantize_mode, int nsd) |
| int | NEXTCDF4_def_var_filter (int ncid, int varid, unsigned int id, size_t nparams, const unsigned int *params) |
| int | NEXTCDF4_inq_var (int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp) |
| int | NEXTCDF4_inq_var_all (int ncid, int varid, char *name, nc_type *xtypep, int *ndimsp, int *dimidsp, int *nattsp, int *shufflep, int *deflatep, int *deflate_levelp, int *fletcher32p, int *contiguousp, size_t *chunksizesp, int *no_fillp, void *fill_valuep, int *endiannessp, unsigned int *idp, size_t *nparamsp, unsigned int *params) |
| int | NEXTCDF4_inq_var_filter_ids (int ncid, int varid, size_t *nfiltersp, unsigned int *ids) |
| int | NEXTCDF4_inq_var_filter_info (int ncid, int varid, unsigned int id, size_t *nparamsp, unsigned int *params) |
| int | NEXTCDF4_get_vara (int, int, const size_t *, const size_t *, void *, nc_type) |
| int | NEXTCDF4_put_vara (int, int, const size_t *, const size_t *, const void *, nc_type) |
| int | NEXTCDF4_get_vars (int, int, const size_t *, const size_t *, const ptrdiff_t *, void *, nc_type) |
| int | NEXTCDF4_put_vars (int, int, const size_t *, const size_t *, const ptrdiff_t *, const void *, nc_type) |
| int | NEXTCDF4_get_varm (int, int, const size_t *, const size_t *, const ptrdiff_t *, const ptrdiff_t *, void *, nc_type) |
| int | NEXTCDF4_put_varm (int, int, const size_t *, const size_t *, const ptrdiff_t *, const ptrdiff_t *, const void *, nc_type) |
| int | NEXTCDF4_put_att (int ncid, int varid, const char *name, nc_type xtype, size_t len, const void *value, nc_type memtype) |
| int | NEXTCDF4_get_att (int ncid, int varid, const char *name, void *value, nc_type memtype) |
| int | NEXTCDF4_rename_att (int ncid, int varid, const char *name, const char *newname) |
| int | NEXTCDF4_rename_dim (int ncid, int dimid, const char *name) |
| int | NEXTCDF4_rename_var (int ncid, int varid, const char *name) |
| int | NEXTCDF4_del_att (int ncid, int varid, const char *name) |
| int | NEXTCDF4_write_attributes (NEXTCDF4_FILE_INFO_T *file, NC_FILE_INFO_T *h5) |
| int | NEXTCDF4_def_grp (int ncid, const char *name, int *grpidp) |
| int | NEXTCDF4_inq_ncid (int ncid, const char *name, int *grpidp) |
| int | NEXTCDF4_inq_grps (int ncid, int *numgrps, int *grpidsp) |
| int | NEXTCDF4_inq_grpname (int ncid, char *name) |
| int | NEXTCDF4_inq_grpname_full (int ncid, size_t *lenp, char *name) |
| int | NEXTCDF4_inq_grp_parent (int ncid, int *parentidp) |
| int | NEXTCDF4_inq_grp_full_ncid (int ncid, const char *full_name, int *grpidp) |
| int | NEXTCDF4_inq_typeids (int ncid, int *ntypes, int *typeids) |
| int | NEXTCDF4_def_compound (int ncid, size_t size, const char *name, nc_type *typeidp) |
| int | NEXTCDF4_insert_compound (int ncid, nc_type typeid, const char *name, size_t offset, nc_type xtype) |
| int | NEXTCDF4_insert_array_compound (int ncid, nc_type typeid, const char *name, size_t offset, nc_type xtype, int ndims, const int *dim_sizesp) |
| int | NEXTCDF4_inq_compound_field (int ncid, nc_type typeid, int fieldid, char *name, size_t *offsetp, nc_type *fieldtypep, int *ndimsp, int *dim_sizesp) |
| int | NEXTCDF4_inq_compound_fieldindex (int ncid, nc_type typeid, const char *name, int *fieldidxp) |
| int | NEXTCDF4_def_vlen (int ncid, const char *name, nc_type base_typeid, nc_type *typeidp) |
| int | NEXTCDF4_put_vlen_element (int ncid, int typeid, void *vlen_element, size_t len, const void *data) |
| int | NEXTCDF4_get_vlen_element (int ncid, int typeid, const void *vlen_element, size_t *lenp, void *data) |
| int | NEXTCDF4_def_enum (int ncid, nc_type base_typeid, const char *name, nc_type *typeidp) |
| int | NEXTCDF4_insert_enum (int ncid, nc_type typeid, const char *name, const void *value) |
| int | NEXTCDF4_inq_enum_member (int ncid, nc_type typeid, int idx, char *name, void *value) |
| int | NEXTCDF4_inq_enum_ident (int ncid, nc_type typeid, long long value, char *identifier) |
| int | NEXTCDF4_def_opaque (int ncid, size_t size, const char *name, nc_type *typeidp) |
| int | NEXTCDF4_write_types (NC_FILE_INFO_T *h5) |
| int | NEXTCDF4_inq_user_type (int ncid, nc_type typeid, char *name, size_t *size, nc_type *base_typep, size_t *nfieldsp, int *classp) |
| int | NEXTCDF4_inq_typeid (int ncid, const char *name, nc_type *typeidp) |
| int | NEXTCDF4_inq_type_equal (int ncid1, nc_type typeid1, int ncid2, nc_type typeid2, int *equalp) |
| int | NEXTCDF4_get_type_size (nc_type xtype, size_t *sizep) |
Private state and shared helpers for the NEXTCDF-4 backend.
| #define NEXTCDF4_BACKEND_ATT "_Nextcdf4Backend" |
Hidden root attribute identifying a NEXTCDF-4-created file.
| #define NEXTCDF4_BACKEND_VALUE "NEXTCDF-4/1.0" |
Backend version stored in the NEXTCDF-4 provenance attribute.
| #define NEXTCDF4_DIMCLASS "DIMENSION_SCALE" |
HDF5 dimension scale class marker.
| #define NEXTCDF4_DIMID_ATT "_Netcdf4Dimid" |
Hidden attribute storing a dimension's stable NetCDF dimid.
| #define NEXTCDF4_DIMNAME_ATT "NAME" |
Optional dimension scale name attribute.
| #define NEXTCDF4_MODEL_ATT "_Nextcdf4Model" |
Hidden root attribute identifying NetCDF-4 compatibility mode.
| #define NEXTCDF4_VARDIMIDS_ATT "_Netcdf4Coordinates" |
Hidden attribute storing a variable's dimension id list.
| #define NEXTCDF4_VARID_ATT "_Nextcdf4Varid" |
Hidden attribute storing a variable's stable NetCDF varid.
| typedef struct NEXTCDF4_DIM_INFO NEXTCDF4_DIM_INFO_T |
Format-specific information attached to an NC_DIM_INFO_T.
| typedef struct NEXTCDF4_FILE_INFO NEXTCDF4_FILE_INFO_T |
Per-file state owned by the NEXTCDF-4 dispatch layer.
| typedef struct NEXTCDF4_GRP_INFO NEXTCDF4_GRP_INFO_T |
Format-specific information attached to an NC_GRP_INFO_T.
| typedef struct NEXTCDF4_TYPE_INFO NEXTCDF4_TYPE_INFO_T |
Format-specific information attached to an NC_TYPE_INFO_T.
| typedef struct NEXTCDF4_VAR_INFO NEXTCDF4_VAR_INFO_T |
Format-specific information attached to an NC_VAR_INFO_T.
| 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_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_check_atomic_type | ( | NEXTCDF4_FILE_INFO_T * | file, |
| nc_type | xtype | ||
| ) |
Validate a fixed-size atomic type for the active model.
| file | NEXTCDF-4 file state. |
| xtype | Candidate NetCDF type. |
NC_NOERR or NC_EBADTYPE/NC_ENOTNC4. | int NEXTCDF4_check_write_define | ( | NEXTCDF4_FILE_INFO_T * | file | ) |
Verify the file is in define mode and not read-only.
| file | NEXTCDF-4 file state. |
NC_NOERR or an appropriate NetCDF error code. | int NEXTCDF4_def_compound | ( | int | ncid, |
| size_t | size, | ||
| const char * | name, | ||
| nc_type * | typeidp | ||
| ) |
| int NEXTCDF4_def_dim | ( | int | ncid, |
| const char * | name, | ||
| size_t | len, | ||
| int * | idp | ||
| ) |
Define a dimension in the root group.
| ncid | NetCDF file identifier. |
| name | Dimension name. |
| len | Dimension length, or 0 for unlimited. |
| idp | Destination for the assigned dimension id. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_def_enum | ( | int | ncid, |
| nc_type | base_typeid, | ||
| const char * | name, | ||
| nc_type * | typeidp | ||
| ) |
| int NEXTCDF4_def_grp | ( | int | ncid, |
| const char * | name, | ||
| int * | grpidp | ||
| ) |
| int NEXTCDF4_def_opaque | ( | int | ncid, |
| size_t | size, | ||
| const char * | name, | ||
| nc_type * | typeidp | ||
| ) |
| int NEXTCDF4_def_var | ( | int | ncid, |
| const char * | name, | ||
| nc_type | xtype, | ||
| int | ndims, | ||
| const int * | dimidsp, | ||
| int * | varidp | ||
| ) |
Define a fixed-size atomic variable in the root group.
| ncid | NetCDF file identifier. |
| name | Variable name. |
| xtype | NetCDF atomic type. |
| ndims | Number of dimensions. |
| dimidsp | Array of dimension ids. |
| varidp | Destination for the assigned variable id. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_def_var_chunking | ( | int | ncid, |
| int | varid, | ||
| int | storage, | ||
| const size_t * | chunksizesp | ||
| ) |
Variable storage-property dispatch callbacks.
| int NEXTCDF4_def_var_deflate | ( | int | ncid, |
| int | varid, | ||
| int | shuffle, | ||
| int | deflate, | ||
| int | deflate_level | ||
| ) |
| int NEXTCDF4_def_var_endian | ( | int | ncid, |
| int | varid, | ||
| int | endianness | ||
| ) |
| int NEXTCDF4_def_var_fill | ( | int | ncid, |
| int | varid, | ||
| int | no_fill, | ||
| const void * | fill_value | ||
| ) |
| int NEXTCDF4_def_var_filter | ( | int | ncid, |
| int | varid, | ||
| unsigned int | id, | ||
| size_t | nparams, | ||
| const unsigned int * | params | ||
| ) |
| int NEXTCDF4_def_var_fletcher32 | ( | int | ncid, |
| int | varid, | ||
| int | fletcher32 | ||
| ) |
| int NEXTCDF4_def_var_quantize | ( | int | ncid, |
| int | varid, | ||
| int | quantize_mode, | ||
| int | nsd | ||
| ) |
| int NEXTCDF4_def_vlen | ( | int | ncid, |
| const char * | name, | ||
| nc_type | base_typeid, | ||
| nc_type * | typeidp | ||
| ) |
| int NEXTCDF4_del_att | ( | int | ncid, |
| int | varid, | ||
| const char * | name | ||
| ) |
Delete an attribute.
| ncid | NetCDF file identifier. |
| varid | Variable id or NC_GLOBAL. |
| name | Attribute name. |
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_att | ( | int | ncid, |
| int | varid, | ||
| const char * | name, | ||
| void * | value, | ||
| nc_type | memtype | ||
| ) |
Get an attribute from the root group or a variable.
| ncid | NetCDF file identifier. |
| varid | Variable id or NC_GLOBAL. |
| name | Attribute name. |
| value | Destination buffer. |
| memtype | Requested in-memory type. |
NC_NOERR on success, or a NetCDF error code. | 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_get_type_size | ( | nc_type | xtype, |
| size_t * | sizep | ||
| ) |
| int NEXTCDF4_get_vara | ( | int | ncid, |
| int | varid, | ||
| const size_t * | start, | ||
| const size_t * | count, | ||
| void * | value, | ||
| nc_type | memtype | ||
| ) |
Fixed-size atomic variable hyperslab I/O callbacks.
| int NEXTCDF4_get_varm | ( | int | ncid, |
| int | varid, | ||
| const size_t * | s, | ||
| const size_t * | c, | ||
| const ptrdiff_t * | st, | ||
| const ptrdiff_t * | im, | ||
| void * | v, | ||
| nc_type | t | ||
| ) |
| int NEXTCDF4_get_vars | ( | int | ncid, |
| int | varid, | ||
| const size_t * | start, | ||
| const size_t * | count, | ||
| const ptrdiff_t * | stride, | ||
| void * | value, | ||
| nc_type | memtype | ||
| ) |
| int NEXTCDF4_get_vlen_element | ( | int | ncid, |
| int | typeid, | ||
| const void * | vlen_element, | ||
| size_t * | lenp, | ||
| void * | data | ||
| ) |
| int NEXTCDF4_hdf_error | ( | void | ) |
Return the NetCDF error used for an HDF5-layer failure.
NC_EHDFERR. | int NEXTCDF4_inq_compound_field | ( | int | ncid, |
| nc_type | typeid, | ||
| int | fieldid, | ||
| char * | name, | ||
| size_t * | offsetp, | ||
| nc_type * | fieldtypep, | ||
| int * | ndimsp, | ||
| int * | dim_sizesp | ||
| ) |
| int NEXTCDF4_inq_compound_fieldindex | ( | int | ncid, |
| nc_type | typeid, | ||
| const char * | name, | ||
| int * | fieldidxp | ||
| ) |
| int NEXTCDF4_inq_dim | ( | int | ncid, |
| int | dimid, | ||
| char * | name, | ||
| size_t * | lenp | ||
| ) |
Inquire a dimension by id.
| ncid | NetCDF file identifier. |
| dimid | Dimension id. |
| name | Destination for the dimension name. |
| lenp | Destination for the dimension length. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_inq_enum_ident | ( | int | ncid, |
| nc_type | typeid, | ||
| long long | value, | ||
| char * | identifier | ||
| ) |
| int NEXTCDF4_inq_enum_member | ( | int | ncid, |
| nc_type | typeid, | ||
| int | idx, | ||
| char * | name, | ||
| void * | value | ||
| ) |
| int NEXTCDF4_inq_grp_full_ncid | ( | int | ncid, |
| const char * | full_name, | ||
| int * | grpidp | ||
| ) |
| int NEXTCDF4_inq_grp_parent | ( | int | ncid, |
| int * | parentidp | ||
| ) |
| int NEXTCDF4_inq_grpname | ( | int | ncid, |
| char * | name | ||
| ) |
| int NEXTCDF4_inq_grpname_full | ( | int | ncid, |
| size_t * | lenp, | ||
| char * | name | ||
| ) |
| int NEXTCDF4_inq_grps | ( | int | ncid, |
| int * | numgrps, | ||
| int * | grpidsp | ||
| ) |
| int NEXTCDF4_inq_ncid | ( | int | ncid, |
| const char * | name, | ||
| int * | grpidp | ||
| ) |
| int NEXTCDF4_inq_type_equal | ( | int | ncid1, |
| nc_type | typeid1, | ||
| int | ncid2, | ||
| nc_type | typeid2, | ||
| int * | equalp | ||
| ) |
| int NEXTCDF4_inq_typeid | ( | int | ncid, |
| const char * | name, | ||
| nc_type * | typeidp | ||
| ) |
| int NEXTCDF4_inq_typeids | ( | int | ncid, |
| int * | ntypes, | ||
| int * | typeids | ||
| ) |
| int NEXTCDF4_inq_user_type | ( | int | ncid, |
| nc_type | typeid, | ||
| char * | name, | ||
| size_t * | size, | ||
| nc_type * | base_typep, | ||
| size_t * | nfieldsp, | ||
| int * | classp | ||
| ) |
| int NEXTCDF4_inq_var | ( | int | ncid, |
| int | varid, | ||
| char * | name, | ||
| nc_type * | xtypep, | ||
| int * | ndimsp, | ||
| int * | dimidsp, | ||
| int * | nattsp | ||
| ) |
Inquire a variable by id.
| ncid | NetCDF file identifier. |
| varid | Variable id. |
| name | Destination for the variable name. |
| xtypep | Destination for the variable type. |
| ndimsp | Destination for the rank. |
| dimidsp | Destination for the dimension ids. |
| nattsp | Destination for the number of attributes. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_inq_var_all | ( | int | ncid, |
| int | varid, | ||
| char * | name, | ||
| nc_type * | xtypep, | ||
| int * | ndimsp, | ||
| int * | dimidsp, | ||
| int * | nattsp, | ||
| int * | shufflep, | ||
| int * | deflatep, | ||
| int * | deflate_levelp, | ||
| int * | fletcher32p, | ||
| int * | contiguousp, | ||
| size_t * | chunksizesp, | ||
| int * | no_fillp, | ||
| void * | fill_valuep, | ||
| int * | endiannessp, | ||
| unsigned int * | idp, | ||
| size_t * | nparamsp, | ||
| unsigned int * | params | ||
| ) |
| int NEXTCDF4_inq_var_filter_ids | ( | int | ncid, |
| int | varid, | ||
| size_t * | nfiltersp, | ||
| unsigned int * | ids | ||
| ) |
| int NEXTCDF4_inq_var_filter_info | ( | int | ncid, |
| int | varid, | ||
| unsigned int | id, | ||
| size_t * | nparamsp, | ||
| unsigned int * | params | ||
| ) |
| int NEXTCDF4_insert_array_compound | ( | int | ncid, |
| nc_type | typeid, | ||
| const char * | name, | ||
| size_t | offset, | ||
| nc_type | xtype, | ||
| int | ndims, | ||
| const int * | dim_sizesp | ||
| ) |
| int NEXTCDF4_insert_compound | ( | int | ncid, |
| nc_type | typeid, | ||
| const char * | name, | ||
| size_t | offset, | ||
| nc_type | xtype | ||
| ) |
| int NEXTCDF4_insert_enum | ( | int | ncid, |
| nc_type | typeid, | ||
| const char * | name, | ||
| const void * | value | ||
| ) |
| int NEXTCDF4_load_metadata | ( | NEXTCDF4_FILE_INFO_T * | file, |
| NC_FILE_INFO_T * | h5 | ||
| ) |
Load all root-group metadata from an open HDF5 file.
| file | Open NEXTCDF-4 state. |
| h5 | Common NetCDF-4 file metadata. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_map_hdf_type | ( | nc_type | xtype, |
| hid_t * | typep | ||
| ) |
Map a fixed-size NetCDF atomic type to its HDF5 datatype.
| xtype | NetCDF atomic type. |
| typep | Destination for an HDF5 datatype identifier. |
NC_NOERR or NC_EBADTYPE. | int NEXTCDF4_put_att | ( | int | ncid, |
| int | varid, | ||
| const char * | name, | ||
| nc_type | xtype, | ||
| size_t | len, | ||
| const void * | value, | ||
| nc_type | memtype | ||
| ) |
Put an attribute on the root group or a variable.
| ncid | NetCDF file identifier. |
| varid | Variable id or NC_GLOBAL. |
| name | Attribute name. |
| xtype | NetCDF atomic type. |
| len | Number of elements. |
| value | Attribute data. |
| memtype | In-memory type for the attribute value. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_put_vara | ( | int | ncid, |
| int | varid, | ||
| const size_t * | start, | ||
| const size_t * | count, | ||
| const void * | value, | ||
| nc_type | memtype | ||
| ) |
| int NEXTCDF4_put_varm | ( | int | ncid, |
| int | varid, | ||
| const size_t * | s, | ||
| const size_t * | c, | ||
| const ptrdiff_t * | st, | ||
| const ptrdiff_t * | im, | ||
| const void * | v, | ||
| nc_type | t | ||
| ) |
| int NEXTCDF4_put_vars | ( | int | ncid, |
| int | varid, | ||
| const size_t * | start, | ||
| const size_t * | count, | ||
| const ptrdiff_t * | stride, | ||
| const void * | value, | ||
| nc_type | memtype | ||
| ) |
| int NEXTCDF4_put_vlen_element | ( | int | ncid, |
| int | typeid, | ||
| void * | vlen_element, | ||
| size_t | len, | ||
| const void * | data | ||
| ) |
| 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_rename_att | ( | int | ncid, |
| int | varid, | ||
| const char * | name, | ||
| const char * | newname | ||
| ) |
Rename an attribute.
| ncid | NetCDF file identifier. |
| varid | Variable id or NC_GLOBAL. |
| name | Current attribute name. |
| newname | New attribute name. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_rename_dim | ( | int | ncid, |
| int | dimid, | ||
| const char * | name | ||
| ) |
Rename a dimension.
| ncid | NetCDF file identifier. |
| dimid | Dimension id. |
| name | New dimension name. |
NC_NOERR on success, or a NetCDF error code. | int NEXTCDF4_rename_var | ( | int | ncid, |
| int | varid, | ||
| const char * | name | ||
| ) |
Rename a variable.
| ncid | NetCDF file identifier. |
| varid | Variable id. |
| name | New variable name. |
NC_NOERR on success, or a NetCDF error code. | const char * NEXTCDF4_type_name | ( | nc_type | xtype | ) |
Return a display name for a fixed-size NetCDF atomic type.
| xtype | NetCDF atomic type. |
| int NEXTCDF4_type_size | ( | nc_type | xtype, |
| size_t * | sizep | ||
| ) |
Return the in-memory size of a fixed-size NetCDF atomic type.
| xtype | NetCDF atomic type. |
| sizep | Destination for the size in bytes. |
NC_NOERR or NC_EBADTYPE. | int NEXTCDF4_write_attributes | ( | NEXTCDF4_FILE_INFO_T * | file, |
| NC_FILE_INFO_T * | h5 | ||
| ) |
Write all in-memory attributes to their HDF5 group or dataset.
| file | NEXTCDF-4 file state. |
| h5 | Common NetCDF-4 file metadata. |
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. | int NEXTCDF4_write_types | ( | NC_FILE_INFO_T * | h5 | ) |