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

distribute2d: introduce only_allow_retreating flag #1719

Merged
merged 6 commits into from
Aug 12, 2024

Conversation

afisc
Copy link
Contributor

@afisc afisc commented Aug 2, 2024

Small addition of an option to not allow sudden glacier (re-)growth in the distribute_thickness_from_simulation workflow. This allows for smoother animations, but keep in mind that this can change the area/thickness evolution of the glacier.

  • Tests added/passed
  • Fully documented
  • Entry in whats-new.rst

@pep8speaks
Copy link

pep8speaks commented Aug 2, 2024

Hello @afisc! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-08-12 10:21:41 UTC

@pat-schmitt
Copy link
Member

Hi, now that I see it, you can put these changes before the rolling_mean_smoothing, as some smoothing will make the animations look nicer.

Copy link
Member

@fmaussion fmaussion left a comment

Choose a reason for hiding this comment

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

@pat-schmitt feel free to merge when ready!

mask],
dim='time')
if mask.any():
# for each increasing time-step use the future time-step
Copy link
Member

Choose a reason for hiding this comment

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

here it should read 'past time-step' and not 'future time-step'

@pat-schmitt pat-schmitt merged commit fb3e42b into OGGM:master Aug 12, 2024
27 checks passed
@pat-schmitt
Copy link
Member

Thanks @afisc!

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