You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A tensor object would represent multidimensional labelled data and provide coordinate based data access and slicing.
The current scope is rather limited and only want to replicate some xarray functionality.
Proposed features:
convert a fieldlist into a tensor using to_tensor()
the users have to specify the metadata keys to form the tensor on
these will define the coords
at the moment the coords are extended with the following additional coords:
latitude, longitude for regular grids in lat and lon
x, y for other regular grids
values for irregular grids
the tensor can only be formed if all the fields have the same grid and for each metadata combination there is exactly one field in the fieldlist. No holes allowed
no concept of a variable or dimension as in xarray
slicing methods: bracket, sel(), isel()
lat-lon access: latitudes, longitudes()
no computation methods
creating a object with copy(data=my_data) (see the notebook example)
Questions:
allow attaching attributes?
how to use it in an easy way in computations? E.g. computing the average along a given dimension
in a fieldlist the equivalent of coords are called indices
A tensor object would represent multidimensional labelled data and provide coordinate based data access and slicing.
The current scope is rather limited and only want to replicate some xarray functionality.
Proposed features:
to_tensor()
coords
coords
are extended with the following additional coords:latitude
,longitude
for regular grids in lat and lonx
,y
for other regular gridsvalues
for irregular gridssel()
,isel()
latitudes
,longitudes()
copy(data=my_data)
(see the notebook example)Questions:
coords
are calledindices
For more details see the example: https://earthkit-data.readthedocs.io/en/feature-tensor/examples/grib_cube.html
The text was updated successfully, but these errors were encountered: