-
Notifications
You must be signed in to change notification settings - Fork 28
Feature #1518 winds #3403
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
Merged
Merged
Feature #1518 winds #3403
Changes from all commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
6bb0686
Per #1518, add WindVectorInfo struct along with code to parse it.
JohnHalleyGotway 373f3e8
Per #1518, switch to WindMetadata struct name and parse it for the Va…
JohnHalleyGotway 87337dc
Per #1518, refine logic for checking wind metadata.
JohnHalleyGotway 3364eda
Per #1518, don't need kinetic_energy_field_name config option. Instea…
JohnHalleyGotway 1c4fd71
Per #1518, update the VarInfo is_... functions throughout.
JohnHalleyGotway 36f1774
Per #1518, lots of changes for handling wind deriviation in the base …
JohnHalleyGotway e597d98
Per #1518, update function names, add a hook for rotate_winds(), and …
JohnHalleyGotway 197dde9
Per #1518, improve level string handling for NetCDF files. When deriv…
JohnHalleyGotway 96e9e72
Per #1518, handle wind rotation in the Met2dDataFile base class rathe…
JohnHalleyGotway 78c8808
Per #1518, add hooks to derive kinetic energy, vorticity, and diverge…
JohnHalleyGotway f6e22bc
Per #1518, back out hooks for deriving divergence and vorticity since…
JohnHalleyGotway 662ee41
Per #1518, refine logic slightly.
JohnHalleyGotway 6affc2c
Per #1518, update library code to assume NetCDF files (MET, WRF, and …
JohnHalleyGotway f365616
Per #1518, patch logic in GRIB2 find_record_matches() to enable the p…
JohnHalleyGotway 2fc474c
Per #1518, update call to read_data_plane() ci-run-unit
JohnHalleyGotway a16afd2
Per #1518, siwitchtch from index_a/index_b/index_c to the more descri…
JohnHalleyGotway b883eea
Per #1518, update the grib table lookup to return a vector of matches.
JohnHalleyGotway a0e1978
Correct TCDC to be TCC for GALWEM.
JohnHalleyGotway b55cfea
Per #1518, add logic to check whether DataPlaneArray level values match.
JohnHalleyGotway e332d1d
Per #1518, move call to rotate_winds() outside of process_data_plane(…
JohnHalleyGotway a9b3b0c
Per #1518, rotate_winds() should return true for non-wind vars.
JohnHalleyGotway 6bb618d
Per #1518, patch rotate_winds() logic for DataPlaneArray. ci-run-unit
JohnHalleyGotway 154cb80
Per #1518, add back in calls to set the GRIB code after doing a table…
JohnHalleyGotway 9b603fd
Per #1518, need to store the units parsed from the GRIB tables.
JohnHalleyGotway 76f27ca
Per #1518, delete accidentally committed swap file. ci-run-unit
JohnHalleyGotway 4487321
Per #1518, reverting logic in find_record_matches() back to what it w…
JohnHalleyGotway 9112064
Trying to eliminate testing workflow failures ci-run-unit
JohnHalleyGotway b088d62
Per #1518, always read ConfigConstants before reading a config string.
JohnHalleyGotway b7f25d6
Per #1518, more tweaks to try get the unit tests to pass ci-run-unit
JohnHalleyGotway 452b288
Minor tweak
JohnHalleyGotway d5316c5
Per #1518, add VarInfo::reset_dict_with_name() function and update re…
JohnHalleyGotway e27537d
Per #1518, improve the read_wind_data() warning messages. ci-run-unit
JohnHalleyGotway 37a6d24
Per #1518, refined wind rotation log messages #ci-run-unit
JohnHalleyGotway 4d675b0
Per #1518, handle wind rotation before calling process_data_plane(). …
JohnHalleyGotway a200bdc
Per #1518, update gen_ens_prod and ensemble_stat to clone the VarInfo…
JohnHalleyGotway a49227f
Per #1518, abandon VarInfo::set_earth_relative() since that logic wre…
JohnHalleyGotway 746b667
Per #1518, refine log message formatting and update existing plots of…
JohnHalleyGotway ed3c623
Merge remote-tracking branch 'origin/develop' into feature_1518_winds
JohnHalleyGotway f0d224f
Per #1518, patch pcp_combine.cc read_field to read the -field config …
JohnHalleyGotway 5b070cb
Per #1518, log each wind rotation operation.
JohnHalleyGotway 7cb27c0
Per #1518, move clone() operation up in the logic from read_wind_data…
JohnHalleyGotway f605d90
More tweaks
JohnHalleyGotway c7b147a
Per #1518, add unit_winds.xml to demonstrate the new functionality. c…
JohnHalleyGotway 99a7f69
Start doc updates
JohnHalleyGotway e0c2d45
Per #1518, add logic to read_wind_data() when converting U to V or vi…
JohnHalleyGotway 35b2482
Per #1518, update docs about wind rotation.
JohnHalleyGotway 590df6b
Per #1518, note config changes in the upgrade instructions.
JohnHalleyGotway bc12786
Merge remote-tracking branch 'origin/develop' into feature_1518_winds
JohnHalleyGotway 4cf02d2
Try reverting from METbaseimage 3.5-latest back to 3.4-latest. The TC…
JohnHalleyGotway f46f15c
Per #1518, don't need to specify u_wind_field and v_wind_field_name a…
JohnHalleyGotway fdc9f40
Merge branch 'develop' into feature_1518_winds
JohnHalleyGotway 4303156
Per #1518, solve 3 SonarQube findings.
JohnHalleyGotway a114fa9
Per #1518, solve SonarQube findings in data_class.h/.cc.
JohnHalleyGotway 61bd643
Per #1518, make GRIB table lookup functions const to satisfy SonarQube.
JohnHalleyGotway a4d3f03
Per #1518, solve more SonarQube findings.
JohnHalleyGotway eb9d144
Per #1518, drive down more SonarQube findings to reduce the overall n…
JohnHalleyGotway 937840b
Merge branch 'feature_1518_winds' of https://github.com/dtcenter/MET …
JohnHalleyGotway 0d8b901
Per #1518, reduce 4 more SonarQube findings.
JohnHalleyGotway b0ebfd7
Per #1518, add missing references to Error or Debug for handful of ca…
JohnHalleyGotway f2c4bfa
Per #1518, refine the swap UV name logic so that it's only employed w…
JohnHalleyGotway e19ca14
MetConfig doesn't need to be static
JohnHalleyGotway 4119f5a
Per #1518, switch VarInfo::clone() to return an std::unique_ptr() to …
JohnHalleyGotway c030a4c
Per #1518, solve another SonarQube finding.
JohnHalleyGotway 21cff9f
Switch double to bool
JohnHalleyGotway 933b89d
More SonarQube cleanup
JohnHalleyGotway dae64dc
One more SonarQube issue
JohnHalleyGotway c137b3b
Merge remote-tracking branch 'origin/develop' into feature_1518_winds
JohnHalleyGotway b91fac4
Per #1518, update docs based on PR feedback.
JohnHalleyGotway File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| <?xml version="1.0"?> | ||
| <!DOCTYPE met_test [ | ||
| <!ENTITY MET_BIN "${MET_BASE}/../../bin"> | ||
| <!ENTITY TEST_DIR "${MET_TEST_BASE}"> | ||
| <!ENTITY INPUT_DIR "${MET_TEST_INPUT}"> | ||
| <!ENTITY OUTPUT_DIR "${MET_TEST_OUTPUT}"> | ||
|
|
||
| <!ENTITY CONFIG_DIR "&TEST_DIR;/config"> | ||
| <!ENTITY DATA_DIR_MODEL "&INPUT_DIR;/model_data"> | ||
| <!ENTITY DATA_DIR_OBS "&INPUT_DIR;/obs_data"> | ||
| ]> | ||
|
|
||
| <!-- Requires: None --> | ||
|
|
||
| <met_test> | ||
|
|
||
| <test_dir>&TEST_DIR;</test_dir> | ||
| <exit_on_fail>true</exit_on_fail> | ||
|
|
||
| <!-- --> | ||
| <!-- GRIB1 wind rotation and U/V derivation --> | ||
| <!-- with grid-relative input --> | ||
| <!-- --> | ||
|
|
||
| <test name="pcp_combine_winds_from_u_and_v_GRIB1"> | ||
| <exec>&MET_BIN;/pcp_combine</exec> | ||
| <param> \ | ||
| -add &DATA_DIR_MODEL;/grib1/nam/nam_2012040900_F012.grib \ | ||
| -field 'name="UGRD"; level="Z10"; set_attr_name="UWIND_GRID"; is_grid_relative=false;' \ | ||
| -field 'name="UGRD"; level="Z10"; set_attr_name="UWIND_EARTH";' \ | ||
| -field 'name="VGRD"; level="Z10"; set_attr_name="VWIND_GRID"; is_grid_relative=false;' \ | ||
| -field 'name="VGRD"; level="Z10"; set_attr_name="VWIND_EARTH";' \ | ||
| -field 'name="WDIR"; level="Z10"; set_attr_name="D_WDIR_GRID"; is_grid_relative=false;' \ | ||
| -field 'name="WDIR"; level="Z10"; set_attr_name="D_WDIR_EARTH";' \ | ||
| -field 'name="WIND"; level="Z10"; set_attr_name="D_WIND";' \ | ||
| -field 'name="KENG"; level="Z10"; set_attr_name="D_KENG";' \ | ||
| &OUTPUT_DIR;/winds/pcp_combine_nam_winds_GRIB1.nc \ | ||
| -v 3 | ||
| </param> | ||
| <output> | ||
| <grid_nc>&OUTPUT_DIR;/winds/pcp_combine_nam_winds_GRIB1.nc</grid_nc> | ||
| </output> | ||
| </test> | ||
|
|
||
| <!-- --> | ||
| <!-- GRIB2 wind speed and direction derivation --> | ||
| <!-- with earth-relative input --> | ||
| <!-- --> | ||
|
|
||
| <test name="pcp_combine_rotate_winds_from_speed_and_direction_GRIB2"> | ||
| <exec>&MET_BIN;/pcp_combine</exec> | ||
| <param> \ | ||
| -add &DATA_DIR_MODEL;/grib2/nbm/blend.t13z.core.f119.co.grib2 \ | ||
| -field 'name="UGRD"; level="Z10"; set_attr_name="D_UWIND";' \ | ||
| -field 'name="VGRD"; level="Z10"; set_attr_name="D_VWIND";' \ | ||
| -field 'name="WDIR"; level="Z10"; set_attr_name="WDIR";' \ | ||
| -field 'name="WDIR"; level="Z10"; set_attr_name="WDIR_ROTATE"; is_grid_relative=true;' \ | ||
| -field 'name="WIND"; level="Z10"; set_attr_name="WIND";' \ | ||
| &OUTPUT_DIR;/winds/pcp_combine_nbm_winds_GRIB2.nc \ | ||
| -v 3 | ||
| </param> | ||
| <output> | ||
| <grid_nc>&OUTPUT_DIR;/winds/pcp_combine_nbm_winds_GRIB2.nc</grid_nc> | ||
| </output> | ||
| </test> | ||
|
|
||
| <!-- --> | ||
| <!-- NetCDF WRF winds --> | ||
| <!-- --> | ||
|
|
||
| <test name="pcp_combine_winds_from_u_and_v_NETCDF_WRF"> | ||
| <exec>&MET_BIN;/pcp_combine</exec> | ||
| <param> \ | ||
| -add &DATA_DIR_MODEL;/wrf/wrfout_solarwind_d02_2019-08-31_12:00:00 \ | ||
| -field 'name="U10"; level="(0,*,*)"; set_attr_name="U10_GRID"; is_grid_relative=false;' \ | ||
| -field 'name="U10"; level="(0,*,*)"; set_attr_name="U10_EARTH";' \ | ||
| -field 'name="V10"; level="(0,*,*)"; set_attr_name="V10_GRID"; is_grid_relative=false;' \ | ||
| -field 'name="V10"; level="(0,*,*)"; set_attr_name="V10_EARTH";' \ | ||
| -field 'name="WDIR10"; level="(0,*,*)"; set_attr_name="WDIR10_GRID"; is_wind_direction=true; u_wind_field_name="U10"; v_wind_field_name="V10"; is_grid_relative=false;' \ | ||
| -field 'name="WDIR10"; level="(0,*,*)"; set_attr_name="WDIR10_EARTH"; is_wind_direction=true; u_wind_field_name="U10"; v_wind_field_name="V10";' \ | ||
| -field 'name="WIND10"; level="(0,*,*)"; is_wind_speed=true; u_wind_field_name="U10"; v_wind_field_name="V10";' \ | ||
| &OUTPUT_DIR;/winds/pcp_combine_winds_NETCDF_WRF.nc \ | ||
| -v 3 | ||
| </param> | ||
| <output> | ||
| <grid_nc>&OUTPUT_DIR;/winds/pcp_combine_winds_NETCDF_WRF.nc</grid_nc> | ||
| </output> | ||
| </test> | ||
|
|
||
| </met_test> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.