![]() |
NetCDF 4.9.3
|
Functions | |
static int | check_create_mode (int mode) |
Check the create mode parameter for sanity. | |
int | nc__pseudofd (void) |
int | NC_create (const char *path0, int cmode, size_t initialsz, int basepe, size_t *chunksizehintp, int useparallel, void *parameters, int *ncidp) |
int | NC_open (const char *path0, int omode, int basepe, size_t *chunksizehintp, int useparallel, void *parameters, int *ncidp) |
Variables | |
static int | pseudofd = 0 |
|
static |
Check the create mode parameter for sanity.
Some create flags cannot be used if corresponding library features are enabled during the build. This function does a pre-check of the mode flag before calling the dispatch layer nc_create functions.
mode | The creation mode flag. |
int nc__pseudofd | ( | void | ) |
int NC_create | ( | const char * | path0, |
int | cmode, | ||
size_t | initialsz, | ||
int | basepe, | ||
size_t * | chunksizehintp, | ||
int | useparallel, | ||
void * | parameters, | ||
int * | ncidp ) |
Create a file, calling the appropriate dispatch create call.
For create, we have the following pieces of information to use to determine the dispatch table:
path0 | The file name of the new netCDF dataset. |
cmode | The creation mode flag, the same as in nc_create(). |
initialsz | This parameter sets the initial size of the file at creation time. This only applies to classic files. |
basepe | Deprecated parameter from the Cray days. |
chunksizehintp | A pointer to the chunk size hint. This only applies to classic files. |
useparallel | Non-zero if parallel I/O is to be used on this file. |
parameters | Pointer to MPI comm and info. |
ncidp | Pointer to location where returned netCDF ID is to be stored. |
int NC_open | ( | const char * | path0, |
int | omode, | ||
int | basepe, | ||
size_t * | chunksizehintp, | ||
int | useparallel, | ||
void * | parameters, | ||
int * | ncidp ) |
Open a netCDF file (or remote dataset) calling the appropriate dispatch function.
For open, we have the following pieces of information to use to determine the dispatch table.
path0 | Path to the file to open. |
omode | Open mode. |
basepe | Base processing element (ignored). |
chunksizehintp | Size hint for classic files. |
useparallel | If true use parallel I/O. |
parameters | Extra parameters for the open. |
ncidp | Pointer that gets ncid. |