issue_comments: 721466404
This data as json
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/pydata/xarray/issues/4496#issuecomment-721466404 | https://api.github.com/repos/pydata/xarray/issues/4496 | 721466404 | MDEyOklzc3VlQ29tbWVudDcyMTQ2NjQwNA== | 23487320 | 2020-11-04T01:47:30Z | 2020-11-04T01:49:39Z | CONTRIBUTOR | Just a general comment on the For those who are confused, this is the current state of | :arrow_down: engine\chunk :arrow_right: | None (default) | 'auto' | {} | -1 | |--------------------------------------------------------| -------------------|-------|----|-------| | None (i.e. default for NetCDF) | np.ndarray | dask.Array (produces origintal chunks as in NetCDF obj??) | dask.Array (rechunked into 1 chunk) | dask.Array (rechunked into 1 chunk) | | zarr | np.ndarray | dask.Array (original chunks as in Zarr obj) | dask.Array (original chunks as in Zarr obj) | dask.Array (rechunked into 1 chunk + UserWarning) | Sample code to test (run in jupyter notebook to see the dask chunk visual):
```python
import xarray as xr
import fsspec
# Opening NetCDF
dataset: xr.Dataset = xr.open_dataset(
"http://thredds.ucar.edu/thredds/dodsC/grib/NCEP/HRRR/CONUS_2p5km/Best", chunks={}
)
dataset.Temperature_height_above_ground.data
# Opening Zarr
zstore = fsspec.get_mapper(
url="gs://cmip6/CMIP/NCAR/CESM2/historical/r9i1p1f1/Amon/tas/gn/"
)
dataset: xr.Dataset = xr.open_dataset(
filename_or_obj=zstore,
engine="zarr",
chunks={},
backend_kwargs=dict(consolidated=True),
)
dataset.tas.data
```
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
717410970 |