Liking cljdoc? Tell your friends :D

theophilusx.netcdf.attributes

Functions to manipulate Attribute objects.

Functions to manipulate `Attribute` objects.
raw docstring

-attribute->mapclj

(-attribute->map attr)

Return an attribute as a map with the following keys

KeyDescription
:nameThe attribute name
:typeThe attribute data type as a keyword
:lengthThe attribute length
:valueThe 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                  |
sourceraw docstring

-attribute-lengthclj

(-attribute-length attr)

Return length of the attribute. Value > 1 = array

Return length of the attribute. Value > 1 = array
sourceraw docstring

-attribute-nameclj

(-attribute-name attr)

Return the attribute name

Return the attribute name
sourceraw docstring

-attribute-typeclj

(-attribute-type attr)

Return symbol representing the attribute type

Return symbol representing the attribute type
sourceraw docstring

-attribute-valueclj

(-attribute-value attr)

Return attribute value - string, numeric or array

Return attribute value - string, numeric or array
sourceraw docstring

-attributes->vectorclj

(-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.
sourceraw docstring

attributeclj

(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.
sourceraw docstring

attribute->stringclj

(attribute->string a-map)
(attribute->string a-map indent)

Return a string representation of an attribute.

Return a `string` representation of an attribute.
sourceraw docstring

global-attributeclj

(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.
sourceraw docstring

global-attributesclj

(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`.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close