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

Parse forcing precision #210

Merged
merged 5 commits into from
Aug 29, 2024
Merged

Parse forcing precision #210

merged 5 commits into from
Aug 29, 2024

Conversation

roeldegoede
Copy link
Collaborator

Issue addressed

Fixes #197

Explanation

By default still two decimals are used, but you can overwrite the fmt in SfincsModel.write_forcing.

Another option is to provide fmt="auto", then the format is derived from the forcings.

Checklist

  • [x ] Updated tests or added new tests
  • Branch is up to date with main
  • Updated documentation if needed
  • Updated changelog.rst if needed

Additional Notes (optional)

Add any additional notes or information that may be helpful.

Copy link
Contributor

@DirkEilander DirkEilander left a comment

Choose a reason for hiding this comment

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

Looks good to me! Note that it does not completely solve #197. We should also respond in the issue what we will do with the idea by to store the forcing format as an attribute of SfincsModel. I think this has low priority for us, but we can welcome a contribution on this from the issue owner.

@roeldegoede roeldegoede merged commit 84262d0 into main Aug 29, 2024
6 checks passed
@roeldegoede roeldegoede deleted the parse_forcing_precision branch August 29, 2024 08:40
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.

write forcing precision
3 participants