-
Notifications
You must be signed in to change notification settings - Fork 16
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
607 review request to integrate universal pipeline #611
607 review request to integrate universal pipeline #611
Conversation
This is grib2 pipeline plugin from CMA which named universal.py, it is recommended to put it in /wis2box/wis2box-management/wis2box/data directory.
reference grib2-pipeline-plugin in CMA demo TH in data-mapping to deal with grib2 files, which is recomended to append it in /wis2box/tests/data/data-mappings.yml
these testing dataset provide some sample to support users to test grib2-data-pipeline-plugin
Hi Jin,
As the wis2box is a reference implementation for WIS2 the data-examples should align with the WIS2-topic-hierachy |
Feedback from Anna to correct topic-hierarchy in example replace: |
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.
Minor changes in addition to @maaikelimper's comments.
@@ -0,0 +1,55 @@ | |||
from datetime import datetime |
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.
Add source code header (see example)
Hi Maaike and Tom, |
569af06
to
69397bb
Compare
@tomkralidis @maaikelimper |
Thanks @alimand for the updates ! I've added an additional commit to your PR to add documentation for the new plugin and and included a new step in our automated testing to run the universal-plugin using your data-samples. I've removed the additional .md you included. Once the code is included in the next release any user will be able to use this as a built-in plugin for the wis2box. |
@tomkralidis for final review |
Great work everyone! @alimand is the GRAPES data 15 day forecast? Please confirm, thanks. |
Discussion with @alimand confirms test data is 10 day forecast (medium range). |
Adding grib2-pipeline-plugin demo
grib2-pipeline-plugin
1. 3 Related Files
a.universal.py, put it in /wis2box/wis2box-management/wis2box/data
b.data-mappings.yml, appended it in /wis2box/tests/data/data-mappings.yml
c.test data(10 files), we entered /wis2box/tests/data/observation, created a new directory named 'china', we put all the testing data sample in this directory.
d·discovery-metadata:GRAPES-GEPS-GLB.yml,put it in /wis2box/tests/data/metadata/discovery/GRAPES-GEPS-GLB.yml
2. Source Code
"""create function: UniversalData,inherit wis2box.data.base.BaseAbstractData"""
Implement the transform method and fill in the output_data property, returning True
universal.py
3. Data-mappings.yml configures the topic hierarchy of the numerical prediction data (CMA as an example)
data-mappings.yml
4. Test data list
5. GRAPES-GEPS-GLB.yml