Mask_poly on GridStat Data #1064
Replies: 2 comments 2 replies
-
Hi Craig, and thank you for your question. As you noted, the stat_analysis tool was initially designed to use the .stat files in a user's "-lookin" flag path. As of MET version 9.0.0, though, users have an option to use a Python script to read in the MPR line type by setting the "lookin" flag to "python". Take a look at the MET User's Guide here, where there is a brief discussion on the topic. I'll also provide a link to our METplus User's Guide MET tool wrapper for stat_analysis that specifically uses a Python script to read in the matched pair data. On that page you'll find a link to an example Python script, read_ascii_mpr.py, that may be of use to your situation. Let us know if you have any further difficulties or questions. |
Beta Was this translation helpful? Give feedback.
-
We verified global model data with grid stat. I now need to get performance statistics for a subregion of the global domain using stat_analysis. In stat_analysis on point_stat model/ob pairs data, I would use a mask to limit the statistic calculations to a particular region. I need to do the same thing with grid_stat model ob pairs – generate stats for a sub region. How would I accomplish that?
|
Beta Was this translation helpful? Give feedback.
-
I am running stat_analysis on gridstat data. My command line is below:
/h/MET/bin/stat_analysis -lookin /h/data/global/WXQC/data/met/gdstat/mdlob_pairs/galwem/TC -out_stat /h/data/global/WXQC/data/met/summary/stat_anal_galwem_TC_GT80_20210701_20210731.txt -tmp_dir /h/data/global/WXQC/data/met/tmp -job aggregate_stat -line_type MPR -out_line_type CTS -out_fcst_thresh ">80" -fcst_var "TCDC" -fcst_lev L0 -out_obs_thresh ">80" -obs_var Cloud_Pct - fcst_valid_beg 20210701_000000 -fcst_valid_end 20210731_180000 -by fcst_lead -by obs_thresh -obs_lev SFC -by model -mask_poly /h/data/global/WXQC/data/met/poly/greenland.nc -by fcst_valid_ hour -config /h/data/global/WXQC/data/met/config/met_config/STATAnalysisConfig_bootstrap_aggstat -v 4.0
The question I have is what should be my -line_type in this situation. When I use -mask_poly, I need the model ob pairs to generate the statistic for a particular region. In point stat I would use the MPR line type for this but not sure what the setting should be for using gridded pairs.nc data from grid stat. I notice when I run the job MET is reading through the .stat files but in this case the model ob pairs are in the pairs.nc file. How is that supposed to work?
Beta Was this translation helpful? Give feedback.
All reactions