Liking cljdoc? Tell your friends :D

theophilusx.netcdf.ranges

Manipulate ucar.ma2.Range objects.

Manipulate `ucar.ma2.Range` objects.
raw docstring

-range->mapclj

(-range->map range)

Converts a Netcdf Range object into a map with the following keys

KeyDescription
:nameFor named ranges, the name of the range. Nil for unnamed
ranges.
:firstIndex of first element in range.
:lastIndex of last element in the range.
:lengthTotal length of the range.
:strideArray stride (step) size
:objContains the original Java Range object
Converts a Netcdf Range object into a map with the following keys

| Key       | Description                                              |
|-----------|----------------------------------------------------------|
| `:name`   | For named ranges, the name of the range. Nil for unnamed |
|           | ranges.                                                  |
| `:first`  | Index of first element in range.                         |
| `:last`   | Index of last element in the range.                      |
| `:length` | Total length of the range.                               |
| `:stride` | Array stride (step) size                                 |
| `:obj`    | Contains the original Java `Range` object                |
sourceraw docstring

-range-firstclj

(-range-first range)

Return index of first element in the range.

Return index of first element in the range.
sourceraw docstring

-range-lastclj

(-range-last range)

Returns index of last element in the range.

Returns index of last element in the range.
sourceraw docstring

-range-lengthclj

(-range-length range)

Returns length of the range.

Returns length of the range.
sourceraw docstring

-range-nameclj

(-range-name range)

Returns the name of a range for named ranges. Un-named ranges return nil.

Returns the name of a range for named ranges. Un-named ranges return nil.
sourceraw docstring

-range-strideclj

(-range-stride range)

Returns stride (step size) of the range.

Returns stride (step size) of the range.
sourceraw docstring

-ranges->vectorclj

(-ranges->vector range-list)

Takes a list of Range objects and converts them to a vector of range maps

Takes a list of `Range` objects and converts them to a vector of range
maps
sourceraw docstring

make-named-rangeclj

(make-named-range name start end)
(make-named-range name start end stride)

Create a named Range object. Returns a range map with the Range object in the :obj key.

Create a named `Range` object. Returns a range `map` with the `Range` object
in the `:obj` key.
sourceraw docstring

make-rangeclj

(make-range len)
(make-range start end)
(make-range start end stride)

Creates a new Range object. Returns a range map with the Range object in the :obj key of the map.

Creates a new `Range` object. Returns a range `map` with the `Range` object
in the `:obj` key of the `map`.
sourceraw docstring

range->stringclj

(range->string r-map)
(range->string r-map indent)

Converts a range map to a string suitable for display.

Converts a range map to a string suitable for display.
sourceraw docstring

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

× close