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

New flowline diagnostics outputs and new signature for run_until_and_store() #1308

Merged
merged 12 commits into from
Oct 29, 2021

Conversation

fmaussion
Copy link
Member

@fmaussion fmaussion commented Oct 8, 2021

This PR will change the signature of the run_until_and_store() method in a non backwards compatible way.

  • the new default is to simply output the full glacier diagnostics only (volume, length, etc). Previously, it would also output what we call "model geometry files"
  • "model geometry" files are a good idea, they are kind of "restart" files. Indeed, their main purpose is to be able to restart from any modeled state with the FileModel. Other things (such as retrieving diagnostics) is slow and tedious and is now better done with the new diagnostic file. With this change, they are now not written per default, i.e. users will need to set this explicitly if they need them e.g. for spinup runs (its only a global option change).
  • I added a new type of optional output (store_fl_diagnostics) which provide diagnostics along the flowlines (instead of aggregated at the glacier level). These files can then be used to retrieve elevation, widths, velocity, etc. for all grid points along the flowlines.

Some work is needed to document this.

@nchampollion
Copy link
Member

Hi Fabien, just a quick question. What do you mean by "to store model geometry" ? You mean to store each year the widths at each flowline points retrieved using thickness and bed shape

@fmaussion
Copy link
Member Author

What do you mean by "to store model geometry" ?

Yes, the model geometry files that can be used to retrieve full glacier geometry using the FileModel. Almost nobody uses it. In fact I would like to change the full signature of the run_until_and_store method to return more useful things, but I'm afraid it will break too many things and I have to consider it a bit more...

@pep8speaks
Copy link

pep8speaks commented Oct 26, 2021

Hello @fmaussion! 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 2021-10-29 09:13:59 UTC

@fmaussion fmaussion changed the title Try to set store_model_geometry to False per default New flowline diagnostics outputs and new signature for run_until_and_store() Oct 26, 2021
@fmaussion fmaussion merged commit 80098be into OGGM:master Oct 29, 2021
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