E3SM-Project / e3sm_diags

E3SM Diagnostics package
https://e3sm-project.github.io/e3sm_diags
BSD 3-Clause "New" or "Revised" License
39 stars 32 forks source link

[Feature]: CDAT Migration: Add support for opening multiple time series datasets #861

Open tomvothecoder opened 2 weeks ago

tomvothecoder commented 2 weeks ago

Is your feature request related to a problem?

The CDAT codebase supports XML files to open up multiple time series datasets. The cdat-migration-fy24 branch uses xc.open_dataset() for single variables that don't need to be derived.

Describe the solution you'd like

Update _get_time_series_dataset_obj() to use xc.open_mfdataset()

https://github.com/E3SM-Project/e3sm_diags/blob/22cd0f569e7df4be147a8fe6fae3e00d5aeb9d8c/e3sm_diags/driver/utils/dataset_xr.py#L1035-L1037

Describe alternatives you've considered

No response

Additional context

No response

forsyth2 commented 2 weeks ago

Zppy specifies input paths as directories of .nc files

Just to elaborate a bit: