home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 1400545067

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/4122#issuecomment-1400545067 https://api.github.com/repos/pydata/xarray/issues/4122 1400545067 IC_kwDOAMm_X85Tep8r 6042212 2023-01-23T15:31:16Z 2023-01-23T15:31:16Z CONTRIBUTOR

I can confirm that something like the following does work, basically automating the "write local and then push" workflow: import xarray as xr import fsspec ds = xr.open_dataset('http://geoport.usgs.esipfed.org/thredds/dodsC' '/silt/usgs/Projects/stellwagen/CF-1.6/BUZZ_BAY/2651-A.cdf') outfile = fsspec.open('simplecache::gcs://mdtemp/foo2.nc', mode='wb') with outfile as f: ds.to_netcdf(f)

Unfortunately, directly writing to the remote file without a local cached file is not supported, because HDF5 does not write in a linear way.

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