rom-py / rompy

Relocatable Ocean Modelling in PYthon (rompy) combines templated cookie-cutter model configuration with various xarray extensions to assist in the setup and evaluation of coastal ocean model
https://rom-py.github.io/rompy/
BSD 3-Clause "New" or "Revised" License
2 stars 9 forks source link

Intake source #70

Closed rafa-guedes closed 5 months ago

rafa-guedes commented 5 months ago

Support yaml representation of an intake catalog in the SourceIntake class.

Relevant discussion:

https://github.com/rom-py/rompy/issues/43

Example usage:

source = intake.open_netcdf("/source/rompy/tests/data/era5-20230101.nc")
source.name = "era5"
rompy_source = SourceIntake(dataset_id="era5", catalog_yaml=source.yaml())
pbranson commented 5 months ago

Thanks @rafa-guedes LGTM. Appreciate the PR