#!/usr/bin/env python # coding: utf-8 # # test opening HSDS "file" with xarray # In[1]: get_ipython().run_line_magic('matplotlib', 'inline') import xarray as xr # In[2]: endpoint = 'http://149.165.156.174:5101' xsede_hsds_file = '/home/john/tmp2m_2months.nc' url = endpoint + xsede_hsds_file print(url) # In[3]: ds = xr.open_dataset(url, engine='h5netcdf') # In[4]: ds # In[5]: dsloc = ds.sel(longitude=-70.6+360, latitude=41.55, method='nearest') dsloc['TMP_2maboveground'].plot(); # In[ ]: