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

small fix for aerosol size bin #566

Merged
merged 1 commit into from
Feb 6, 2025
Merged

small fix for aerosol size bin #566

merged 1 commit into from
Feb 6, 2025

Conversation

szy21
Copy link
Member

@szy21 szy21 commented Feb 5, 2025

Purpose

Right now, the aerosols are assigned bin 1 when the size is larger than the largest size bin. I think it is safer to assign them to the last size bin.

To-do

Content


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

@@ -282,6 +282,7 @@ function locate_merra_size_bin(size_bin_limits, aerosize)
bin = ibin
break
end
bin = nbins
Copy link
Member

@sriharshakandala sriharshakandala Feb 6, 2025

Choose a reason for hiding this comment

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

This looks fine if your intent is to extrapolate. A conservative approach is to check if the particle size falls within the bin extrema limits, throw an error if it doesn't (which is best done upstream, e.g. ClimaAtmos.jl).

@szy21 szy21 enabled auto-merge February 6, 2025 00:11
@szy21 szy21 merged commit 46ab9c1 into main Feb 6, 2025
9 of 11 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.

2 participants