Skip to content
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

Enhance TC-RMW to compute tangential and radial winds. #2072

Closed
10 of 20 tasks
JohnHalleyGotway opened this issue Feb 25, 2022 · 22 comments · Fixed by #2165
Closed
10 of 20 tasks

Enhance TC-RMW to compute tangential and radial winds. #2072

JohnHalleyGotway opened this issue Feb 25, 2022 · 22 comments · Fixed by #2165
Assignees
Labels
MET: Tropical Cyclone Tools priority: high High Priority requestor: METplus Team METplus Development Team type: enhancement Improve something that it is currently doing
Milestone

Comments

@JohnHalleyGotway
Copy link
Collaborator

JohnHalleyGotway commented Feb 25, 2022

Describe the Enhancement

When preparing training material for the MET-TC tools and also applying it for the unified physics testing and evaluation project, @KathrynNewman found that the TC-RWM tool does not actually perform the steps that the documentation claims it does. Namely, it does not compute and report tangential and radial winds. Looking at the tc_rmw.cc source code, I agree with her.

While the wind_ne_to_ra() function looks like logic for winds, that function is never actually being called! Instead process_fields() just loops over the requested fields but includes no special logic for handling U and V.

Reading this, tc_rmw chapter of the User's Guide, I agree that the functionally does not match the documentation. This needs more work.

This task is enhance the TC-RMW tool to compute and report tangential and radial winds. Listing @KathrynNewman as an assignee so that she can advise on and help test the development.

Time Estimate

2 days

Sub-Issues

Consider breaking the enhancement down into sub-issues.
No sub-issues needed.

Relevant Deadlines

List relevant project deadlines here or state NONE.

Funding Source

2793451 - based on guidance on Kathryn

Define the Metadata

Assignee

  • Select engineer(s) or no engineer required
  • Select scientist(s) or no scientist required

Labels

  • Select component(s)
  • Select priority
  • Select requestor(s)

Projects and Milestone

  • Select Repository and/or Organization level Project(s) or add alert: NEED PROJECT ASSIGNMENT label
  • Select Milestone as the next official version or Future Versions

Define Related Issue(s)

Consider the impact to the other METplus components.

Enhancement Checklist

See the METplus Workflow for details.

  • Complete the issue definition above, including the Time Estimate and Funding Source.
  • Fork this repository or create a branch of develop.
    Branch name: feature_<Issue Number>_<Description>
  • Complete the development and test your changes.
  • Add/update log messages for easier debugging.
  • Add/update unit tests.
  • Add/update documentation.
  • Push local changes to GitHub.
  • Submit a pull request to merge into develop.
    Pull request: feature <Issue Number> <Description>
  • Define the pull request metadata, as permissions allow.
    Select: Reviewer(s) and Linked issues
    Select: Repository level development cycle Project for the next official release
    Select: Milestone as the next official version
  • Iterate until the reviewer(s) accept and merge your changes.
  • Delete your fork or branch.
  • Close this issue.
@davidalbo
Copy link
Contributor

Email from @KathrynNewman:

Yes, that is the expected behavior: if you provide winds (UGRD and VGRD), the calculation for tangential and radial wind should occur and appear in the output file. Ideally, the variable name in the output .nc file would change to be descriptive (vt = tangential, vr = radial, would be logical). If you don't provide UGRD and VGRD, you should get an error that both are required. Does that make sense? I'd be happy to provide example data if that would be helpful!

I've got it to where I can run in the debugger. @KathrynNewman if you can give me an example I can move forward. Needed would be input data, command line you'd use, and config file/files. If I make changes and test, I could give you the output to look at.

@KathrynNewman
Copy link
Contributor

@davidalbo, Great! Where would it be best to put the input file, etc? I'm currently running tc-rmw on Hera (NOAA), but I can easily move a sample down to a RAL machine (Seneca? Kiowa?) for you.

@davidalbo
Copy link
Contributor

@KathrynNewman You can try putting everything here:

seneca:/d1/personal/dave/test-issue2072

If you can't write there, somewhere else on seneca where I can get to would be fine.

@KathrynNewman
Copy link
Contributor

@davidalbo - I couldn't write there, so I put the example case files under my space on seneca:/d1/personal/knewman/test-issue2072

Let me know if you have any questions!

@davidalbo
Copy link
Contributor

@KathrynNewman I can see everything, looks like I want to create this netCDF file:

florence06l.2018090700.fv3r_13km.nc

I can make changes until I can see that I've put the new fields into it, then hand off to you to view and give thumbs up or down.

@davidalbo
Copy link
Contributor

@KathrynNewman please have a look at this on seneca:

/d1/personal/dave/florence06l.2018090700.fv3r_13km.nc

It's a first rough version, may or may not look reasonable.
New fields in the netcdf output flle:

double VR(range, azimuth, pressure, track_point) ;
	VR:long_name = "Radial Velocity" ;
	VR:units = "m/s" ;
	VR:_FillValue = -9999. ;
double VT(range, azimuth, pressure, track_point) ;
	VT:long_name = "Tangential Velocity" ;
	VT:units = "m/s" ;
	VT:_FillValue = -9999. ;

I created data that had the same grid dimensions as most of the other outputs.
Dave

@JohnHalleyGotway JohnHalleyGotway moved this from To Do to In Progress in MET 11.0.0-beta1 (6/22/22) Apr 21, 2022
@KathrynNewman
Copy link
Contributor

@davidalbo - I took a look at the sample file. The new fields look good, those names and grid dimensions work. I am a little confused by Vt - I'm seeing negative values, which doesn't seem right... I believe it should be all positive. How is Vt being calculated?

@davidalbo
Copy link
Contributor

@KathrynNewman I'll hit this hard next week, on another project till then. I'm just guessing, would have to look into the calculations, could it be that if you were looking out a radial the tangential wind could be to the right positive or to the left negative? Or the other way around? I could easily be misinterpreting completely.

@KathrynNewman
Copy link
Contributor

