Liking cljdoc? Tell your friends :D

tech.netcdf


att->cljclj

(att->clj att)
source

attributesclj

(attributes netcdf)
source

dim->cljclj

(dim->clj dim)
source

dimensionsclj

(dimensions netcdf)
source

distance-lerp-lat-lon-queryclj

(distance-lerp-lat-lon-query {:keys [lat lng grid-latlngs grid-data]
                              :as query-data}
                             &
                             [options])

Return weighted average of all values by distance. If options contains :fill-value and one of the values is equal to the entry missing value, fill-value will be used instead. If fill value is not provided, then 0 is used. This will lower your average temp.

tech.netcdf> (distance-lerp-lat-lon-query (first query)) {:lat 21.145 :lng 237.307 :grid-data [{:missing-value ##NaN :fullname "Temperature_surface" :abbreviation "TMP" :level-desc "Ground or water surface" :level-type 1 :value 296.20944}]}

Return weighted average of all values by distance.  If options contains
  :fill-value and one of the values is equal to the entry missing value, fill-value
  will be used instead.  If fill value is not provided, then 0 is used.  This will
  lower your average temp.

  tech.netcdf> (distance-lerp-lat-lon-query (first query))
{:lat 21.145
 :lng 237.307
 :grid-data
 [{:missing-value ##NaN
   :fullname "Temperature_surface"
   :abbreviation "TMP"
   :level-desc "Ground or water surface"
   :level-type 1
   :value 296.20944}]}
sourceraw docstring

exact-match-lat-lon-queryclj

(exact-match-lat-lon-query {:keys [lat lng row col x-idx-range y-idx-range
                                   grid-latlngs grid-data]
                            :as query-data}
                           &
                           [options])

Return the item that was the closest match to the distance query. If fill-value is provided in options then it will be used should the exact match be a missing value. Else the missing value will be returned. tech.netcdf> (exact-match-lat-lon-query (first query)) {:lat 21.145 :lng 237.307 :query-lat 21.14511133620467 :query-lng 237.30713946785917 :grid-data [{:missing-value ##NaN :fullname "Temperature_surface" :abbreviation "TMP" :level-desc "Ground or water surface" :level-type 1 :value 296.2293}]}

Return the item that was the closest match to the distance query.
  If fill-value is provided in options then it will be used should
  the exact match be a missing value.  Else the missing value will
  be returned.
tech.netcdf> (exact-match-lat-lon-query (first query))
{:lat 21.145
 :lng 237.307
 :query-lat 21.14511133620467
 :query-lng 237.30713946785917
 :grid-data
 [{:missing-value ##NaN
   :fullname "Temperature_surface"
   :abbreviation "TMP"
   :level-desc "Ground or water surface"
   :level-type 1
   :value 296.2293}]}
sourceraw docstring

fname->netcdfclj

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

lat-lon-query-gridsetsclj

(lat-lon-query-gridsets gridsets
                        lat-lon-seq
                        &
                        {:keys [query-gridsize] :or {query-gridsize 3}})

Ignoring time, query a dataset by lat-lon. Example output:

({:lat 21.145, :lng 237.307, :grid-data [{:missing-value ##NaN, :fullname "Temperature_surface", :abbreviation "TMP", :level-desc "Ground or water surface", :level-type 1, :values ({:cell-lat 21.14511133620467, :cell-lng 237.30713946785917, :row 0, :col 1, :data 296.22930908203125} ...) ...])

Ignoring time, query a dataset by lat-lon.  Example output:

({:lat 21.145,
:lng 237.307,
:grid-data
[{:missing-value ##NaN,
  :fullname "Temperature_surface",
  :abbreviation "TMP",
  :level-desc "Ground or water surface",
  :level-type 1,
  :values
  ({:cell-lat 21.14511133620467,
    :cell-lng 237.30713946785917,
    :row 0,
    :col 1,
    :data 296.22930908203125}
    ...)
  ...])
sourceraw docstring

named-item->mapclj

(named-item->map named-item-seq)
source

netcdf->gridsetsclj

(netcdf->gridsets netcdf
                  &
                  {:keys [time-axis z-axis fill-value]
                   :or {time-axis 0 z-axis 0}})

Return a sequence of gridsets. A gridset has a coordinate-space and a sequence of grids. Grids have a name, attributes, and a 2d tensor. When creating the gridset, 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. It should be safe to close the netcdf file after this operation.

Return a sequence of gridsets.  A gridset has a coordinate-space and a sequence
of grids.  Grids have a name, attributes, and a 2d tensor.  When creating the gridset,
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.  It should
be safe to close the netcdf file after this operation.
sourceraw docstring

overviewclj

(overview netcdf)
source

test-cdl-fileclj

source

test-nc-fileclj

source

var->cljclj

(var->clj variable)
source

variablesclj

(variables netcdf)
source

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

× close