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

Update preprocessing notebook #163

Merged
merged 25 commits into from
Jul 15, 2021
Merged

Update preprocessing notebook #163

merged 25 commits into from
Jul 15, 2021

Conversation

SarahAlidoost
Copy link
Contributor

@SarahAlidoost SarahAlidoost commented Jul 9, 2021

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@SarahAlidoost SarahAlidoost marked this pull request as ready for review July 13, 2021 10:48
Copy link
Collaborator

@Peter9192 Peter9192 left a comment

Choose a reason for hiding this comment

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

Notebook looks good. Some additional suggestions that would make it even nicer:

  • The notebooks doesn't include Marrmot or hype. Did we decide to skip those?
  • Perhaps add a very short description to each model, something like: "Forcing for the PCRGlobWB is created using the ESMValTool recipe . It produces two files: one for temperature and one for precipitation. You can set the start and end date, and the region. See for more information.
  • How difficult would it be to actually use the shapefiles in the plotting routines?
  • Even more bonus: we now have plot codes for these models. Why not move them to methods in the forcing classes? So you could do WflowForcing.plot() :-)
  • I might still make some changes to the PCRGlobWB generate function as discussed earlier today. Hope it won't cause too much trouble.

Also thanks a lot for fixing all the additional minor issues in the process!

ewatercycle/forcing/_lisflood.py Outdated Show resolved Hide resolved
ewatercycle/forcing/_pcrglobwb.py Outdated Show resolved Hide resolved
tests/forcing/test_lisflood.py Show resolved Hide resolved
@SarahAlidoost
Copy link
Contributor Author

SarahAlidoost commented Jul 14, 2021

Notebook looks good. Some additional suggestions that would make it even nicer:

  • The notebooks doesn't include Marrmot or hype. Did we decide to skip those?

Marrmot generate forcing is implemented in case-1 technical notebook. I don't recall the reason why we skip the hype. 🤔 Shall we add it?

  • Perhaps add a very short description to each model, something like: "Forcing for the PCRGlobWB is created using the ESMValTool recipe . It produces two files: one for temperature and one for precipitation. You can set the start and end date, and the region. See for more information.

it is added for each model.

  • How difficult would it be to actually use the shapefiles in the plotting routines?
  • Even more bonus: we now have plot codes for these models. Why not move them to methods in the forcing classes? So you could do WflowForcing.plot() :-)

I think plotting is a new feature and not in the scope of this PR. If it is OK let's not implement it in this PR and before the release. Let's leave some work for after release. 😄

  • I might still make some changes to the PCRGlobWB generate function as discussed earlier today. Hope it won't cause too much trouble.

Shall we make a new item and PR for that?

Also thanks a lot for fixing all the additional minor issues in the process!

Thank you for reviewing and comments on nbreview.

@sonarcloud
Copy link

sonarcloud bot commented Jul 14, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

90.0% 90.0% Coverage
0.0% 0.0% Duplication

Copy link
Collaborator

@Peter9192 Peter9192 left a comment

Choose a reason for hiding this comment

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

Thanks Sarah!
We decided to do Hype later.

@Peter9192 Peter9192 merged commit a36d2ba into main Jul 15, 2021
@Peter9192 Peter9192 deleted the update_preprocessing_notebook branch July 15, 2021 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants