theophilusx.netcdf.attributes
Functions to manipulate Attribute
objects.
-attribute->map
(-attribute->map attr)
Return an attribute as a map with the following keys
Key | Description |
---|---|
:name |
The attribute name |
:type |
The attribute data type as a keyword |
:length |
The attribute length |
:value |
The attribute value |
-attribute-length
(-attribute-length attr)
Return length of the attribute. Value > 1 = array
-attribute-name
(-attribute-name attr)
Return the attribute name
-attribute-type
(-attribute-type attr)
Return symbol representing the attribute type
-attribute-value
(-attribute-value attr)
Return attribute value - string, numeric or array
-attributes->vector
(-attributes->vector attr-list)
Returns a vector
of attribute maps. The attr-list
argument is a collection of Java Attribute
objects.
attribute
(attribute nc attr-name)
Find an attribute given the full attribute name. nc
is a ucar.nc2.NetcdfFile
object. attr-name
is a full attribute name. The attribute may be nested in multiple groups and/or structures. A .
is used to separate structures, a /
is prefixed to grups and an @
is prefixed to attributes. e.g. /group/variable@attribute /group/variable/structure.member@attribute Returns ucar.mc2.Attribute
if attribute is found, nil
otherwise.
attribute->string
(attribute->string a-map)
(attribute->string a-map indent)
Return a string
representation of an attribute.
global-attribute
(global-attribute nc attr-name)
Return a global attribute as an attribute map. The nc
argument is a ucar.nc2.NetcdfFile
object and attr-name
is a case sensitive attribute name.
global-attributes
(global-attributes nc)
Return a vector
of global attributes as attribute maps. nc
is a ucar.nc2.NetcdfFile
object returns from call to open
, open-file-in-memory
, with-netcdf
or with-memory-netecdf
.