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

Coarse AMIP calibration pipeline #1215

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from
Draft

Coarse AMIP calibration pipeline #1215

wants to merge 10 commits into from

Conversation

nefrathenrici
Copy link
Member

Purpose

To-do

Content


  • I have read and checked the items on the review checklist.

@nefrathenrici nefrathenrici changed the title Running with single year batch, downsampling outputvars Coarse AMIP calibration pipeline Mar 5, 2025
monthly_avgs = ClimaAnalysis.shift_to_start_of_previous_month(monthly_avgs)
# Remove spinup time
monthly_avgs = window(monthly_avgs, "time"; left = spinup_time)
global_mean = monthly_avgs |> average_lat |> average_lon |> average_time
Copy link
Member Author

Choose a reason for hiding this comment

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

This should be latitude-weighted.

# If 0.0 in diagonal, we need to add some small noise
if 0.0 in stdev_vec
mean_variance_without_zeros = mean(filter(x->x!=0, stdev_vec))
replace!(stdev_vec, (0.0 => mean_variance_without_zeros))
Copy link
Member Author

Choose a reason for hiding this comment

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

This should replace values close to zero as well

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.

1 participant