-
Notifications
You must be signed in to change notification settings - Fork 22
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
Fix several small bugs in met-9.0. #1335
Comments
Here's Eric's response via email: It looks like the division by zero is happening because you only have one odds ratio over which to calculate the relative frequencies. Looking at Wilks' book on p. 274 to 275, it appears that the Gerrity score is defined only when you have at least two such relative frequencies. So, if you only have one, then it seems that NaN or NA would be a good response. So I will update the Gerrity score computations to check for divide by zero and set Gerrity to bad data in that case. |
From Sarah Griffin: Looking at the MET calculation, MED_FO is "from forecast to observation" and is calculated using the equation: Eric said 'In my paper, I always use the second letter to mean the "from" letter because that was how it was defined originally'. So, MED(A,B) is "from B to A". So, I'm assuming the MET explanation corresponds to MED(O,F). Therefore A=O and F=B. MED(A,B) is calculated using the equation based on Gilleland (2017): Here's the confusion part. The reason I'm noticing this is I would like to calculate MED using objects for an upcoming paper. However, using Eric's equations and MET's DMAP netcdf output, I was getting the exact opposite of how I would interpret MET's DMAP text output. Assuming that "MED_OF = Mean-error Distance from observation to forecast", my calculation was giving me the value of MET_FO. That's consistent with the equation for med_fo, but not the description and creates confusion. If you would like to see my MED calculations, I've uploaded my data and files to the MET_help ftp. |
…d data instead. Rather than checking for the divide by zero condition and checking for bad data at multiple levels, adding a single check for nan in the result is much simpler.
@JohnHalleyGotway the omission from the documentation for TCGen section is on page 394 of the PDF located here: On that page, the desc [] configuration file option is missing, and should come first after where filter [] is described. I think we can just copy the desc [] section from page 53 where the common MET config file options are described. Here's the text: // Can you just review that the description of "desc" I copied from page 53 applies to TCGen? |
…ions of MED_FO with MED_OF, FOM_FO with FOM_OF, and ZHU_FO with ZHU_OF.
* switched from lyx to rst. Updated web pages. Need to update links to chapters and emails. * testing to see if a dash - would work in the name. It does. File needs conversion. * added all file names. Unfortunately the files are empty and won't be recognized until data is in the files. * raw text from lyx copied into rst files. Unformatted. * John HG updates from 4/20/20 transition doc. * Updates from John HG 4/2/20 transition doc. * Julie 4/22/20 remove inacurate bullet from transition doc. * and AOD variable from GOES16/17 - change requested per Howard Soh 4/23/20 transitions doc. * John HG 2/27/20 updates from transition doc. * John O 4/28/20 updates from transition doc. * Per #1321, add a note to reformat_point.rst about including the probability threshold in the output variable name. * adding references at the top of every chapter. * Testing the chapter/title underlining for the appendix and data_io. * adding the option to underline text. * updating formatting, not finished. * underlining chapters only. * correcting first table formatting. * updated 3 tables * adding in tables 4 & 5 * added 2 tables * updated so text will wrap inside tables. * added first 6 tables. * completed remaining table update * Correct minor typos in AFSS and UFSS. * adding final tables. Had to correct some of the formatting outside the tables for things to view correctly. * adding all 8 tables. * Fixed tabbed formatting * fixed some of the indenting formatting. * Fixed tabbed formatting * updating to electric-indent-mode to keep indents under control. * adding tables. * Changes Dave Ahijevych made to the lyx documents after conversion to Sphinx. * Per #1335 issue (4), correct description of the DMAP line type table. * Per #1335 issue (4), correct desc entry in tc-gen chapter. * adding 8 tables. * Reformatted table 2 with line breaks * Reformatted table 2 with line breaks and backslashes * adding 4 tables. Code blocks need to be added in the future. * adding 3 tables. * adding table * added one table. Formulas need to be added. * adding 3 tables. 1 table from ensemble-stat. * fixing table return characters & back slashes. * re-copied using electric-indent-mode. * fixing table return characters. * fixing table return characters. * added bolding in table 10.5 * small table formatting updates. * updating table formatting. * adding table links * recopying section 5 and below to fix indents. Underlined some section headings. * recopying section 4 and below to fix indents. * updating table formatting * fixing typo. * linking chapters, more work to be done. * testing table link * adding link references for ALL tables. * adding links to tables. Removing periods at the end of tables so the links won't have double periods or periods in the middle of sentences. * updating tables and some links * incomplete, in process. * updating tables with links, some formatting changes. * fixing typos * updating table links Co-authored-by: Lisa Goodrich <lisag@kiowa.rap.ucar.edu> Co-authored-by: John Halley Gotway <johnhg@ucar.edu> Co-authored-by: Julie.Prestopnik <jpresto@ucar.edu>
Describe the Problem
Several small issues have arisen in the last week for which bugfixes should be provided. For convenience I'm grouping them into one issue and pull request. The details are listed below:
(1) The Gerrity score (GER column of MCTS line type) has nan's (not-a-number) in the output, as reported by Julie Prestopnik for the RAL Skymet project. nan's are never acceptable in the output from the MET tools. They indicate that an illegal mathematical option was performed. MET should check for these and write a bad data value to the output instead.
(2) Specifying MAXGAUSS as an smoothing method in the interp dictionary of Grid-Stat results in this error message, as reported by Tina Kalb:
MET should be fixed to support this smoothing method.
(3) The compilation of ascii2nc fails when not using the "--enable-python" configuration option, as reported by Hank Fisher when compiling for HWT.
In ascii2nc.cc, the include "global_python.h" line should be moved into the ifdef ENABLE_PYTHON block.
(4) Update the user’s guide:
The descriptions of the MED_FO and MED_OF statistics in Appendix C should be clarified, as reported by Sarah Griffin via met-help and confirmed by Eric Gilleland. See comments below.
Add note about desc[] to the TC-Gen section, as described in the comment below from Dan.
Expected Behavior
(1) nan's should never be written by MET.
(2) Grid-Stat should support the MAXGAUSS smoothing method.
(3) ascii2nc should compile with and without the --enable-python option.
(4) The documentation should be clarified.
Environment
Describe your runtime environment:
Various.
To Reproduce
Describe the steps to reproduce the behavior:
For issue (1):
Save the attached mctc.txt file containing a single MCTC output line from Point-Stat:
mctc.txt
Run the following Stat-Analysis job:
For issue (2):
Run Grid-Stat using the MAXGAUSS method:
For issue (3): Not necessary since Hank already confirmed that the proposed change fixes the compilation problem.
Relevant Deadlines
None.
Funding Source
None.
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
No impacts.
Bugfix Checklist
See the METplus Workflow for details.
Branch name:
bugfix_<Issue Number>_master_<Version>_<Description>
Pull request:
bugfix <Issue Number> master_<Version> <Description>
Branch name:
bugfix_<Issue Number>_develop_<Description>
Pull request:
bugfix <Issue Number> develop <Description>
The text was updated successfully, but these errors were encountered: