PIO
2.5.4
|
Read data from a netCDF file to a distributed array in C. More...
Functions | |
int | PIOc_read_darray (int ncid, int varid, int ioid, PIO_Offset arraylen, void *array) |
Read a field from a file to the IO library using distributed arrays. More... | |
int | PIOc_get_vard_text (int ncid, int varid, int decompid, const PIO_Offset recnum, char *buf) |
Get a muti-dimensional subset of a text variable. More... | |
int | PIOc_get_vard_uchar (int ncid, int varid, int decompid, const PIO_Offset recnum, unsigned char *buf) |
Get a muti-dimensional subset of an unsigned char variable. More... | |
int | PIOc_get_vard_schar (int ncid, int varid, int decompid, const PIO_Offset recnum, signed char *buf) |
Get a muti-dimensional subset of a signed char variable. More... | |
int | PIOc_get_vard_ushort (int ncid, int varid, int decompid, const PIO_Offset recnum, unsigned short *buf) |
Get a muti-dimensional subset of an unsigned 16-bit integer variable. More... | |
int | PIOc_get_vard_short (int ncid, int varid, int decompid, const PIO_Offset recnum, short *buf) |
Get a muti-dimensional subset of a 16-bit integer variable. More... | |
int | PIOc_get_vard_uint (int ncid, int varid, int decompid, const PIO_Offset recnum, unsigned int *buf) |
Get a muti-dimensional subset of an unsigned integer variable. More... | |
int | PIOc_get_vard_int (int ncid, int varid, int decompid, const PIO_Offset recnum, int *buf) |
Get a muti-dimensional subset of an integer variable. More... | |
int | PIOc_get_vard_float (int ncid, int varid, int decompid, const PIO_Offset recnum, float *buf) |
Get a muti-dimensional subset of a floating point variable. More... | |
int | PIOc_get_vard_double (int ncid, int varid, int decompid, const PIO_Offset recnum, double *buf) |
Get a muti-dimensional subset of a 64-bit floating point variable. More... | |
int | PIOc_get_vard_ulonglong (int ncid, int varid, int decompid, const PIO_Offset recnum, unsigned long long *buf) |
Get a muti-dimensional subset of an unsigned 64-bit integer variable. More... | |
int | PIOc_get_vard_longlong (int ncid, int varid, int decompid, const PIO_Offset recnum, long long *buf) |
Get a muti-dimensional subset of a 64-bit integer variable. More... | |
int | PIOc_get_vard (int ncid, int varid, int decompid, const PIO_Offset recnum, void *buf) |
Get a muti-dimensional subset of a variable the same type as the variable in the file. More... | |
int | nc_get_vard_text (int ncid, int varid, int decompid, const size_t recnum, char *buf) |
Get a muti-dimensional subset of a text variable. More... | |
int | nc_get_vard_uchar (int ncid, int varid, int decompid, const size_t recnum, unsigned char *buf) |
Get a muti-dimensional subset of an unsigned char variable. More... | |
int | nc_get_vard_schar (int ncid, int varid, int decompid, const size_t recnum, signed char *buf) |
Get a muti-dimensional subset of a signed char variable. More... | |
int | nc_get_vard_ushort (int ncid, int varid, int decompid, const size_t recnum, unsigned short *buf) |
Get a muti-dimensional subset of an unsigned 16-bit integer variable. More... | |
int | nc_get_vard_short (int ncid, int varid, int decompid, const size_t recnum, short *buf) |
Get a muti-dimensional subset of a 16-bit integer variable. More... | |
int | nc_get_vard_uint (int ncid, int varid, int decompid, const size_t recnum, unsigned int *buf) |
Get a muti-dimensional subset of an unsigned integer variable. More... | |
int | nc_get_vard_int (int ncid, int varid, int decompid, const size_t recnum, int *buf) |
Get a muti-dimensional subset of an integer variable. More... | |
int | nc_get_vard_float (int ncid, int varid, int decompid, const size_t recnum, float *buf) |
Get a muti-dimensional subset of a floating point variable. More... | |
int | nc_get_vard_double (int ncid, int varid, int decompid, const size_t recnum, double *buf) |
Get a muti-dimensional subset of a 64-bit floating point variable. More... | |
int | nc_get_vard_ulonglong (int ncid, int varid, int decompid, const size_t recnum, unsigned long long *buf) |
Get a muti-dimensional subset of an unsigned 64-bit integer variable. More... | |
int | nc_get_vard_longlong (int ncid, int varid, int decompid, const size_t recnum, long long *buf) |
Get a muti-dimensional subset of a 64-bit integer variable. More... | |
int | nc_get_vard (int ncid, int varid, int decompid, const size_t recnum, void *buf) |
Get a muti-dimensional subset of a variable the same type as the variable in the file. More... | |
Read data from a netCDF file to a distributed array in C.
Read distributed arrays from a variable in C.
int nc_get_vard | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const size_t | recnum, | ||
void * | buf | ||
) |
Get a muti-dimensional subset of a variable the same type as the variable in the file.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int nc_get_vard_double | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const size_t | recnum, | ||
double * | buf | ||
) |
Get a muti-dimensional subset of a 64-bit floating point variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int nc_get_vard_float | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const size_t | recnum, | ||
float * | buf | ||
) |
Get a muti-dimensional subset of a floating point variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int nc_get_vard_int | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const size_t | recnum, | ||
int * | buf | ||
) |
Get a muti-dimensional subset of an integer variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int nc_get_vard_longlong | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const size_t | recnum, | ||
long long * | buf | ||
) |
Get a muti-dimensional subset of a 64-bit integer variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int nc_get_vard_schar | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const size_t | recnum, | ||
signed char * | buf | ||
) |
Get a muti-dimensional subset of a signed char variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int nc_get_vard_short | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const size_t | recnum, | ||
short * | buf | ||
) |
Get a muti-dimensional subset of a 16-bit integer variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int nc_get_vard_text | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const size_t | recnum, | ||
char * | buf | ||
) |
Get a muti-dimensional subset of a text variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int nc_get_vard_uchar | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const size_t | recnum, | ||
unsigned char * | buf | ||
) |
Get a muti-dimensional subset of an unsigned char variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int nc_get_vard_uint | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const size_t | recnum, | ||
unsigned int * | buf | ||
) |
Get a muti-dimensional subset of an unsigned integer variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int nc_get_vard_ulonglong | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const size_t | recnum, | ||
unsigned long long * | buf | ||
) |
Get a muti-dimensional subset of an unsigned 64-bit integer variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int nc_get_vard_ushort | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const size_t | recnum, | ||
unsigned short * | buf | ||
) |
Get a muti-dimensional subset of an unsigned 16-bit integer variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int PIOc_get_vard | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const PIO_Offset | recnum, | ||
void * | buf | ||
) |
Get a muti-dimensional subset of a variable the same type as the variable in the file.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int PIOc_get_vard_double | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const PIO_Offset | recnum, | ||
double * | buf | ||
) |
Get a muti-dimensional subset of a 64-bit floating point variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int PIOc_get_vard_float | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const PIO_Offset | recnum, | ||
float * | buf | ||
) |
Get a muti-dimensional subset of a floating point variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int PIOc_get_vard_int | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const PIO_Offset | recnum, | ||
int * | buf | ||
) |
Get a muti-dimensional subset of an integer variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int PIOc_get_vard_longlong | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const PIO_Offset | recnum, | ||
long long * | buf | ||
) |
Get a muti-dimensional subset of a 64-bit integer variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int PIOc_get_vard_schar | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const PIO_Offset | recnum, | ||
signed char * | buf | ||
) |
Get a muti-dimensional subset of a signed char variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int PIOc_get_vard_short | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const PIO_Offset | recnum, | ||
short * | buf | ||
) |
Get a muti-dimensional subset of a 16-bit integer variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int PIOc_get_vard_text | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const PIO_Offset | recnum, | ||
char * | buf | ||
) |
Get a muti-dimensional subset of a text variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int PIOc_get_vard_uchar | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const PIO_Offset | recnum, | ||
unsigned char * | buf | ||
) |
Get a muti-dimensional subset of an unsigned char variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int PIOc_get_vard_uint | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const PIO_Offset | recnum, | ||
unsigned int * | buf | ||
) |
Get a muti-dimensional subset of an unsigned integer variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int PIOc_get_vard_ulonglong | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const PIO_Offset | recnum, | ||
unsigned long long * | buf | ||
) |
Get a muti-dimensional subset of an unsigned 64-bit integer variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int PIOc_get_vard_ushort | ( | int | ncid, |
int | varid, | ||
int | decompid, | ||
const PIO_Offset | recnum, | ||
unsigned short * | buf | ||
) |
Get a muti-dimensional subset of an unsigned 16-bit integer variable.
This routine is called collectively by all tasks in the communicator ios.union_comm.
ncid | identifies the netCDF file |
varid | the variable ID number |
decompid | the decomposition ID. |
recnum | the record number. |
buf | pointer that will get the data. |
int PIOc_read_darray | ( | int | ncid, |
int | varid, | ||
int | ioid, | ||
PIO_Offset | arraylen, | ||
void * | array | ||
) |
Read a field from a file to the IO library using distributed arrays.
ncid | identifies the netCDF file. |
varid | the variable ID to be read. |
ioid | the I/O description ID as passed back by PIOc_InitDecomp(). |
arraylen | this parameter is ignored. Nominally it is the length of the array to be read. This is the length of the distrubited array. That is, the length of the portion of the data that is on the processor. This is already known because it is in the decomposition. |
array | pointer to the data to be read. This is a pointer to the distributed portion of the array that is on this processor. |