PIO  2.5.4
Functions
Write Arrays

Functions

int PIOc_put_vara_text (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const char *op)
 Put muti-dimensional subset of a text variable. More...
 
int PIOc_put_vara_uchar (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const unsigned char *op)
 Put muti-dimensional subset of an unsigned char variable. More...
 
int PIOc_put_vara_schar (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const signed char *op)
 Put muti-dimensional subset of a signed char variable. More...
 
int PIOc_put_vara_ushort (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const unsigned short *op)
 Put muti-dimensional subset of an unsigned 16-bit integer variable. More...
 
int PIOc_put_vara_short (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const short *op)
 Put muti-dimensional subset of a 16-bit integer variable. More...
 
int PIOc_put_vara_uint (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const unsigned int *op)
 Put muti-dimensional subset of an unsigned integer variable. More...
 
int PIOc_put_vara_int (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const int *op)
 Put muti-dimensional subset of an integer variable. More...
 
int PIOc_put_vara_long (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const long *op)
 Put muti-dimensional subset of an integer variable. More...
 
int PIOc_put_vara_float (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const float *op)
 Put muti-dimensional subset of a floating point variable. More...
 
int PIOc_put_vara_double (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const double *op)
 Put muti-dimensional subset of a 64-bit integer variable. More...
 
int PIOc_put_vara_ulonglong (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const unsigned long long *op)
 Put muti-dimensional subset of an unsigned 64-bit integer variable. More...
 
int PIOc_put_vara_longlong (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const long long *op)
 Put muti-dimensional subset of a 64-bit integer variable. More...
 
int PIOc_put_vara (int ncid, int varid, const PIO_Offset *start, const PIO_Offset *count, const void *op)
 Put muti-dimensional subset of a variable of any type. More...
 

Detailed Description

Write arrays of data to a Variable in C, specifying start and count arrays.

Function Documentation

◆ PIOc_put_vara()

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

Put 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.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vara_double()

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

Put 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.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vara_float()

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

Put 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.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vara_int()

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

Put 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.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vara_long()

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

Put 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.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vara_longlong()

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

Put 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.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vara_schar()

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

Put 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.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vara_short()

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

Put 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.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vara_text()

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

Put 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.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vara_uchar()

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

Put 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.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vara_uint()

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

Put 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.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vara_ulonglong()

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

Put 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.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_vara_ushort()

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

Put 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.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett