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

Improver1537 emos plugins2 #15

Draft
wants to merge 23 commits into
base: improver_1537_crps_minimisers
Choose a base branch
from

Conversation

gavinevans
Copy link
Owner

Description
The PR shows the differences between the branch containing the modification to the CRPS minimisation and the branch containing a fuller set of changes.

Testing:

  • Ran tests and they passed OK
  • Added new tests for the new feature(s)

@codecov-commenter
Copy link

codecov-commenter commented Oct 6, 2021

Codecov Report

Merging #15 (c663df5) into improver_1537_crps_minimisers (9a54f1b) will increase coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@                        Coverage Diff                        @@
##           improver_1537_crps_minimisers      #15      +/-   ##
=================================================================
+ Coverage                          97.98%   98.00%   +0.02%     
=================================================================
  Files                                107      107              
  Lines                               9611     9669      +58     
=================================================================
+ Hits                                9417     9476      +59     
+ Misses                               194      193       -1     
Impacted Files Coverage Δ
...semble_copula_coupling/ensemble_copula_coupling.py 99.04% <ø> (ø)
improver/calibration/ensemble_calibration.py 100.00% <100.00%> (+0.24%) ⬆️
improver/calibration/utilities.py 99.07% <100.00%> (+0.04%) ⬆️
improver/spotdata/build_spotdata_cube.py 100.00% <100.00%> (ø)
improver/spotdata/spot_extraction.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 516e9fc...c663df5. Read the comment docs.

bayliffe and others added 16 commits October 7, 2021 13:46
metoppv#1573)

* Spot extraction modified to work with multi-dimensional aux coords.

To be able to spot extract local-timezone maximum temperatures and UV indexes from the global grid the spot-extraction code has been modified to work with 2-D time coordinates. The time coordinate value associated with each spot site is extracted from the 2-D grid and a 1-D coordinate associated with the spot-index is created.

* Add units tests for SpotExtraction components.

* Add acceptance test.

* Updated compare CLI acceptance test to work when using new global neighbour cube.

* Review changes.

* Checksum updated.

* Simplified code along lines suggested in review.

* Makes 2-d time coordinates for test with expected units.

This is just to make things consistent between real world usage and 
tests. The existing code to generate time coordinates only deals with 
single dimensions, so here the _create_time_point code is invoked and 
the custom coordinate constructed.
…on plugin (metoppv#1575)

* Only the changes required to the ContinuousRankedProbabilityScoreMinimisers plugin required to support the use of additional predictors.

* Simplified array reshaping functionality.

* Update docstrings.

* Edits following review comments.

* Correct test name.

* Modification follwing review comments.

* Move methods to makes the process method the final method in the class.

* flake8 corrections.

* Modify docstring.

* Move predictor argument to init.

Co-authored-by: fionaRust <[email protected]>
…_plugins2

* upstream/master:
  Support for a static additional predictor within the CRPS minimisation plugin (metoppv#1575)
  MOBT-86: Spot extracting from data with 2-dimensional time coordinates (metoppv#1573)
…ditional predictor handling in relation to the initial guess.
…ering (metoppv#1580)

* Modify EnsembleReordering output to retain ensemble realization numbers from the raw forecast.

* Update improver_tests/ensemble_copula_coupling/test_EnsembleReordering.py

Co-authored-by: Stephen Moseley <[email protected]>

* Apply black.

Co-authored-by: Stephen Moseley <[email protected]>
…_plugins2

* upstream/master:
  Retain ensemble realization numbers from the raw forecast after reordering (metoppv#1580)
* Modify the leniency of the forecast period check to support calibrating forecasts from subhourly cycles with coefficients produced on the hour. Also, skip spatial domain checking for spot forecasts.

* Corrections and extensions to find the ceiling of the forecast period and add acceptance test for an example.

* Modifications following review comments.

* Updates to docstrings.

* Update checksums.

* Update improver_tests/calibration/utilities/test_utilities.py

Co-authored-by: fionaRust <[email protected]>

Co-authored-by: fionaRust <[email protected]>
…_plugins2

* upstream/master:
  Increase leniency of EMOS application (metoppv#1577)
@gavinevans gavinevans force-pushed the improver1537_emos_plugins2 branch 2 times, most recently from dce97d1 to 1215468 Compare October 13, 2021 10:26
@gavinevans gavinevans force-pushed the improver1537_emos_plugins2 branch from 1215468 to c663df5 Compare October 13, 2021 10:32
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