Functions to manipulate Attribute objects.
Functions to manipulate `Attribute` objects.
(-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 |
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 attr)Return length of the attribute. Value > 1 = array
Return length of the attribute. Value > 1 = array
(-attribute-name attr)Return the attribute name
Return the attribute name
(-attribute-type attr)Return symbol representing the attribute type
Return symbol representing the attribute type
(-attribute-value attr)Return attribute value - string, numeric or array
Return attribute value - string, numeric or array
(-attributes->vector attr-list)Returns a vector of attribute maps. The attr-list argument is a
collection of Java Attribute objects.
Returns a `vector` of attribute maps. The `attr-list` argument is a collection of Java `Attribute` objects.
(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.
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 a-map)(attribute->string a-map indent)Return a string representation of an attribute.
Return a `string` representation of an 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.
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 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.
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`.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |