PIO  2.5.4
Functions
Write One Value

Functions

int PIOc_put_var1_text (int ncid, int varid, const PIO_Offset *index, const char *op)
 Put one value from an text variable. More...
 
int PIOc_put_var1_uchar (int ncid, int varid, const PIO_Offset *index, const unsigned char *op)
 Put one value from an text variable. More...
 
int PIOc_put_var1_schar (int ncid, int varid, const PIO_Offset *index, const signed char *op)
 Put one value from an signed char variable. More...
 
int PIOc_put_var1_ushort (int ncid, int varid, const PIO_Offset *index, const unsigned short *op)
 Put one value from an unsigned 16-bit integer variable. More...
 
int PIOc_put_var1_short (int ncid, int varid, const PIO_Offset *index, const short *op)
 Put one value from a 16-bit integer variable. More...
 
int PIOc_put_var1_uint (int ncid, int varid, const PIO_Offset *index, const unsigned int *op)
 Put one value from an unsigned integer variable. More...
 
int PIOc_put_var1_int (int ncid, int varid, const PIO_Offset *index, const int *op)
 Put one value from an integer variable. More...
 
int PIOc_put_var1_float (int ncid, int varid, const PIO_Offset *index, const float *op)
 Put one value from an floating point variable. More...
 
int PIOc_put_var1_long (int ncid, int varid, const PIO_Offset *index, const long *op)
 Put one value from an integer variable. More...
 
int PIOc_put_var1_double (int ncid, int varid, const PIO_Offset *index, const double *op)
 Put one value from an 64-bit floating point variable. More...
 
int PIOc_put_var1_ulonglong (int ncid, int varid, const PIO_Offset *index, const unsigned long long *op)
 Put one value from an unsigned 64-bit integer variable. More...
 
int PIOc_put_var1_longlong (int ncid, int varid, const PIO_Offset *index, const long long *op)
 Put one value from a 64-bit integer variable. More...
 
int PIOc_put_var1 (int ncid, int varid, const PIO_Offset *index, const void *op)
 Put one value from a variable of any type. More...
 

Detailed Description

Write one value to a variable in C.

Function Documentation

◆ PIOc_put_var1()

int PIOc_put_var1 ( int  ncid,
int  varid,
const PIO_Offset index,
const void *  op 
)

Put one value from 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
indexan array of indicies where the data value will be written (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_var1_double()

int PIOc_put_var1_double ( int  ncid,
int  varid,
const PIO_Offset index,
const double *  op 
)

Put one value from an 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
indexan array of indicies where the data value will be written (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_var1_float()

int PIOc_put_var1_float ( int  ncid,
int  varid,
const PIO_Offset index,
const float *  op 
)

Put one value from an 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
indexan array of indicies where the data value will be written (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_var1_int()

int PIOc_put_var1_int ( int  ncid,
int  varid,
const PIO_Offset index,
const int *  op 
)

Put one value from 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
indexan array of indicies where the data value will be written (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_var1_long()

int PIOc_put_var1_long ( int  ncid,
int  varid,
const PIO_Offset index,
const long *  op 
)

Put one value from 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
indexan array of indicies where the data value will be written (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_var1_longlong()

int PIOc_put_var1_longlong ( int  ncid,
int  varid,
const PIO_Offset index,
const long long *  op 
)

Put one value from 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
indexan array of indicies where the data value will be written (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_var1_schar()

int PIOc_put_var1_schar ( int  ncid,
int  varid,
const PIO_Offset index,
const signed char *  op 
)

Put one value from an 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
indexan array of indicies where the data value will be written (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_var1_short()

int PIOc_put_var1_short ( int  ncid,
int  varid,
const PIO_Offset index,
const short *  op 
)

Put one value from 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
indexan array of indicies where the data value will be written (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_var1_text()

int PIOc_put_var1_text ( int  ncid,
int  varid,
const PIO_Offset index,
const char *  op 
)

Put one value from an 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
indexan array of indicies where the data value will be written (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_var1_uchar()

int PIOc_put_var1_uchar ( int  ncid,
int  varid,
const PIO_Offset index,
const unsigned char *  op 
)

Put one value from an 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
indexan array of indicies where the data value will be written (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_var1_uint()

int PIOc_put_var1_uint ( int  ncid,
int  varid,
const PIO_Offset index,
const unsigned int *  op 
)

Put one value from 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
indexan array of indicies where the data value will be written (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_var1_ulonglong()

int PIOc_put_var1_ulonglong ( int  ncid,
int  varid,
const PIO_Offset index,
const unsigned long long *  op 
)

Put one value from 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
indexan array of indicies where the data value will be written (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett

◆ PIOc_put_var1_ushort()

int PIOc_put_var1_ushort ( int  ncid,
int  varid,
const PIO_Offset index,
const unsigned short *  op 
)

Put one value from 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
indexan array of indicies where the data value will be written (must have same number of entries as variable has dimensions). If NULL, indices of 0 will be used.
oppointer to the data to be written.
Returns
PIO_NOERR on success, error code otherwise.
Author
Ed Hartnett