Sounds good. I think you are thinking about it correctly when considering a fixed coordinate system. But for the Tropical Cyclone community, the definition is 'the component of the velocity directed along the velocity vector/streamline'. Therefore, by definition it needs to be positive. This is using natural coordinates - so always following the flow.

for Vr, it's always the direction perpendicular to the tangential winds, so here it could be positive or negative.

@jvigh
Copy link
Contributor

jvigh commented Apr 22, 2022

Hi Katherine and Dave -- I couldn't help but track along on this discussion.

What Kathryn says applies to natural coordinate systems, however I think the relevant coordinate system for this tool should be a cylindrical coordinate system. In that system, as conventionally applied to tropical cyclones, tangential wind is considered positive in the cyclonic wind direction. So if your back is to the center and you're looking out along a radial, wind going from your right to your left would have a positive tangential velocity in the Northern Hemisphere. In the Southern Hemisphere, wind going from your left to your right would have positive tangential velocity. I just wanted to bring this up to make sure the tool works correctly in both hemispheres.

It is theoretically possible to have negative tangential wind velocity in this coordinate system. Imagine an embedded eyewall mesovortex whose velocity magnitude is larger than the eyewall velocity that is advecting it. In that case, there could be a region where the tangential wind speed could be negative in this coordinate system.

I'm tagging Chris Rozoff and Eric Hendricks who are also TC experts to see if they'd like to add anything. @cmrozoff @eahendricks

I hope this helps!

@davidalbo
Copy link
Contributor

Interesting. I'll share the algorithm that does the conversion when I have time to get in there and take a good look.

@KathrynNewman
Copy link
Contributor

Thanks for weighing in, Jonathan. It's important to make sure we are consistent with the expectations of the user community. Bottom line - the current file has equal magnitude oscillating positive/negative values of Vt, which requires some further attention.

@davidalbo
Copy link
Contributor

Wondering if this capability was never fully implemented or tested. I'm getting what seems like bugs running it slowly through the debugger, using the existing conversion method.

The first point in the input (path?) has a lat,lon of 25,50 which converts to range_km=NAN and azimuth_deg=54.95. Obviously the NAN is problematic. Also the first point has input U,V values of -9999, -9999 which get used as is, no checking for missing data, which I'm assuming -9999 indicates, which is also problematic.

It's either buggy or some problem with the input config or data compared to the code, or it is designed so that NAN's and missing data somehow 'just works'.

@davidalbo
Copy link
Contributor

davidalbo commented Apr 26, 2022

I think I've isolated the 'NAN' problem. In the file earth_rotation.cc line 102:

https://github.com/dtcenter/MET/blob/main_v10.1/met/src/libcode/vx_grid/earth_rotation.cc#L102

the call to SO3:forward returns z_rot = 1.0000000000000007

which looks to me like a precision roundoff sort of error, it should probably be 1.0.
Something to do with the particulars of this rotation.

The next line method: id_xyz_to_latlon() tries to take asind(1.0000000000000007) which returns NAN.

Possible solutions are to modify this file and test for z_rot values very close to 1.0 or -1.0 and change them if so to 1.0 or -1.0, or to detect the NAN further up in the app and set the outputs to missing if a NAN is seen.

@TaraJensen TaraJensen removed the alert: NEED ACCOUNT KEY Need to assign an account key to this issue label Apr 28, 2022
@davidalbo
Copy link
Contributor

@JohnHalleyGotway , @jprestop I'm looking into adding some additional config parameters to make it optional to convert the UV winds to radial/tangential winds for this app. Diving into the code it seems maybe a little bigger change than I'd thought it might be, needing changes to the app code AND library code too. Is there any online documentation on adding a parameter to a config file, or can someone guide me through doing this kind of change? I want to do this in a way consistent with the overall MET way (if I do it at all).

@JohnHalleyGotway
Copy link
Collaborator Author

JohnHalleyGotway commented May 3, 2022

@davidalbo there is no documentation which details the steps needed to add a new config file option. However, I can point you to a recent example where I did something similar. GitHub issue #1870 was fixed by PR #1893. And you can see the list of 18 modified files for that PR here.

These files include changes to the default config file and config files in the test directory, adding the option to the vx_config library, updating the user's guide documentation, and adding a new test to exercise the new options.

That should point you in the right direction. Please let me know if you have additional questions.

Also note that adding a new config option to MET will require a new METplus issue to make that new option configurable.

@JohnHalleyGotway JohnHalleyGotway added priority: high High Priority and removed priority: high labels May 9, 2022
@davidalbo
Copy link
Contributor

@JohnHalleyGotway looking into this now. It makes sense, I should be able to mimic the pattern for changes you made. I've never used rst format before, but emacs recognizes it, so maybe I can just cut/paste/edit things in emacs to add content to those files that looks like what is already in them. Any other wisdom on editing rst?

@JohnHalleyGotway
Copy link
Collaborator Author

JohnHalleyGotway commented May 10, 2022

Restructured Text (rst) is just a lightweight markup language in ASCII. I'd recommend just copy/paste/editing existing content to get the formatting.

Here's my one piece of advice... after committing changes to the documentation in rst and pushing them up to GitHub, Read-The-Docs will automatically go rebuild/rerender the docs for you. Here's the link to the docs for your feature branch:
https://met.readthedocs.io/en/feature_2072_tc_rmw_winds/

So make edits, commit them, push them to GitHub, wait a few minutes, and then double-check that link to make sure they rendered how you expect.

If not, @jprestop or @lisagoodrich can probably help you figure out what went wrong.

@davidalbo
Copy link
Contributor

I'm about done with this issue. I'd like to get something installed for the next release that improves on what we had before, which was that it did nothing at all.

  • I ended up putting the wind conversion into it's own C++ class, because embedding it in the main algorithm was getting too complex.
  • Unit test updates were successful.
  • I tested various settings for the new configuration parameters with behavior as expected. Here are the defaults:
//
// Optionally convert u/v winds to tangential/radial winds
//
compute_tangential_and_radial_winds = TRUE;
u_wind_field_name = "UGRD";
v_wind_field_name = "VGRD";
tangential_velocity_field_name = "VT";
tangential_velocity_long_field_name = "Tangential Velocity";
radial_velocity_field_name = "VR";
radial_velocity_long_field_name = "Radial Velocity";

