home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 832712426

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/3653#issuecomment-832712426 https://api.github.com/repos/pydata/xarray/issues/3653 832712426 MDEyOklzc3VlQ29tbWVudDgzMjcxMjQyNg== 1197350 2021-05-05T14:01:25Z 2021-05-05T14:01:33Z MEMBER

Update: there is now a way to read a remote netCDF file from an HTTP server directly using the netcdf-python library. The trick is to append #mode=bytes to the end of the url.

```python import xarray as xr import netCDF4 # I'm using version 1.5.6

url = "https://www.ldeo.columbia.edu/~rpa/NOAA_NCDC_ERSST_v3b_SST.nc#mode=bytes"

raw netcdf4 Dataset

ds = netCDF4.Dataset(url)

xarray Dataset

ds = xr.open_dataset(url) ```

{
    "total_count": 12,
    "+1": 5,
    "-1": 0,
    "laugh": 0,
    "hooray": 1,
    "confused": 0,
    "heart": 6,
    "rocket": 0,
    "eyes": 0
}
  543197350
Powered by Datasette · Queries took 1.299ms · About: xarray-datasette