Add EOF Calculation to METcalcpy for Stratosphere and Weather Regime #127
Labels
alert: NEED ACCOUNT KEY
Need to assign an account key to this issue
alert: NEED CYCLE ASSIGNMENT
Need to assign to a release development cycle
type: new feature
Make it do something new
Describe the New Feature
Currently, EOFs exist in several places in METcalcpy and METplus. EOFs are computed as part of the Weather regime use case and exist in metcalcpy/contributed/blocking_weather_regime/WeatherRegime.py. They are also calculated as part of Stratosphere QBO, and are located in METplus/parm/use_cases/model_applications/UserScript_fcstGFS_obsERA_StratosphereQBO/stratosphere_qbo_driver.py. Finally, the RMM and OMI use cases accept EOFs that have been previously computed and are stored in files, but currently there is not a way to compute EOFs for them.
This issue addresses putting the EOF calculation in a common location rather than having it in the two locations for Weather Regime and Stratosphere QBO. This will include modifying the weather regime calculation in METcalcpy to use the new EOFs, which should be straightforward. The Stratosphere QBO use case will require a more substantial modification to point to this new version of EOFs, since the EOF calculation is part of the driver script in METplus. This will have to be modified as part of a separate issue in METplus (an issue for this does not currently exist).
One of the things to note here is that the weather regime use case expects EOF input as numpy arrays, while the Stratosphere use case expects input as Xarrays. This new EOF calculation will hopefully handle both of these data types.
It also might make sense to add the option to write an output file that could be used for the RMM and OMI use cases.
Acceptance Testing
List input data types and sources.
Describe tests required for new functionality.
Time Estimate
I'm guessing maybe 2 days to add the calculation and possibly a little more if file writing is added.
Sub-Issues
Consider breaking the new feature down into sub-issues.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
New Feature Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Linked issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: