(fname->grids
fname
&
{:keys [time-axis z-axis fill-value datatype container-type]
:or {time-axis 0 z-axis 0 datatype :float32 container-type :java-array}})Return a sequence of grids. A grid is a coordinate space and cube of data. Grids have a name, attributes, and a 2d tensor. When creating the grids, you can choose the time-axis and the z-axis to choose. -1 means choose the entire dimension; defaults to 0 meaning all of the returned grids is 2 dimension. Code is written with the assumtion that a non-negative integer will be chosen for the time-axis and the z-axis as this will increase the dimensionality of the data tensor. Returns a sequence of grids where a grid is: {:name :attributes map of name->attribute :coordinate-system GridCoordSystem :data tensor :data-reader FloatTensorReader (allows arbitrary indexing and ad-hoc algorithms) }
Return a sequence of grids. A grid is a coordinate space and cube of data.
Grids have a name, attributes, and a 2d tensor. When creating the grids,
you can choose the time-axis and the z-axis to choose. -1 means choose the entire
dimension; defaults to 0 meaning all of the returned grids is 2 dimension. Code
is written with the assumtion that a non-negative integer will be chosen for
the time-axis and the z-axis as this will increase the dimensionality of the data
tensor. Returns a sequence of grids where a grid is:
{:name
:attributes map of name->attribute
:coordinate-system GridCoordSystem
:data tensor
:data-reader FloatTensorReader (allows arbitrary indexing and ad-hoc algorithms)
}
(fname->netcdf fname)Open a netcdf file. The return value is tracked via 'tech.resource/track. If the user wishes to release the memory early they can call .close on the object.
Open a netcdf file. The return value is tracked via 'tech.resource/track. If the user wishes to release the memory early they can call .close on the object.
(lat-lng-query-grid-exact {:keys [coordinate-system name attributes
data-reader]}
lat-lon-seq)Ignoring time, query a grid pointwise by lat-lon. Returns only closest match. Takes a grid and a sequence of [lat lng] tuples. Returns { :missing-value ##NaN, :fullname "Temperature_surface", :abbreviation "TMP", :level-desc "Ground or water surface", :level-type 1, :cell-lat-lngs - reader of [lat lng] tuples of the center points of the grid cells :values - (float-array n-elems) }
Ignoring time, query a grid pointwise by lat-lon. Returns only closest match.
Takes a grid and a sequence of [lat lng] tuples.
Returns
{
:missing-value ##NaN,
:fullname "Temperature_surface",
:abbreviation "TMP",
:level-desc "Ground or water surface",
:level-type 1,
:cell-lat-lngs - reader of [lat lng] tuples of the center points of the grid cells
:values - (float-array n-elems)
}(serial-lat-lng->proj projection lat-lng-seq)Serially project a sequence of lat-lng tuples to a projection. Returns a tuple if [^floats x-coords ^floats y-coords]
Serially project a sequence of lat-lng tuples to a projection. Returns a tuple if [^floats x-coords ^floats y-coords]
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 |