PIO  2.5.4
Functions
Write Strided Arrays

Functions

int PIOc_put_vars_text (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const PIO_Offset *stride, const char *op)
 Put strided, muti-dimensional subset of a text variable. More...
 
int PIOc_put_vars_uchar (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const PIO_Offset *stride, const unsigned char *op)
 Put strided, muti-dimensional subset of an unsigned char variable. More...
 
int PIOc_put_vars_schar (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const PIO_Offset *stride, const signed char *op)
 Put strided, muti-dimensional subset of a signed char variable. More...
 
int PIOc_put_vars_ushort (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const PIO_Offset *stride, const unsigned short *op)
 Put strided, muti-dimensional subset of an unsigned 16-bit integer variable. More...
 
int PIOc_put_vars_short (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const PIO_Offset *stride, const short *op)
 Put strided, muti-dimensional subset of a 16-bit integer variable. More...
 
int PIOc_put_vars_uint (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const PIO_Offset *stride, const unsigned int *op)
 Put strided, muti-dimensional subset of an unsigned integer variable. More...
 
int PIOc_put_vars_int (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const PIO_Offset *stride, const int *op)
 Put strided, muti-dimensional subset of an integer variable. More...
 
int PIOc_put_vars_long (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const PIO_Offset *stride, const long *op)
 Put strided, muti-dimensional subset of a 64-bit integer variable. More...
 
int PIOc_put_vars_float (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const PIO_Offset *stride, const float *op)
 Put strided, muti-dimensional subset of a floating point variable. More...
 
int PIOc_put_vars_longlong (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const PIO_Offset *stride, const long long *op)
 Put strided, muti-dimensional subset of a 64-bit unsigned integer variable. More...
 
int PIOc_put_vars_double (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const PIO_Offset *stride, const double *op)
 Put strided, muti-dimensional subset of a 64-bit floating point variable. More...
 
int PIOc_put_vars_ulonglong (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const PIO_Offset *stride, const unsigned long long *op)
 Put strided, muti-dimensional subset of an unsigned 64-bit integer variable. More...
 
int PIOc_put_vars (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const PIO_Offset *stride, const void *op)
 Write strided, muti-dimensional subset of a variable of any type. More...
 

Detailed Description

Write strided arrays of data to a Variable in C.

Function Documentation

◆ PIOc_put_vars()

int PIOc_put_vars ( int  ncid,
int  varid,
const PIO_Offset start,
const PIO_Offset count,
const PIO_Offset stride,
const void *  op 
)

Write strided, muti-dimensional subset of a variable of any type.

This routine is called collectively by all tasks in the communicator ios.union_comm.

