PIO  2.5.4
Functions
Learn About an Attribute

Learn length, type, and name of an attribute in C. More...

Functions

int PIOc_inq_att_eh (int ncid, int varid, const char *name, int eh, nc_type *xtypep, PIO_Offset *lenp)
 The PIO-C interface for the NetCDF function nc_inq_att. More...
 
int PIOc_inq_att (int ncid, int varid, const char *name, nc_type *xtypep, PIO_Offset *lenp)
 The PIO-C interface for the NetCDF function nc_inq_att. More...
 

Detailed Description

Learn length, type, and name of an attribute in C.

Function Documentation

◆ PIOc_inq_att()

int PIOc_inq_att ( int  ncid,
int  varid,
const char *  name,
nc_type *  xtypep,
PIO_Offset lenp 
)

The PIO-C interface for the NetCDF function nc_inq_att.

This routine is called collectively by all tasks in the communicator ios.union_comm. For more information on the underlying NetCDF commmand please read about this function in the NetCDF documentation at: http://www.unidata.ucar.edu/software/netcdf/docs/group__attributes.html

Parameters
ncidthe ncid of the open file, obtained from PIOc_openfile() or PIOc_createfile().
varidthe variable ID or NC_GLOBAL.
namename of the attribute.
xtypepa pointer that will get the type of the attribute.
lenpa pointer that will get the number of values
Returns
PIO_NOERR for success, error code otherwise.
Author
Jim Edwards, Ed Hartnett

◆ PIOc_inq_att_eh()

int PIOc_inq_att_eh ( int  ncid,
int  varid,
const char *  name,
int  eh,
nc_type *  xtypep,
PIO_Offset lenp 
)

The PIO-C interface for the NetCDF function nc_inq_att.

This routine is called collectively by all tasks in the communicator ios.union_comm. For more information on the underlying NetCDF commmand please read about this function in the NetCDF documentation at: http://www.unidata.ucar.edu/software/netcdf/docs/group__attributes.html

Parameters
ncidthe ncid of the open file, obtained from PIOc_openfile() or PIOc_createfile().
varidthe variable ID or NC_GLOBAL.
namename of the attribute.
ehnon-zero to handle errors in the function. This will cause program to halt if PIO error handler is set to INTERNAL.
xtypepa pointer that will get the type of the attribute.
lenpa pointer that will get the number of values
Returns
PIO_NOERR for success, error code otherwise.
Author
Jim Edwards, Ed Hartnett