Parse a metadata attribute destined for a NetCDF file

parse_attr(attr)

Arguments

attr

text representation of attribute in the following format:

var_name:attr_name=attr_val

If no var_name is specified, the attribute will be interpreted to be a global attribute.

If no attr_val is specified, it will be set to NULL in the returned list.

Value

a list representation of attribute, with items var, key, and val corresponding to var_name, attr_name, and attr_val