(fname->grids fname
&
{:keys [time-axis z-axis fill-value datatype]
:or {time-axis 0 z-axis 0 datatype :float32}})
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]
:as grid}
lat-lon-seq
&
[options])
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 - tensor<float32>[n-elems 2] - lat-lng tensor of cell centers. :values - float32[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 - tensor<float32>[n-elems 2] - lat-lng tensor of cell centers. :values - float32[n-elems] }
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close