The user can control whether to do the computation or not, and what to expect as inputs, and what to use for output naming.

Two things still seem important based on the comments within this issue:

  1. "Adding a new config option to MET will require a new METplus issue to make that new option configurable". Who does that?
  2. " I'm seeing negative values, which doesn't seem right... I believe it should be all positive". If it is indeed problematic to have both positive and negative tangential winds, the users can/should create a new issue for that problem as a bug to be fixed.

@JohnHalleyGotway
Copy link
Collaborator Author

@davidalbo, you can just communicate with @georgemccabe and point out what changes you've made to the MET config files. Then he can handle the updates to the METplus wrappers.

@davidalbo
Copy link
Contributor

Hey @georgemccabe is this all you need for METplus wrappers? These are new config file option in tc_rmw.

//
// Optionally convert u/v winds to tangential/radial winds
//
compute_tangential_and_radial_winds = TRUE;
u_wind_field_name = "UGRD";
v_wind_field_name = "VGRD";
tangential_velocity_field_name = "VT";
tangential_velocity_long_field_name = "Tangential Velocity";
radial_velocity_field_name = "VR";
radial_velocity_long_field_name = "Radial Velocity";

@georgemccabe
Copy link
Collaborator

@davidalbo , I created a METplus issue to add support for the new config variables through the wrapper.

@davidalbo davidalbo linked a pull request May 17, 2022 that will close this issue
15 tasks
@JohnHalleyGotway JohnHalleyGotway moved this from In Progress to Pull Request Review in MET 11.0.0-beta1 (6/22/22) May 19, 2022
JohnHalleyGotway added a commit that referenced this issue May 20, 2022
…e call to the logger. Replace references to ugrid/vgrid with u/v wind. Fix a typo and clean up some whitespace.
davidalbo added a commit that referenced this issue May 20, 2022
* bug fix for NAN and for using missing data as if its not missing

* added parameters to control converting winds to tangential/radial components

* bug fixes

* Refactored to put wind conversion into it's own class TCRMW_WindConverter

* changed default for converting winds to TRUE, and put parameters for wind conversion into the unit test config files

* Per #2072, updating tc_rmw Makefile.in to compile new files.

* Per #2072, update to the output from the lex/yacc version on seneca.

* Changed Error to Warning in mlog messages, for consistency with MET conventions

* Removing commented out code.

* Per #2072, combine warnings spread across multiple lines into a single call to the logger. Replace references to ugrid/vgrid with u/v wind. Fix a typo and clean up some whitespace.

Co-authored-by: Dave Albo <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>
Repository owner moved this from Pull Request Review to Done in MET 11.0.0-beta1 (6/22/22) May 20, 2022
JohnHalleyGotway added a commit that referenced this issue Nov 3, 2022
* Initialze obs_data at constructor to avoid warninjg on building

* Initialze obs_data at constructor to avoid a warning by compiler

* #1824 ci-run-test Removed the duplicated code

