-
Notifications
You must be signed in to change notification settings - Fork 89
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 CLI for ingesting tabular forecasts and observations into EMOS #1592
Add CLI for ingesting tabular forecasts and observations into EMOS #1592
Conversation
…passing in a list of percentiles, improvements to the unit tests to make them more reflective of the intended input files, checks to ensure the percentiles can be considered to be quantiles and other improvements.
…5.0." This reverts commit 5ccce69.
5ddf334
to
a390238
Compare
@bayliffe and @fionaRust have reviewed a previous version of this PR gavinevans#16 |
Codecov Report
@@ Coverage Diff @@
## master #1592 +/- ##
=======================================
Coverage 98.05% 98.05%
=======================================
Files 110 110
Lines 9917 9944 +27
=======================================
+ Hits 9724 9751 +27
Misses 193 193
Continue to review full report at Codecov.
|
… dependencies between the calibration and ECC code.
…rover1538_tabular_ingestion_cli4 * improver1538_move_tabular_ingestion_functions: Move dataframe to cube utilities to a separate file to avoid circular dependencies between the calibration and ECC code.
…lar_ingestion_cli4 * upstream/master: Move dataframe to cube utilities (metoppv#1593) Added constant for ultraviolet_index_daytime_max. (metoppv#1590)
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'm happy with these changes. I've taken a final look through the code, reran the test and check this doesn't impact the suite,
…lar_ingestion_cli_fp_format * upstream/master: Add CLI for ingesting tabular forecasts and observations into EMOS (metoppv#1592) Support providing a static additional predictor when applying EMOS coefficients (metoppv#1591) Move dataframe to cube utilities (metoppv#1593) Added constant for ultraviolet_index_daytime_max. (metoppv#1590)
…etoppv#1592) * Add CLI and acceptance tests. * Modifications to the CLI and underlying functions to add support for passing in a list of percentiles, improvements to the unit tests to make them more reflective of the intended input files, checks to ensure the percentiles can be considered to be quantiles and other improvements. * Minor style updates. * Modifications to support the use of fastparquet at version 0.5.0. * Revert "Modifications to support the use of fastparquet at version 0.5.0." This reverts commit 5ccce69. * Clean-up. * Add test using an additional predictor. * Add additional acceptance tests for exceptions in the CLI. * Update docstrings and add support for returning None from a CLI. * Move dataframe to cube utilities to a separate file to avoid circular dependencies between the calibration and ECC code. * Correct import.
Addresses: #1538
Dependent upon #1572, #1582.
This is a duplicate of gavinevans#16 pointed at master. Note that this PR has been updated to include #1593.
Description
This PR builds upon work done in #1582 to add an
estimate_emos_coefficients_from_table
CLI that converts the pandas dataframe into an iris cube (#1582) and passes that iris cube to the existing EMOS functionality.Note that this PR does contain an update to acceptance.py to support providing a directory as a known good output in the acceptance tests. This is required for compatibility with a partitioned parquet file.
Please note that the decision about whether to use fastparquet 0.5.0 or 0.7.1 is subject to change due to issues with the Conda environments (https://github.com/MetOffice/improver_suite/pull/1026). The first three commits in this PR assumed the use of 0.7.1. This commit reverts the version of fastparquet to 0.5.0.
Further information is available in this comment.
Testing: