issue_comments: 357125148
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/1075#issuecomment-357125148 | https://api.github.com/repos/pydata/xarray/issues/1075 | 357125148 | MDEyOklzc3VlQ29tbWVudDM1NzEyNTE0OA== | 3698640 | 2018-01-12T02:27:27Z | 2018-01-12T02:27:27Z | CONTRIBUTOR | yes! Thanks @jhamman and @shoyer. I hadn't tried it yet, but just did. worked great! ```python In [1]: import xarray as xr ...: import requests ...: import netCDF4 ...: ...: %matplotlib inline In [2]: res = requests.get( ...: 'http://nasanex.s3.amazonaws.com/NEX-GDDP/BCSD/rcp45/day/atmos/tasmin/' + ...: 'r1i1p1/v1.0/tasmin_day_BCSD_rcp45_r1i1p1_CESM1-BGC_2073.nc') In [3]: res.status_code Out [3]: 200 In [4]: res.headers['content-type'] Out [4]: 'application/x-netcdf' In [5]: nc4_ds = netCDF4.Dataset('tasmin_day_BCSD_rcp45_r1i1p1_CESM1-BGC_2073', memory=res.content) In [6]: store = xr.backends.NetCDF4DataStore(nc4_ds) In [7]: ds = xr.open_dataset(store) In [8]: ds.tasmin.isel(time=0).plot()
/global/home/users/mdelgado/git/public/xarray/xarray/plot/utils.py:51: FutureWarning: 'pandas.tseries.converter.register' has been moved and renamed to 'pandas.plotting.register_matplotlib_converters'.
converter.register()
Out [8]: <matplotlib.collections.QuadMesh at 0x2aede3c922b0>
|
{ "total_count": 4, "+1": 4, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
186895655 |