* Feature 1810 expand asciitable (#2086)

* Feature 1583 skip_mean (#2090)

* Feature 1275 MODE Object Count (#2091)

* for #1275, fix issue with more than 1000 object for mode, ci-run-unit

* Per #1275, just deleting stale, commented-out code.

Co-authored-by: Randy Bullock <[email protected]>

* Feature 1184 dryline (#2088)

Co-authored-by: davidfillmore <[email protected]>
Co-authored-by: rgbullock <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>

* Feature 1184 replace_env (#2093)

* Feature 2092 v10.1.0-rc1 (#2094)

* Hotfix to the develop branch to fix the MODE Makefile for the MET-10.1.0-rc1 release.

* Second hotfix for the MODE Makefile in the develop branch.

* Feature 1844 docs (#2096)

* Feature 2097 v10.1.0 (#2099)

* Feature 2098 gen ens prod doc (#2100)

* update job control rules for GHA testing workflow to use version specific input data if running tests on main_v branch

* Migrating a small tweak added to the v10.1.0 release into the develop branch.

* Adding SonarQube location to development.seneca file.

* Bugfix #2102 develop initialize modified_hdr_typ (#2104)

Co-authored-by: Howard Soh <[email protected]>
Co-authored-by: johnhg <[email protected]>

* added logic to manually trigger a workflow via the GitHub… (develop) (#2109)

Co-authored-by: John Halley Gotway <[email protected]>

* Feature update installation info (#2114)

* Updating configuration and modulefiles

* Removed jet files

* create DockerHub tag that ends with -lite to use when triggering the METplus testing workflow

* Bugfix #2115 develop Rotated LatLon (#2117)

* Feature 1950 sort station list (#2121)

* Update the top-level README file to list ioda2nc, but also to trigger GHA to run for this new main_v10.1-ref branch.

* Added bool Sorted variable, set to true or false in relevant functions. Updated sort() function. SL

* In parse_sid_mask(), added the line: mask_sid.sort(). SL

* Per issue #1950, put in some cout statements for testing. SL

* Per issue #1950, working in has() function, checking for Sort and put in initial cout's for testing. SL

* Per issue #1950: Cleaned up some cout (print) statements. Left one in there that is commented out for future testing. SL

* Per issue #1950: modified has() function. Added lower_bound search for sorted arrays. Left some print (cout) statements in there for further testing. SL

* Per issue #1950: In has(), I commented out the print (cout) statements for time testing. SL

* added logic to manually trigger a workflow via the GitHub… (#2107)

* Per issue #1950, put back in some print (cout) statements for testing. SL

* Per issue #1950: in has() function, experimenting using the upper_bound() search instead of lower_bound() for sorted vectors. In progress. SL

* Per issue #1950: added a new has function that uses binary_search. Re-working the other has() functions related to this. SL

* Per issue #1950: re-worked original has(), basically reverted back to what it was...but it's now only used for unsorted vectors or for a case insensitive search. Cleaned up. SL

* Per issue #1950: in section that checks Obs Station Id in SID masking list, changed cout to a mlog (debug) statement. SL

* Per issue #1950: created new mask station id list (CONUS METARs) and modified the PointStatConfig_MASK_SID config file to use this list along with the existing lists. SL

* Per issue #1950: reverted back to orginal sid mask site-lists. SL

* Per issue #1950: checking in this site-list that was used for testing point_stat. SL

* Per issue #1950, modified and added better debugging to figure out current issue with ascii2nc. SL

* Per #1950, small tweak in ascii2nc to make it slightly more efficient. After adding the new obs varable name to the end of the list, we can compute var_index direclty without needing to call StringArray::has() a second time.

* Per #1950: removed mlog and cout print statements from has() functions. Cleaned up. SL

* Update met/src/basic/vx_log/string_array.cc

Co-authored-by: johnhg <[email protected]>

* Update met/src/basic/vx_log/string_array.cc

Co-authored-by: johnhg <[email protected]>

* Update met/src/basic/vx_log/string_array.cc

Co-authored-by: johnhg <[email protected]>

* Update met/src/basic/vx_log/string_array.cc

Co-authored-by: johnhg <[email protected]>

* Update met/src/basic/vx_log/string_array.cc

Co-authored-by: johnhg <[email protected]>

* Update met/src/basic/vx_log/string_array.h

Co-authored-by: johnhg <[email protected]>

* Delete SID_CONUS.txt

* Delete SID_CONUS_times11.txt

Co-authored-by: John Halley Gotway <[email protected]>
Co-authored-by: Seth Linden <[email protected]>
Co-authored-by: George McCabe <[email protected]>

* Bugfix #2118 develop grib1_rotll (#2130)

Co-authored-by: George McCabe <[email protected]>

* Bugfix 2123 nccf valid time (#2127)

Co-authored-by: Howard Soh <[email protected]>
Co-authored-by: johnhg <[email protected]>

* Feature #2132 version 11.0.0 (#2133)

* Bugfix #2106 develop gcc (#2135)

Co-authored-by: Julie Prestopnik <[email protected]>
Co-authored-by: johnhg <[email protected]>
Co-authored-by: Seth Linden <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>
Co-authored-by: j-opatz <[email protected]>
Co-authored-by: Howard Soh <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>
Co-authored-by: jprestop <[email protected]>
Co-authored-by: Howard Soh <[email protected]>
Co-authored-by: Randy Bullock <[email protected]>
Co-authored-by: davidfillmore <[email protected]>
Co-authored-by: rgbullock <[email protected]>
Co-authored-by: Seth Linden <[email protected]>
Co-authored-by: hsoh-u <[email protected]>
Co-authored-by: George McCabe <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>
Co-authored-by: MET Tools Test Account <[email protected]>
Co-authored-by: mo-mglover <[email protected]>
Co-authored-by: davidalbo <[email protected]>
Co-authored-by: lisagoodrich <[email protected]>
Co-authored-by: Dan Adriaansen <[email protected]>

* Doc-only update to expliciltly list the maximum character lengths for variable-length strings passed to ascii2nc.

* Added pcp_combine -subtract example (#2153)

* Add testing and docs status badges.

* Feature #2152 poly_xy (#2154)

* #14 Using literal instead of numbers and make sure no overflow

* #14 Using literal instead of numbers

* #14 Added tmp_buf_size

* #14 Define n_kw_infos first

* #14 Using literal instead of numbers

* Bugfix #2148 develop misses (#2150)

* dtcenter/METplus-Internal#14 formatting code

* METplus-Internal #16 Added python scanning

* METplus-Internal #16 changed name

* METplus-Internal #16 initial release for python scanning

* METplus-Internalv#19 added maic.cc & main.h

* METplus-Internalv#19 renamed main to met_main and added get_tool_name

* METplus-Internalv#19 Initial release

* changing 'Linked issue' to 'Development issue'

* change Linked issue/Development issue ci-skip-all

* change Linked issue/Development issue ci-skip-all

* change Linked issue/Development issue ci-skip-all

* Feature 1920 repo (#2161)

* List line types that can be aggregated per dtcenter/METplus#1625

* Hotfix for the develop branch to correct a bad MET_TEST_BASE path that causes the nightly build to fail.

* Feature 2072 tc rmw winds (#2165)

* bug fix for NAN and for using missing data as if its not missing

* added parameters to control converting winds to tangential/radial components

* bug fixes

* Refactored to put wind conversion into it's own class TCRMW_WindConverter

* changed default for converting winds to TRUE, and put parameters for wind conversion into the unit test config files

* Per #2072, updating tc_rmw Makefile.in to compile new files.

* Per #2072, update to the output from the lex/yacc version on seneca.

* Changed Error to Warning in mlog messages, for consistency with MET conventions

* Removing commented out code.

* Per #2072, combine warnings spread across multiple lines into a single call to the logger. Replace references to ugrid/vgrid with u/v wind. Fix a typo and clean up some whitespace.

Co-authored-by: Dave Albo <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>

* change Linked issue/Development issue ci-skip-all

* Bugfix #2173 develop shift_data_plane (#2175)

* Bugfix #2170 develop agg_ecnt (#2177)

* Feature 2022 anom corr to vcnt (#2171)

* Per #2022: Added ANOM_CORR, ANOM_CORR_BCL, ANOM_CORR_BCU to vcnt_columns. SL

* Per #2022: Added ANOM_CORR, ANOM_CORR_BCL, ANOM_CORR_BCU to write_vcnt_cols. SL

* Per #2022: Added ANOM_CORR to VL1L2Info. SL

* Per #2022: updated the VL1L2Info functions to initialize and compute ANOM_CORR. SL

* Per #2022: in calc_ncep_stats modified calculation for ANOM_CORR to check for bad data in the denominator first. SL

* Per #2022: for the VL1L2Info, changed all derived VCNT variables to be CIInfo objects (instead of doubles). SL

* Per #2022: making changes to VL1L2Info related to making all VCTN variables CIInfo objects. In progress. SL

* Per #2022: Added ANOM_CORR_UNCNTR. SL

* Per issue 2022: Modified functions in the VL1L2Info class to set the NCEP stat variables correctly since they are now CIInfo class memembers. SL

* Per issue 2022: Added ANOM_CORR_UNCNTR (_BCL, _BCU). SL

* Per issue 2022: modified write_vcnt_cols(), added ANOM_CORR_UNCNTR (_BCL, _BCU). SL

* Per issue #2022: updated write_vcnt_cols. VCNT variables are now CIInfo objects to have to .v for the value. SL

* Per issue #2022: In calc_ncep_stats, put in place-holder for ANOM_CORR.v value SL

* Per issue #2022: in calc_ncep_stats(), changed placeholder for ANOM_CORR. SL

* Per issue #2022: moved alpha initialization to the init_from_scratch() function. SL

* Per issue #2022: in calc_ncep_stats(), set ANOM_CORR to bad_data_double as a placeholder for now. SL

* Per issue #2022: in vcnt_cols(), added ANOM_CORR_NCL/NCU. SL

* Per issue #2022: in write_vcnt_cols(), added ANOM_CORR_NCL/NCU variables. SL

* Per #2022, adding new VCNT columns to the header table files, User's Guide documentation, and lining some code up more consistently.

* Per #2022, added FA_SPEED_BAR and OA_SPEEED_BAR to the VAL1L2 line type. Added code to compute the ANOM_CORR confidence interval. However, I still need to update the writing of the VCNT line type to set the alpha value and actually write the computed CI's.

* Per #2022, update the writing of the VCNT output line to write the alpha value and anomaly correlation CI's.

* Per #2022, update point_stat and grid_stat to allocate alpha values for VL1L2Info objects to store CI's.

* Per #2022, call VL1L2Info::zero_out() instead of clear() so that we don't throw away allocated alpha values.

* Per #2022, update the Point-Stat and Grid-Stat logic to include the number of alpha values when deciding how many VCNT lines to write.

* Per #2022, update the VL1L2Info::operator+= logic to copy over the allocated alpha values.

* Per #2022, enhance stat_analysis to support an aggregate_stat job type for VAL1L2->VCNT. This writes ANOM_CORR and ANOM_CORR_UNCNTR output columns. However, there are still things to address. The other stats should be written as NA instead of 0. Recommend changing the VL1L2Info::zero_out() function to intialize stat values to NA instead of 0. Need to update the docs to reflect this support. Also need to actually compute the parametric CI's for ANOM_CORR. Big picture, we should store the VCNT stats in a new VCNTInfo class... just like the SL1L2Info/CNTInfo setup. Storing the sums AND stats in the same VL1L2Info class is unnecessarily confusing.

* Per #2022, update Stat-Analysis docs to list VAL1L2 -> VCNT as a supported conversion type.

* Per #2022, when computing VL1L2Info CI's, n should be set to vacount rather than the number of input pairs.

* Per #2022, add a new call to Stat-Analysis to exercise the VAL1L2 to VCNT conversion.

* Per #2022, ci-run-unit fix an aggregation bug in VL1L2Info::operator+=().

* Per issue #2022, added _vcnt.txt output files to check to relevant tests based on if vcnt output file is being generated via the config file. SL

Co-authored-by: Seth Linden <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>

* #1815 Renamed time_as_offset to Is_offset

* #1815 Added vx_data2d_dim_by_value

* #1815 Added convert_value_to_offset and renamed _time_dim_offset to _cur_time_index

* #1815 Added convert_value_to_offset and renamed _time_dim_offset to _cur_time_index. Support value instead of offset for time and z level

* #1815 Support @ for the value insteaed of offset for slicing

* #1815 Support value insteaed of offset for slicing

* #1815 Deleted unused local variable

* #1815 Deleted unused local variable

* #1815 Added level by value with @

* #1815 Added plot_data_plane_NCCF_latlon_by_value

* #1815 Added level by value with @

* Feature #2180 develop kft (#2181)

* dtcenter/METplus-Internal#16 Moved from scripts/sonarqube to internal/scripts/sonarqube

* #1815 Updated level

* Feature 2022 stat_analysis (#2185)

Proceeding with the merge without an external review based on the details listed above.

* Feature #2147 HSS (#2169)

* #1815 call is_eq to comapre two double values

* Per #2147, this is a HOTFIX to the develop branch after PR #2169 added new CTC and CTS columns. Prevoiusly the CTC columns = NBRCTC columns and CTS = NBRCTS. But that is no longer the case. This updates write_nbrctc_cols() and write_nbrcts_cols() to actually write them rather than just calling the functions to write CTC and CTS cols, respectively.

* #2187 Added add_offset_att_name & scale_factor_att_name

* #2187 Apply add_offse or scale_factor if defined

* ##2187 Removed handling add_offset and scale factor. They are applied at the base API

* #2187 Changed a log message

* Per #2193, add release notes for met-11.0.0-beta1. (#2195)

Co-authored-by: MET Tools Test Account <[email protected]>

* Hotfix to develop since I forgot to update the version number in conf.py.

* #1815 Added more attribute names

* #1815 Added get_index_for_dim

* #1815 Formatting

* #1815 Support a differnt dimension name from thw first data variable

* #1815 Use constants for attr names

* Hotfix to the develop branch to fix paths in Dockefiles after restructuing the MET repo.

* Another hotfix to develop to get the Docker build step working again.

The failure from the configure script is caused by the version of the "alocal" executable.
The contents of develop are based on seneca, which has:
  aclocal (GNU automake) 1.16.1
By comparison, my laptop does NOT require that bootstrap be run for:
  aclocal (GNU automake) 1.16.5
But the Docker image has an older version which triggers the error:
  aclocal (GNU automake) 1.13.4

Any machine with aclocal 1.16.x works fine. Likely any machine with a version that differs from 1.16.x does not. Running bootstrap fixes that... but also changes the contents of all the Makefile.in files making them appear as a large set of diffs in the repo. This is not an issue inside the docker image since we generally remove the source code after compiling anyway.

* Updating the png version of the older flowcharts.

* #1815 cleanup

* #1815 cleanup

* #1851 cleanup

* #1851 cleanup

* #1815 Added get_att_unixtime

* #1851 cleanup

* #1815 cleanup

* #1815 cleanup

* #1815 Support @ for pinterp

* #1815 Do not call to_string

* #1815 cleanup

* Per issue #2081, updated thecontents to match MRMS Version 12.2. Updated existing entries, removed old entries, added new entries. SL (#2199)

Co-authored-by: Seth Linden <[email protected]>

* #1815 Changed @time to time at plot_data_plane_NCCF_time

* Revert "Feature 1815 level value" (#2201)

* #1815 Use NcVarInfo members instead API calls

* #1815 Added find_var_by_dim_name

* #1815 Restored changes for this branch. The changes were reset after revert and merging with latest develop branch

* #METplus-Internal_19 cleanup

* #METplus-Internal_19 Added more functiofnds and corrected typo

* #METplus-Internal_19 Added main.h and main.cc

* #METplus-Internal_19 adjusted link order to set oom

* #METplus-Internal_19 Renamed main to met_main. Moved oom handler to base API

* #METplus-Internal commented out segv_handler which failed to compile at Docker

* Fix typo - maintianing

* Feature #2204 sum (#2205)

* #2202 Added APIs to check the point data (missing data and data types)

* #2202 Renamed pointdata_from_xarray to pointdata_from_python_list

* #2202 Support python list

* #2202 Avoid seg fault by checking point data from python embedding and provides the better log messages

* #2202 Support python list

* #2202 Added APIs to check the point data (missing data and data types)

* #2202 Added APIs to check the point data (missing data and data types)

* #2202 Added APIs to check the point data (missing data and data types)

* #2202 Added MaskedArray to allowed array data type

* Per #2211, enhance warning/error messages when parsing threshold types in dictionary.cc.

* #2208 Check existence of ensemble member data before checking bad_data

* 2215 Added station_ob to message_type & station_id to station_id for metadata_map

* 2215 Add log message for missing message_type and station_id metadata variables. Set NA if a message type is empty string

* 2215 Filter out XXX@RecMetaData variables from @metadata variables

* Per #2215, update the user's guide to make it consistent with the default ioda2nc config file.

* #METplus-Internal_19 Renamed main to met_main and added get_tool_name

* Feature sonarqube v11 beta2 (#2222)

Co-authored-by: Howard Soh <[email protected]>

* Per #2220, update the version number and release notes.

* Per #2220, fix typo.

* Per #2220, format the METplus-Internal release notes for MET in the same way they were handled for the METplus beta1 release.

* Added *hpp

* Separated template functions

* Separated template functions

* Changed argument for get_var_fill_value

* Feature 1971 mtd error to warning (#2221)

Co-authored-by: Dave Albo <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>

* #2225 @Level string is not applied as an index and index string without @ is not applied as value

* Feature #2220 v11.0.0-beta2_try2 (#2228)

* Updating Hera and Jet files for 11.0.0 release

* Adding 11.0.0 modulefiles for Hera and Jet

* Updating cheyenne installation files

* Reformatted slashes in paths for hera config files

* Updating installation files for Orion

* Removed beta2 references

* Adding configuration and modulefiles for gaea installation

* Changing METdatadb references to METdataio

* Documentation-only commit directly to develop to correct a typo. The default dotsize if 1.0 rather than 10.

* Feature 2055 nbm grib2 update (#2234)

* Per issue #2055, in read_grib2_record_list() added new PDS numbers 6, 10, 15 (for NBM data). SL

* Per issue #2055: in read_grib2_record_list(), in section that validates PDS number changed, for undefined PDS numbers, changed Error to Warning and continue (instead of exit). SL

* Per issue #2055, created new entries for NBM grib2 data fields. SL

* Per issue #2055. Added more NBM fields based on a 12z, f003 file. SL

* Per issue #2055, after interogating several NBM lead-time files, added TMAX field. SL

* Per issue #2055, added grib2_nbm.txt to the list. SL

* Per #2055, update the grib2_nbm.txt file entries in the table_files Makefiles.

* Per issue #2055, fixed syntax entry for TSTM field. SL

* Per issue #2055, fixed a few more syntax errors for some of the fields. SL

* Per issue #2055, in read_grib2_record_list(), added section to set level values for template number 6 (NBM data). Also added some temporary print statements. SL

* Per issue  #2055, in read_grib2_record_list(), added code to set levels for table number 10 (like 6). SL

* Per #2055, adding support for new GRIB2_perc_val configuration option to filter records based on the forecast percentile value used by GRIB2 product definition templates 6 and 10. Seth, note that I also included the probability filtering logic tweak we discussed, since it was already present in that same file.

* Per issue #2055: in find_record_matches(), in section that resolves Prob fields, changed 'break' to 'continue' for non Probs. SL

* Per issue #2055, in read_grib2_record_list() cleaned up some commented out code. SL

* Per issue #2055, in read_grib2_record_list() cleaned up all print statements. SL

* Per issue #2055, added 5 new unit tests for NBM data. SL

* Update data2d_grib2.cc

* Update data2d_grib2.cc

Co-authored-by: Seth Linden <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>

* Feature 2207 map (#2241)

* Feature #2237 tmp_dir (#2242)

* Per #2196, updating files for changes to met base image (#2246)

* Hotfix to the develop branch to fix typos in the names of 3 tools (grid_stat, gribtab_dat_to_flat, and gsidens2orank). Also removed commented out code from main.cc.

* Feature 2250 accum (#2251)

* Feature 2198 zenodo (#2252)

* Per #2198, adding Seth Linden and Dave Albo to the Author List

* Per #2198, updated Dave Albo to David Albo

* Per #2198, added three new authors based on submitted AMS abstract

* Per #2198, adding .zenodo.json file

* Per #2198, adding orcids for all based on Tatiana's suggestion

* Update .zenodo.json

Co-authored-by: johnhg <[email protected]>

* Update .zenodo.json

Co-authored-by: johnhg <[email protected]>

* Update .zenodo.json

Co-authored-by: johnhg <[email protected]>

Co-authored-by: johnhg <[email protected]>

* Per #1744, adding names for rst files in index.rst

* Reword to Grid-Stat opening paragraph

* Feature 2196 update dockerfile (#2249)

* Per #2196, update for upgrade to Python 3.8.6

* Updated based on new structure of METbaseimage

* Changed MET_BASE_IMAGE references to MET_BASE_TAG; Added information to the README.md file

* Changed MET_BASE_IMAGE references to MET_BASE_TAG; Updated the version from v1.0 to v1.1

* Update internal/scripts/docker/README.md

Based on suggestion from John HG.

Co-authored-by: johnhg <[email protected]>

* Update internal/scripts/docker/README.md

Based on suggestion from John HG.

Co-authored-by: johnhg <[email protected]>

* Update internal/scripts/docker/README.md

Based on suggestion from John HG.

Co-authored-by: johnhg <[email protected]>

* Update internal/scripts/docker/README.md

Based on suggestion from John HG.

Co-authored-by: johnhg <[email protected]>

* Per #2196, updating README.md based on suggestions from John HG

Co-authored-by: johnhg <[email protected]>

* Feature 1774 contrib outline (#2253)

* creating chapter files

* putting a space in to work through the git add and commit process.

* Changed formatting of one header

Co-authored-by: Lisa Goodrich <[email protected]>
Co-authored-by: jprestop <[email protected]>

* Fine tune to grid-stat opening paragraph

* Feature 2206 fair crps to ecnt (#2247)

* Per issue #2206, for the ECNT line type, added CRPS_EMP_FAIR. SL

* Per issue #2206, for ECNT line type, added CRPS_EMP_FAIR. SL

* Per issue #2206, for ecnt_columns, added CRPS_EMP_FAIR. SL

* Per issue #2206, in write_ecnt_cols(), added crps_emp_fair. SL

* Per issue #2206, in ECNTInfo, added crps_emp_fair. SL

* Per issue #2206, started stubbing code pieced to calculate crps_emp_fair. SL

* Per issue #2206, added new function mean_abs_diff(). SL

* Per issue #2206, in compute_pair_vals() updated the code to calculate crps_emp and crps_emp_fair. SL

* Per issue #2206, added crps_emp_fair (CRPS_EMP_FAIR) to relevant code pieces. SL

* Per issue #2206, added wording for CRPS_EMP_FAIR, also added it to last column of ECNT line type. SL

* Per issue #2206, added info for CRPS_EMP_FAIR and also added the math equation for this. SL

* Per issue #2206, update the math equation for CRPS_EMP_FAIR. SL

* Per issue #2206, added new function weighted_mean_absolute_diff(). SL

* Per issue #2206, updated the crps_emp_fair calculation to subtract the weighted_mean_abs_diff. SL

* Per issue #2206, in aggr_orank_lines(), updated calculation for crps_emp_fair to use weighted_mean_abs_diff. SL

* Per issue #2206, renamed weighted_mean_abs_diff() to wmean_abs_diff(). SL

* Per issue #2206, for the crps_emp_fair calculation, changed weighted_mean_abs_diff() to wmean_abs_diff(). SL

* Per issue #2206, in aggr_orank_lines(), for the crps_emp_fair calculation, changed weighted_mean_abs_diff() to wmean_abs_diff(). SL

* Per issue #2206, updated the math equation for the CRPS_EMP_FAIR calculation. SL

* Per issue #2206, fixed a bug in the wmean_abs_diff() function. SL

* Per issue #2206, added code for crps_emp_fair. SL

* Per issue #2206, in set() function, added checks for crps_emp and crps_emp_fair, for values of 0.0. SL

Co-authored-by: Seth Linden <[email protected]>

* automated tests: added ability to trigger build of develop-lite docker image that it used in the METplus automated tests

* to fix issues with python embedding when the path changes, update development.docker file (apparently unused or rarely previously) to include changes for Python 3.8 including setting the LDFLAG to include -rpath to prevent needing LD_LIBRARY_PATH set to run the tools. Source the env file in the build MET docker script instead of setting the env vars in the configure command

* Hotfix to the develop branch to revert the python version from 3.8 back to 3.6. This is done by rolling back the base image in the MET Dockerfiles to dtcenter/met-base:v1.0. Using 3.8 caused the downstream METplus python embedding examples to fail via GHA in the METplus repo. Will write up an issue to investigate more during the MET-11.0.0-beta4 development cycle.

* Tweak the build_docker_image.sh script by removing references to MET_BASE_IMAGE and MET_BASE_TAG since those variables are hard-coded in the Dockerfiles themselves and this script includes no logic to handle them.

* Revert "Tweak the build_docker_image.sh script by removing references to MET_BASE_IMAGE and MET_BASE_TAG since those variables are hard-coded in the Dockerfiles themselves and this script includes no logic to handle them."

This reverts commit 5efc65e.

* Hotfix, found 2 more spots where I needed to change v1.1 to v1.0. We should really revisit having this setting spread across so many locations.

* Bugfix 2238 link error (#2255)

Co-authored-by: Howard Soh <[email protected]>

* Feature dtcenter/METplus-Internal#15 add checksum to release (#2254)

Co-authored-by: jprestop <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>

* feature 2216 ioda2nc station_id (#2259)

Co-authored-by: Howard Soh <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>

* Feature 1942 seeps (#2257)

Co-authored-by: Howard Soh <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>
Co-authored-by: MET Tools Test Account <[email protected]>

* Feature 2142 ascii2nc airnow (#2256)

Co-authored-by: Dave Albo <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>

* Feature 1954 semilatlon (#2262)

Co-authored-by: j-opatz <[email protected]>

* Removed future imports since they were used to transition from python 2 to 3. Rearranged logic to be more readible by checking error conditions and exiting if they are not met instead of putting all of the logic to run inside the if statement

* Feature 1908 remove ens (#2265)

* Feature 2266 v11.0.0-beta3 (#2268)

* Minor hotfix for the develop branch. Running bootstrap for develop on seneca changes the order of vx_grid semilatlon slightly. We probably manually editted that file instead of running bootstrap to regenerate it.

* Bugfix #2271 develop nbrctc (#2272)

Co-authored-by: George McCabe <[email protected]>

* Feature 2282 docs (#2283)

* #2270 Removed version number for SonrQube scanner pathdiff

* Feature #2286 grib_lookup (#2288)

* Feature 2227 namespace (#2290)

* Per #2227 changes in this commit resolve all errors from removing 'using namespace std' from all header files in the src/basic directory

* Attempt to resolve errors in GitHub actions from removing 'using namepsace std' from all src/basic/ libraries, plus removal from src/libcode/vx_gnomon/gnomon.h and src/libcode/vx_nc_util/nc_utils.h

* Attempt to fix GHA errors with compilation after removal of 'using namespace std'; locally compiles fine

* Per #2227, attempting to fix GHA compilation; Compiltion on seneca works fine

* Per #2227, attempt to resolve GHA compilation issues; seneca compilation works fine

* Per #2227, attempt to resolve GHA compilation issues; seneca compilation works fine

* Per #2227, removing namespace from vx_series_data library

* Per #2227, removing namespace std from vx_shapedata library

* Per #2227, removing namespace std from vx_data2d_grib2 and vx_data2d_grib libraries

* Per #2227, removing namespace std from vx_statistics library

* Per #2227, removing namespace std from src/tools/tc_utils

* Per #2227, removed namespace std from /src/tools/core header files

* Per #2227, clean up and continued work

* Per #2227, changes to remove namespace std and netCDF from header files

* Per #2227, resolve errors in GitHub Actions build

* Per #2227, resolve new errors in GitHub Actions build

* Per #2227, resolve new errors in GitHub Actions build

* Per #2227, resolve new errors in GitHub Actions build

* Per #2227, realign variables

* Per #2227, updating comment

* Per #2227, updating comment

* Per #2227, realign variables

* Per #2227, realign variables

* Per #2227, realign variables

* Per #2227, updating comment

* Update src/basic/vx_config/config.tab.cc

Co-authored-by: johnhg <[email protected]>

Co-authored-by: Julie Prestopnik <[email protected]>
Co-authored-by: johnhg <[email protected]>

* Feature #2237 test_empty_config (#2291)

* Feature #2297 gha (#2299)

* GHA hotfix to develop

Changes for #2297 included a small typo that I'm fixing directly in the develop branch.

* Feature #2297 hotfix to develop

A final hotfix to the develop branch to get the build_docker_trigger_metplus.yml workflow working again. I tested on feature_2297_gha branch to confirm that no double-quotes are actually needed.

* Update GHA versions

* Feature 2281 linker (#2296)

Co-authored-by: Julie Prestopnik <[email protected]>

* Feature 2036 enhance tc pairs (#2301)

Co-authored-by: Seth Linden <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>

* Feature 2276 enhance ascii2nc to read ndbc buoy data (#2294)

Co-authored-by: Dave Albo <[email protected]>
Co-authored-by: MET Tools Test Account <[email protected]>

* Feature 2155 time units months and years (#2300)

Co-authored-by: Howard Soh <[email protected]>

* removing release-notes out of overview and creating a seperate chapter for this information. (#2304)

* Bugfix #2309 develop tcmpr (#2310)

* Bugfix #2306 ascii2nc airnow hourly (#2314)

Co-authored-by: Dave Albo <[email protected]>

* Feature #2058 bias_ratio (#2317)

* Feature 2232 refine grid diag (#2316)

Co-authored-by: Seth Linden <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>
Co-authored-by: MET Tools Test Account <[email protected]>

* Feature #392 tcdiag_line_type (#2315)

* Feature #2068 ioda2nc v2.0 (#2307)

Co-authored-by: Howard Soh <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>
Co-authored-by: MET Tools Test Account <[email protected]>

* Feature #2322 v11.0.0-beta4 (#2323)

* Feature #2325 ECNT_MAE (#2326)

* Hotfix to the develop branch to correct the column numbers in the CNT line type table for the RMSOA, ANOM_CORR_UNCNTR, and SI statistics.

* Feature #2332 spread_md (#2333)

* Per #2232, add SPREAD_MD to the ECNT line type from Ensemble-Stat and computed for HiRA.

* Per #2332, fix compilation error.

* Per #2332, update date and release notes for met-11.0.0-beta4.

* Per #2332, fix compilation error.

Co-authored-by: Howard Soh <[email protected]>
Co-authored-by: hsoh-u <[email protected]>
Co-authored-by: Randy Bullock <[email protected]>
Co-authored-by: davidfillmore <[email protected]>
Co-authored-by: rgbullock <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>
Co-authored-by: Dan Adriaansen <[email protected]>
Co-authored-by: George McCabe <[email protected]>
Co-authored-by: MET Tools Test Account <[email protected]>
Co-authored-by: jprestop <[email protected]>
Co-authored-by: Seth Linden <[email protected]>
Co-authored-by: Seth Linden <[email protected]>
Co-authored-by: Julie Prestopnik <[email protected]>
Co-authored-by: Seth Linden <[email protected]>
Co-authored-by: j-opatz <[email protected]>
Co-authored-by: Howard Soh <[email protected]>
Co-authored-by: John Halley Gotway <[email protected]>
Co-authored-by: mo-mglover <[email protected]>
Co-authored-by: davidalbo <[email protected]>
Co-authored-by: lisagoodrich <[email protected]>
Co-authored-by: Molly Smith <[email protected]>
Co-authored-by: Dave Albo <[email protected]>
Co-authored-by: Jonathan Vigh <[email protected]>
Co-authored-by: bikegeek <[email protected]>
Co-authored-by: Lisa Goodrich <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MET: Tropical Cyclone Tools priority: high High Priority requestor: METplus Team METplus Development Team type: enhancement Improve something that it is currently doing
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

6 participants