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
importxarrayasxrds=xr.open_dataset("something_healpix.nc")
# ds.temperature.dims == ('time', 'cell_id')# how to decode the grid?# if for each latds=ds.dggs.decode()
# select by coordinates# Q: do we use a custom index?ds.sel(lon=45, lat=30, time="2023-10-01", method='nearest')
# or an accessor?ds.dggs.sel(lon=45, lat=30, time="2023-10-01", method='nearest')
# coarsen (to absolute zoom level)ds.dggs.coarsen(level=3).mean()
# select by bounding boxds.dggs.bbox((ll_lon, ll_lat, ur_lon, ur_lat))
ds.dggs.query(shapely.bbox(ll_lon, ll_lat, ur_lon, ur_lat))
ds.dggs.query(shapely.Polygon([[lon, lat], ...]))
# visualization?ds.isel(time=0).temperature.dggs.plot()
Additional discussion on Thursday
(please extend / correct, my memory of our lively discussion is already somewhat hazy)
to progress, we need to collect the features we need to be able to work with DGGS using xarray (→ roadmap / design document)
conversion / reconstruction of coordinates from / to cell ids
selection of cells
encoding / decoding for storage
interpolation
plotting
multi-resolution datasets
very useful for merging datasets with the same dggs but different resolutions
grid itself still has to be unchanging over time
STAC / catalogs?
use bounding box / envelope?
main area of work so far: selection of data
not all of this has to live in xdggs, for example conversion of existing dataset with lat / lon gridding to DGGS:
interpolation / resampling to a DGGS of roughly the same resolution
implementation can live in pyresample / xesmf / any other resampling / regridding library
not all of the code should be written in python, some of this should be implemented in a lower-level, high-performance language
grant proposal together with openeo: yes, but we will start working on this before the grant starts
meeting with the OGC working group on DGGS for more feedback / exchange (Peter will help set that up)
The text was updated successfully, but these errors were encountered:
Original discussions at BiDS
Examples with some basic DGGS lib data manipulation, coordinate conversions, selecting etc: https://github.com/allixender/dggs_t1
Xarray
Time dimension in xarray is well handled.
Can we have a data cube which is not xyz? e.g. kee this time dimension.
quantization of time
How do we discretize. MTSIC (time)
Get sample dataset in DGGS
Let's forget about multi-resolution and we focus on mono-resolution.
Let's try to solve it for one resolution.
What are our requirements
Scope for the sprint
Original Pangeo DGGS code sprint repo:
https://github.com/pangeo-data/bids2023_codesprint
Benoit nicely explains stuff:
pangeo-data/bids2023_codesprint#3
We want to work on the cell id.
We can have orthogonal dimensions: time and z.
Repositories of examples:
Tina/Ifremer, Justus/Ifremer Healpix/healpy with notebook (regridding):
Alex, various basic DGGS operations with H3, rHealpix, DGGRID
Ryan: Added an example creating H3:
Base operations:
Regridding
Xarray DGGS extension
repository (code + examples): https://github.com/benbovy/xdggs
Example Code
Additional discussion on Thursday
(please extend / correct, my memory of our lively discussion is already somewhat hazy)
The text was updated successfully, but these errors were encountered: