home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 364802374

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/pull/1528#issuecomment-364802374 https://api.github.com/repos/pydata/xarray/issues/1528 364802374 MDEyOklzc3VlQ29tbWVudDM2NDgwMjM3NA== 2443309 2018-02-11T23:54:01Z 2018-02-11T23:54:01Z MEMBER

@martindurant - If I understand your question correctly, I think you should be able to follow a pretty standard xarray workflow:

```Python ds = xr.Dataset() ds['your_varname'] = xr.DataArray(some_dask_array, dims=['dimname0', 'dimname1', ...], coords=dict_of_preknown_coords)

repeat for each variable you want in your dataset

ds.to_zarr(some_zarr_store)

then to open

ds2 = xr.open_zarr(some_zarr_store) ```

Two things to note:

1) if you are looking for decent performance when writing to a remote store, make sure you're working off xarray@master as #1800 fixed a number of choke points in the to_zarr implementation 2) if you are pushing to GCS, some_zarr_store can be a GCSMap.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  253136694
Powered by Datasette · Queries took 0.542ms · About: xarray-datasette