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

Workflow updates #161

Merged
merged 8 commits into from
Jan 6, 2025
Merged

Workflow updates #161

merged 8 commits into from
Jan 6, 2025

Conversation

mnlevy1981
Copy link
Collaborator

@mnlevy1981 mnlevy1981 commented Dec 20, 2024

Description of changes:

Updates necessary to include CUPiD as part of the CESM workflow

Changed the expected schema for config.yml, so timeseries.case_name should be a
list. Also, needed to set data_sources.nb_path_root and strip casename from
global_params.CESM_output_dir
- Moved climo_nyears and base_climo_nyears to glc section
- glacier notebook now uses obs_path for reading in more data
- time-series section points to both new run and base case
If one of the case names in the timeseries section of the config file matches
base_case_name, look for output in base_case_output_dir instead of
CESM_output_dir.

Also, one of the strings used when raising an exception was meant to be an
f-string (it includes a {variable} but was missing the f").
When generating the ADF config file, base_case_output_dir was missing
base_case_name in the path
The coupling index was being written to Meg's scratch space on derecho; now we
look for $SCRATCH and write in a subdirectory ($SCRATCH/CUPiD_scratch)
otherwise we write in $PWD
Found a bug in reading the data -- we want to use (base_start_date,
base_end_date) as the date range for the base_case data read, not (start_date,
end_date). Also, for some reason I needed to .load() the data before calling
.rolling() -- it's not clear to me why this was necessary but it avoided an
Exception being raised from that function
For CESM workflow, when generating an ADF config file, we want to point to the
CUPiD config file in the current case directory rather than the example it was
generated from
@mnlevy1981 mnlevy1981 marked this pull request as ready for review December 20, 2024 19:09
Copy link
Collaborator Author

@mnlevy1981 mnlevy1981 left a comment

Choose a reason for hiding this comment

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

@megandevlan Can you take a look at the changes I made in Global_TerrestrialCouplingIndex_VisualCompareObs.ipynb? I hadn't noticed before, but you were writing the coupling index to your own scratch space

@megandevlan
Copy link
Contributor

This looks good to me, @mnlevy1981! Makes a lot more sense to do it this way.

1. adf_root should be a subdirectory of case_root
2. All components should use end_year and base_end_year for time series, not
just atm
3. Look to see if specific notebooks are in template config file before
changing parameters for them
Copy link
Collaborator

@TeaganKing TeaganKing left a comment

Choose a reason for hiding this comment

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

We just went over this PR together and made sure everything is working.

@TeaganKing TeaganKing merged commit 8464969 into NCAR:main Jan 6, 2025
2 checks passed
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.

3 participants