SimpleΒΆ
from cchdo.hydro import read_exchange
# The next line is only if you want to play with "all" the exchange bottle data and catch errors from it
# from cchdo.hydro.tutorial import CCHDOBottleData
# from cchdo.hydro.exchange.exceptions import ExchangeError
import xarray as xr
# This loads a ton of data (300MB) can take a while
# bottle_data = CCHDOBottleData()
%%time
ex = read_exchange("https://cchdo.ucsd.edu/data/45/pr16_2004b_hy1.csv")
# Big Wall time is cause this is a network request
CPU times: user 61.1 ms, sys: 5.08 ms, total: 66.2 ms
Wall time: 262 ms
ex.to_netcdf("test.nc")