Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add setup for EUREC4A-MIP #135

Merged
merged 12 commits into from
Dec 15, 2023
Merged

Conversation

observingClouds
Copy link
Collaborator

@observingClouds observingClouds commented Feb 21, 2023

This PR eventually allows to load the boundary conditions for the EUREC4A-MIP experiments.

To load the hourly netCDF files into one dataset, the following steps can be done:

import xarray as xr
from intake import open_catalog
from pandas import date_range

dates_of_interest = date_range('2020-01-01','2020-02-01', freq='1H')

cat = open_catalog("catalog.yml")
bc_cat = cat.simulations.EUREC4A_MIP.control.setup.boundary_conditions  # control
#bc_cat = cat.simulations.EUREC4A_MIP.warming.setup.boundary_conditions  # warming experiment
ds = xr.concat([bc_cat(date=d).to_dask() for d in dates_of_interest], dim='time')
ds.to_netcdf("EUREC4A-MIP_boundaryConditions.nc")

This code (or something equivalent) should probably make it into the howto.eurec4a book.

To-Do:

  • save all files in one folder without monthly subfolders to easy download request
  • adapt download path in the catalog (currently only works for January datasets)

@observingClouds observingClouds force-pushed the eurec4a-mip-bc branch 2 times, most recently from 2453de4 to ef8cd22 Compare February 23, 2023 22:39
@observingClouds observingClouds marked this pull request as ready for review November 14, 2023 23:04
Simulations/EUREC4A-MIP/control/setup/bc.yaml Outdated Show resolved Hide resolved
Simulations/EUREC4A-MIP/control/setup/bc.yaml Outdated Show resolved Hide resolved
requirements.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@d70-t d70-t left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks awesome 💯

@d70-t d70-t merged commit ba7ccf4 into eurec4a:master Dec 15, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants