.. highlightlang:: us .. index:: nc_attinq_len .. _nc_attinq_len: nc_attinq_len ============= .. us.tag nc_attinq_len ENGLISH NC_Att :ref:`nc_attinq_len` returns the number of values stored in the attribute. If the attribute is of type ``NC_CHAR``, the function returns the string length. .. function:: len = nc_attinq_len(ncid, varid, ssName) .. us.return **Return Value** *len* is the number of values stored in the attribute. .. us.params **Parameters** .. uparam:: ncid Identifies the netCDF file. .. uparam:: varid *varid* is the ID of the variable or -1 for a global attribute .. uparam:: ssName *ssName* is the the name of the attribute. .. seealso:: :ref:`overview-netcdf-files`, :ref:`nc_create` :sub:`id-173685`