Parameters
ncididentifies the netCDF file
varidthe variable ID number
startan array of start indicies (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
countan array of counts (must have same number of entries as variable has dimensions). If NULL, counts matching the size of the variable will be used.
stridean array of strides (must have same number of entries as variable has dimensions). If NULL, strides of 1 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vars_double()

int PIOc_put_vars_double ( int  ncid,
int  varid,
const PIO_Offset start,
const PIO_Offset count,
const PIO_Offset stride,
const double *  op 
)

Put strided, muti-dimensional subset of a 64-bit floating point variable.

This routine is called collectively by all tasks in the communicator ios.union_comm.

Parameters
ncididentifies the netCDF file
varidthe variable ID number
startan array of start indicies (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
countan array of counts (must have same number of entries as variable has dimensions). If NULL, counts matching the size of the variable will be used.
stridean array of strides (must have same number of entries as variable has dimensions). If NULL, strides of 1 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vars_float()

int PIOc_put_vars_float ( int  ncid,
int  varid,
const PIO_Offset start,
const PIO_Offset count,
const PIO_Offset stride,
const float *  op 
)

Put strided, muti-dimensional subset of a floating point variable.

This routine is called collectively by all tasks in the communicator ios.union_comm.

Parameters
ncididentifies the netCDF file
varidthe variable ID number
startan array of start indicies (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
countan array of counts (must have same number of entries as variable has dimensions). If NULL, counts matching the size of the variable will be used.
stridean array of strides (must have same number of entries as variable has dimensions). If NULL, strides of 1 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vars_int()

int PIOc_put_vars_int ( int  ncid,
int  varid,
const PIO_Offset start,
const PIO_Offset count,
const PIO_Offset stride,
const int *  op 
)

Put strided, muti-dimensional subset of an integer variable.

This routine is called collectively by all tasks in the communicator ios.union_comm.

Parameters
ncididentifies the netCDF file
varidthe variable ID number
startan array of start indicies (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
countan array of counts (must have same number of entries as variable has dimensions). If NULL, counts matching the size of the variable will be used.
stridean array of strides (must have same number of entries as variable has dimensions). If NULL, strides of 1 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vars_long()

int PIOc_put_vars_long ( int  ncid,
int  varid,
const PIO_Offset start,
const PIO_Offset count,
const PIO_Offset stride,
const long *  op 
)

Put strided, muti-dimensional subset of a 64-bit integer variable.

This routine is called collectively by all tasks in the communicator ios.union_comm.

Parameters
ncididentifies the netCDF file
varidthe variable ID number
startan array of start indicies (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
countan array of counts (must have same number of entries as variable has dimensions). If NULL, counts matching the size of the variable will be used.
stridean array of strides (must have same number of entries as variable has dimensions). If NULL, strides of 1 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vars_longlong()

int PIOc_put_vars_longlong ( int  ncid,
int  varid,
const PIO_Offset start,
const PIO_Offset count,
const PIO_Offset stride,
const long long *  op 
)

Put strided, muti-dimensional subset of a 64-bit unsigned integer variable.

This routine is called collectively by all tasks in the communicator ios.union_comm.

Parameters
ncididentifies the netCDF file
varidthe variable ID number
startan array of start indicies (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
countan array of counts (must have same number of entries as variable has dimensions). If NULL, counts matching the size of the variable will be used.
stridean array of strides (must have same number of entries as variable has dimensions). If NULL, strides of 1 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vars_schar()

int PIOc_put_vars_schar ( int  ncid,
int  varid,
const PIO_Offset start,
const PIO_Offset count,
const PIO_Offset stride,
const signed char *  op 
)

Put strided, muti-dimensional subset of a signed char variable.

This routine is called collectively by all tasks in the communicator ios.union_comm.

Parameters
ncididentifies the netCDF file
varidthe variable ID number
startan array of start indicies (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
countan array of counts (must have same number of entries as variable has dimensions). If NULL, counts matching the size of the variable will be used.
stridean array of strides (must have same number of entries as variable has dimensions). If NULL, strides of 1 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vars_short()

int PIOc_put_vars_short ( int  ncid,
int  varid,
const PIO_Offset start,
const PIO_Offset count,
const PIO_Offset stride,
const short *  op 
)

Put strided, muti-dimensional subset of a 16-bit integer variable.

This routine is called collectively by all tasks in the communicator ios.union_comm.

Parameters
ncididentifies the netCDF file
varidthe variable ID number
startan array of start indicies (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
countan array of counts (must have same number of entries as variable has dimensions). If NULL, counts matching the size of the variable will be used.
stridean array of strides (must have same number of entries as variable has dimensions). If NULL, strides of 1 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vars_text()

int PIOc_put_vars_text ( int  ncid,
int  varid,
const PIO_Offset start,
const PIO_Offset count,
const PIO_Offset stride,
const char *  op 
)

Put strided, muti-dimensional subset of a text variable.

This routine is called collectively by all tasks in the communicator ios.union_comm.

Parameters
ncididentifies the netCDF file
varidthe variable ID number
startan array of start indicies (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
countan array of counts (must have same number of entries as variable has dimensions). If NULL, counts matching the size of the variable will be used.
stridean array of strides (must have same number of entries as variable has dimensions). If NULL, strides of 1 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vars_uchar()

int PIOc_put_vars_uchar ( int  ncid,
int  varid,
const PIO_Offset start,
const PIO_Offset count,
const PIO_Offset stride,
const unsigned char *  op 
)

Put strided, muti-dimensional subset of an unsigned char variable.

This routine is called collectively by all tasks in the communicator ios.union_comm.

Parameters
ncididentifies the netCDF file
varidthe variable ID number
startan array of start indicies (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
countan array of counts (must have same number of entries as variable has dimensions). If NULL, counts matching the size of the variable will be used.
stridean array of strides (must have same number of entries as variable has dimensions). If NULL, strides of 1 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vars_uint()

int PIOc_put_vars_uint ( int  ncid,
int  varid,
const PIO_Offset start,
const PIO_Offset count,
const PIO_Offset stride,
const unsigned int *  op 
)

Put strided, muti-dimensional subset of an unsigned integer variable.

This routine is called collectively by all tasks in the communicator ios.union_comm.

Parameters
ncididentifies the netCDF file
varidthe variable ID number
startan array of start indicies (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
countan array of counts (must have same number of entries as variable has dimensions). If NULL, counts matching the size of the variable will be used.
stridean array of strides (must have same number of entries as variable has dimensions). If NULL, strides of 1 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vars_ulonglong()

int PIOc_put_vars_ulonglong ( int  ncid,
int  varid,
const PIO_Offset start,
const PIO_Offset count,
const PIO_Offset stride,
const unsigned long long *  op 
)

Put strided, muti-dimensional subset of an unsigned 64-bit integer variable.

This routine is called collectively by all tasks in the communicator ios.union_comm.

Parameters
ncididentifies the netCDF file
varidthe variable ID number
startan array of start indicies (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
countan array of counts (must have same number of entries as variable has dimensions). If NULL, counts matching the size of the variable will be used.
stridean array of strides (must have same number of entries as variable has dimensions). If NULL, strides of 1 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vars_ushort()

int PIOc_put_vars_ushort ( int  ncid,
int  varid,
const PIO_Offset start,
const PIO_Offset count,
const PIO_Offset stride,
const unsigned short *  op 
)

Put strided, muti-dimensional subset of an unsigned 16-bit integer variable.

This routine is called collectively by all tasks in the communicator ios.union_comm.

Parameters
ncididentifies the netCDF file
varidthe variable ID number
startan array of start indicies (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
countan array of counts (must have same number of entries as variable has dimensions). If NULL, counts matching the size of the variable will be used.
stridean array of strides (must have same number of entries as variable has dimensions). If NULL, strides of 1 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett