Feature #1518 winds#3403
Open
JohnHalleyGotway wants to merge 66 commits into
Open
Conversation
…rInfo base class.
…d, used a pre-defined hard-coded list of variable names to drive the derivation logic.
…class. Next up are handling wind rotations and adding lots of tests.
…add long names and units for derived wind fields.
…ing winds, the level string needs to be wrapped in parenthesis based on the existing parsing logic.
…r than just the derived classes for GRIB1 and GRIB2.
…nce. Still need to add the vorticity and divergence derivations and add new unit tests.
… they're non-trivial.
…CF) contain earth-relative winds.
…cp_combine -sum command to work again on precip data where name = APCP_03 while req_name = APCP.
…ptive disc/pcat/pnum.
…). We now have rotate_winds() for both DataPlane and DataPlaneArray inputs. And wind rotation is now handled AFTER the calls to process_data_plane().
…as to make the unit tests happier. ci-run-unit
…-Diag unit test fails in GHA when using 3.4-latest.
21 tasks
…fter adding the swap UV logic.
…umber of them relative to the develop branch.
…into feature_1518_winds
…lls to mlog throughout the MET repo.
…hen the current field name setting matches the contents of what's in ConfigConstants. That way, it is NOT used when the user explicitly sets the field name.
…satisfy SonarQube's complaints about calling new and delete.
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



This is a rather extensive set of changes to more broadly support wind rotation and derivation of gridded wind data across multiple input file types. Please note the following development details:
set_job_controls.shreverts back to METbaseimage 3.4 for now since 3.5 causes an unrelated segfault in TC-Diag. This needs to be fixed separately.ConfigConstantsdefaults show common GRIB and WRF-NetCDF variable names. Please advise if these should be updated.unit_plot_data_plane.xml, I addedis_grid_relative=false;in 2 spots to suppress wind rotation to preserve existing output and demonstrate that settingis_grid_relativeactually works.unit_winds.xmlcall pcp_combine as a "pass-through" to demonstrate the rotation and derivations of winds from both U/V and wind speed/direction inputs.WindMetaDatastruct stores the metadata for identifying winds info in one spot. It is an element of VarInfo and can be specified separately for EACH FIELD read, if needed.vx_data2dbase class library.read_wind_data()function, when going U->V or V->U, it FIRST tries swapping the U's and V's to look for a match. If the swap changes the field name, we try that first. If not, we proceed to the search strings in the*_wind_field_nameoption.set_name()was NOT sufficient. Instead we need the fullset_dict()option to include all the misc config options.table_lookup.h/.ccshould be noted. Previously, MET logged when a variable named (e.g.TMP) appeared more than once in the GRIB tables. Of course that happens all the time! That's now changed to only print info about the name NEVER appearing in the GRIB tables.get_field()reach each config string independently rather than letting one string settings affect the subsequent ones.Expected Differences
If yes, please describe:
Adds the following config options in
ConfigConstants:If yes, please describe:
Pull Request Testing
Describe testing already performed for these changes:
Extensive manual testing during development and added 3 new unit tests in
unit_winds.xmlto illustrate the functionality for GRIB1, GRIB2, and WRF-NetCDF input files.Recommend testing for the reviewer(s) to perform, including the location of input datasets, and any additional instructions:
unit_winds.xmlat verbosity level 3 and carefully review the log messages about the derivation and rotation of winds.seneca:/d1/projects/MET/MET_pull_requests/met-13.0.0/rc1/MET-feature_1518_winds.Do these changes include sufficient documentation updates, ensuring that no errors or warnings exist in the build of the documentation? [Yes]
Do these changes include sufficient testing updates? [Yes]
unit_winds.xmldemonstrate with 3 input files. Please advise if testing for additional inputs is warranted.Will this PR result in changes to the MET test suite? [Yes]
If yes, describe the new output and/or changes to the existing output:
unit_winds.xmlare added.grib_tables/um_raw/PS.557WW_SC.U_DI.F_GP.GALWEM-GD_GR.C17KM_AR.GLOBAL_DD.20160424_CY.00_FH.000_DF.psgrid_stat/grid_stat_WRF_pres_120000L_20190831_120000V_pairs.ncandgrid_stat/grid_stat_WRF_pres_120000L_20190831_120000V.statU_PLdata (e.g. U-wind at pressure levels) was NOT being rotated from grid-to-earth relative, and now it is.Will this PR result in changes to existing METplus Use Cases? [Maybe]
If yes, create a new Update Truth METplus issue to describe them.
Do these changes introduce new SonarQube findings? [Yes]
If yes, please describe:
Please complete this pull request review by [Friday, July 3rd].
I scheduled a meeting to discuss for Tuesday, June 30th.
Pull Request Checklist
See the METplus Workflow for details.
Select: Reviewer(s) and Development issue
Select: Milestone as the version that will include these changes
Select: METplus-X.Y Support project for bugfix releases or MET-X.Y Development project for the next coordinated release