Put character attribute to netCDF variable. More...
Go to the source code of this file.
Functions/Subroutines | |
| subroutine | gdncvarputattrchar (var, name, val, xtype, err) |
Put character attribute to netCDF variable.
These subroutines and functions are provided as gtdata_netcdf_generic#Put_Attr through gtdata_netcdf_generic.
Definition in file gdncvarputattrchar.f90.
| subroutine gdncvarputattrchar | ( | type(gd_nc_variable), intent(in) | var, |
| character(len = *), intent(in) | name, | ||
| character(len = *), intent(in) | val, | ||
| character(len = *), intent(in), optional | xtype, | ||
| logical, intent(out), optional | err ) |
Set character attribute value
Sets a character attribute on a variable. If xtype is specified, the value is converted to that numeric type before storage. If name starts with '+', it is treated as a global attribute. Empty value deletes the attribute.
| [in] | var | Variable handle |
| [in] | name | Attribute name |
| [in] | val | Character value to set |
| [in] | xtype | Target type for conversion (optional) |
| [out] | err | Error flag (optional) |
Definition at line 48 of file gdncvarputattrchar.f90.
References dc_url::gt_plus, dc_error::storeerror(), and gtdata_netcdf_internal::vtable_lookup().