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

Generalize cmip6 regridding flow #51

Merged
merged 23 commits into from
Feb 19, 2025
Merged

Generalize cmip6 regridding flow #51

merged 23 commits into from
Feb 19, 2025

Conversation

kyleredilla
Copy link
Contributor

This PR generalizes the CMIP6 regridding flow so that it may be called in subsequent flows.

There are two different flows now that will call the cmip6 regridding flow as a subflow. One is for regridding the CMIP6 data to the "common grid" / nominal 100km grid, as the regridding pipeline was initially developed for. The second is for regridding the CMIP6 data to a 4km grid in EPSG 3338 derived from the WRF ERA5 data we have been working with. This will allow us to call the newer flow as part of a future downscaling flow.

This repo now includes a pyproject.toml file which allows us to install the repo and make relative imports within scripts from anywhere within the project. This allows us to recycle some utilities that are common to our growing archive of prefect flows! See the updated README for the install instructions.

Testing for the corresponding cmip6-utils PR is sufficient for this PR. Use the /beegfs/CMIP6/kmredilla/downscaling/era5_target_slice.nc file as the target grid file for the 4km 3338 flow.

kyleredilla and others added 21 commits December 9, 2024 17:21
…C NetCDF files going forward (#50)

* Updates process for creating new HSIA GeoTIFFs from NetCDF files from NSIDC.

* Updates location of GeoTIFF creation script.

* Removes unused env path variable.

* Updates code for when requesting a single year.

* Updates location of untar of old GeoTIFFs.

* Changes directory where data is copied.

* Adds error handling for when input data doesn't exist.

* Clearer error message.

* Removes unused functions from imports.

* Adds special values for values beyond 250.

* Updates GeoTIFF generation to use the correct coordinates and resolution.

* Updates default parameter for generating GeoTIFFs.

* Updates method for generating the EPSG:3572 GeoTIFFs.

* Updates the tar file process for generating the production tar ball of data.

* Adds README to directory to explain how to run this in the future.

* Updates sea ice concentration generation script to accept a variable for conda environment name.

* Fixes location for GeoTIFFs directory before generating new GeoTIFFs.
* add a config file for V1 variables

* drop MPI LR model no longer in ensemble

* rename file

* split out V1 into two tiers and update readme

* fix missing qc_notebook arg
@Joshdpaul
Copy link
Contributor

See my comments here

Copy link
Contributor

@cstephen cstephen left a comment

Choose a reason for hiding this comment

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

This looks good & mergeable to me. It's awesome how much control we have over producing different types of CMIP6 outputs through Prefect, now! See ua-snap/cmip6-utils#68 for more info about the runs I tried.

@kyleredilla kyleredilla merged commit 6d31104 into main Feb 19, 2025
@kyleredilla kyleredilla deleted the generalize_regridding branch February 19, 2025 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants