import intake
import hvplot.pandas
import hvplot.xarray
import cook_inlet_catalogs as cic
import holoviews as hv
Mooring (CIRCAC): Central Cook Inlet MooringΒΆ
Central Cook Inlet Mooring from: Seasonality of Boundary Conditions for Cook Inlet, Alaska
CIRCAC is the Cook Inlet Regional Citizens Advisory Council. It was funded by MMS (pre-BOEM), OCS Study MMS 2009-041 funneled through the Coastal Marine Institute (University of Alaska Fairbanks).
This mooring was damaged so it was removed.
Part of the project:
Seasonality of Boundary Conditions for Cook Inlet, Alaska Steve Okkonen Principal Investigator Co-principal Investigators: Scott Pegau Susan Saupe Final Report OCS Study MMS 2009-041 August 2009 Report: https://researchworkspace.com/files/39885971/2009_041.pdf

cat = intake.open_catalog(cic.utils.cat_path("moorings_circac"))
Plot all datasets in catalogΒΆ
dd, ddlabels = cic.utils.combine_datasets_for_map(cat)
dd.hvplot(**cat.metadata["map"]) * ddlabels.hvplot(**cat.metadata["maplabels"])
List available datasets in the catalogΒΆ
dataset_ids = list(cat)
dataset_ids
['moorings_circac']
Select one dataset to investigateΒΆ
try:
dataset_id = dataset_ids[2]
except:
dataset_id = dataset_ids[0]
print(dataset_id)
dd = cat[dataset_id].read()
dd
moorings_circac
/home/docs/checkouts/readthedocs.org/user_builds/cook-inlet-catalogs/conda/latest/lib/python3.11/site-packages/intake/readers/readers.py:176: UserWarning: Could not infer format, so each element will be parsed individually, falling back to `dateutil`. To ensure parsing is consistent and as-expected, please specify a format.
return self._func(**kw)
| Date UTC | Depth | Temperature | Salinity | longitude_deg | latitude_deg | |
|---|---|---|---|---|---|---|
| 0 | 2006-08-11 23:32:00 | 0.667 | 13.3616 | 21.4861 | -151.505 | 60.761667 |
| 1 | 2006-08-11 23:47:00 | 1.109 | 13.2864 | 21.8292 | -151.505 | 60.761667 |
| 2 | 2006-08-12 00:02:00 | 1.526 | 13.1540 | 22.2920 | -151.505 | 60.761667 |
| 3 | 2006-08-12 00:17:00 | 1.908 | 13.0492 | 22.6670 | -151.505 | 60.761667 |
| 4 | 2006-08-12 00:32:00 | 2.296 | 12.9483 | 22.9266 | -151.505 | 60.761667 |
| ... | ... | ... | ... | ... | ... | ... |
| 1264 | 2006-08-28 17:32:00 | 5.134 | 12.7017 | 22.8419 | -151.505 | 60.761667 |
| 1265 | 2006-08-28 17:47:00 | 4.925 | 12.7022 | 22.8603 | -151.505 | 60.761667 |
| 1266 | 2006-08-28 18:02:00 | 4.566 | 12.7039 | 22.8161 | -151.505 | 60.761667 |
| 1267 | 2006-08-28 18:17:00 | 4.431 | 12.7378 | 22.3779 | -151.505 | 60.761667 |
| 1268 | 2006-08-28 18:32:00 | 1.758 | 12.8135 | 22.1372 | -151.505 | 60.761667 |
1269 rows Γ 6 columns
Plot one datasetΒΆ
keys = list(cat[dataset_id].metadata["plots"].keys())
print(keys)
plots = []
for key in keys:
plot_kwargs = cat[dataset_id].metadata["plots"][key]
if "clim" in plot_kwargs and isinstance(plot_kwargs["clim"], list):
plot_kwargs["clim"] = tuple(plot_kwargs["clim"])
if "dynamic" in plot_kwargs:
plot_kwargs["dynamic"] = False
plots.append(cat[dataset_id].ToHvPlot(**plot_kwargs).read())
hv.Layout(plots).cols(1)
['data']
/home/docs/checkouts/readthedocs.org/user_builds/cook-inlet-catalogs/conda/latest/lib/python3.11/site-packages/intake/readers/readers.py:176: UserWarning: Could not infer format, so each element will be parsed individually, falling back to `dateutil`. To ensure parsing is consistent and as-expected, please specify a format.
return self._func(**kw)