-
Notifications
You must be signed in to change notification settings - Fork 85
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
Add skeleton for generation of derived solar fields for RainForests #1705
Add skeleton for generation of derived solar fields for RainForests #1705
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1705 +/- ##
==========================================
- Coverage 98.15% 98.13% -0.03%
==========================================
Files 110 111 +1
Lines 10162 10190 +28
==========================================
+ Hits 9975 10000 +25
- Misses 187 190 +3
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good starting point for bringing these derived solar fields used by RainForests into IMPROVER. I've made a few comments, mostly around the CLI and plugin interface.
Codecov is currently "failing" as it expects every PR to have line coverage at least equal to the project-wide coverage (currently ~98%). Personally, I think that's an excessive requirement and would prefer codecov to present the information then let reviewers decide whether test coverage is appropriate or not. There seems to be a way to configure a lower threshold - see codecov docs. I'll look at creating a PR for that configuration change next week. |
I'm happy with this now - ready for a second reviewer to take a look. |
Great. Thanks for help on improving this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few comments to consider. Thanks.
…skySolarRadiation Plugin.
…and linke-turbidity.
6ed1701
to
3fa2414
Compare
A couple more tiny things, but I'm otherwise happy with this now. Thanks again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've had another look through and all looks good now. @bayliffe, please check you're happy with those last few remaining items and update your review status when you're ready.
…etoppv#1705) * Add modules to evaluate the derived solar fields. * Fill out Solar-time CLI, and add skeleton GenerateSolarTime Plugin. * Fill out Clearsky solar-radiation CLI, and add skeleton GenerateClearskySolarRadiation Plugin. * Update docstrings. * Fix license. * Assume single valid time for linke turbidity rather than climatology. * Add modules to evaluate the derived solar fields. * Fix license. * Update typing in CLIs. * Linting. * Update temporal_spacing typing. * Add datetime value converter. * Update contributors list. * Update interfaces to reflect logic around default values for alitude and linke-turbidity. * Add function to create cube from target grid. * Change to using create_new_diagnostic_cube. * Formatting changes. * Replace altitude by surface_altitude. * Update docstring for temporal_spacing. * Reorder args to ensure cubes are bucnhed together in the interface. * Change time to named arg to bring into line with other CLIs. * Move initialisation of default cubes into plugin. * Add unit tests for _initialise_input_cubes. * Typo and linting fix. * Update docstrings and fix typo, as per reviewer comments.
This PR adds a skeleton for CLIs and plugins for generation of derived solar fields that are required as inputs for RainForests calibration of precipitation accumulations.
Future PRs following on from this will add in functionality and tests, however the CLI interfaces should remain unchanged from those presented herein.
Testing:
CLA