[Met_help] [rt.rap.ucar.edu #74658] History for unrecognized grib parameter

John Halley Gotway via RT met_help at ucar.edu
Mon Jan 11 10:56:16 MST 2016


----------------------------------------------------------------
  Initial Request
----------------------------------------------------------------

John, I am running some ensemble data through grid_stat, MET 5.1.  I am specifically running PQP1 (probability of precip gt .01).  Below is an exert from the nceptab_flat.txt file in data/table_files directory:

254 2 "RI" "Richardson number" "non-dim" 
255 2 "var255" "undefined" ""
206 3 "PQP1" "Probability of 6-hour precipitation > .01" "%"
222 3 "QP010" "Probability of 6-hour Precipitation > .10" "%"
223 3 "QP025" "Probability of 6-hour Precipitation > .25" "%"
224 3 "QP050" "Probability of 6-hour Precipitation > .50" "%"
226 3 "QP100" "Probability of 6-hour Precipitation > 1" "%"
0 128 "var0" "undefined" "" 
1 128 "PRES" "Pressure" "Pa" 
2 128 "PRMSL" "Pressure reduced to MSL" "Pa"

My grid_stat_config file has the following:

////////////////////////////////////////////////////////////////////////////////
//
// Grid-Stat configuration file.
//
// For additional information, see the MET_BASE/config/README file.
//
////////////////////////////////////////////////////////////////////////////////

//
// Output model name to be written
//
model = "WRF";

obtype = "ANALYS";


////////////////////////////////////////////////////////////////////////////////

//
// Verification grid
//
regrid = {
   to_grid    = FCST;
   vld_thresh = 0.5;
   method     = NEAREST;
   width      = 1;
}

////////////////////////////////////////////////////////////////////////////////

cat_thresh  = [ NA ];
cnt_thresh  = [ NA ];
cnt_logic   = UNION;
wind_thresh = [ NA ];
wind_logic  = UNION;
prob=[ "True" ];
//
// Forecast and observation fields to be verified
//
fcst = {
   wind_thresh = [ NA ];

   field = [
      {
        name       = "PQP1";
        level      = [ "A06" ];
       GRIB1_ptv  = 3;
        cat_thresh = [ > 0 ];
      }
   ];

} 
obs = {
   wind_thresh = [ NA ];
  
   field = [
     {
        name       = "APCP_06";
        level      = [ "(*,*)" ];
        cat_thresh = [ > 0 ];
     }
   ];
}

When I run, I get the following message:

[1219 qcteam dev8dlsn1 /h/WXQC/met-5.1] bin/grid_stat /h/data/global/WXQC/data/jme_verify/qcsave/probs/CONUS/2016010400/grib.2016010400.0006 /h/data/global/WXQC/data/fss/precip_6 /h/WXQ>
DEBUG 1: Default Config File: /home/qcteam/met-5.1/share/met/config/GridStatConfig_default
DEBUG 1: User Config File: /h/WXQC/met-5.1/data/config/GridStatConfig_pop01
ERROR  : 
ERROR  : VarInfoGrib::set_dict() - unrecognized GRIB1 field abbreviation 'PQP1' for table version 3
ERROR  :

The data record PQP1 is in the grib file I am reading.

Any indeas?

thanks

Bob Craig



----------------------------------------------------------------
  Complete Ticket History
----------------------------------------------------------------

Subject: unrecognized grib parameter
From: John Halley Gotway
Time: Fri Jan 08 16:14:42 2016

Bob,

There are 2 versions of the nceptab_flat.txt file... one included with
the
source code and one that gets copied over into the installation data
directory.  At runtime, MET is reading the one from the installed
directory:
   /home/qcteam/met-5.1/share/met/table_files/nceptab_flat.txt

Make sure that that version of the file has your edits in it.

Also, if you want MET to treat this field as containing probability
data,
you should add "prob = TRUE;" to your config file, like this:

fcst = {
   wind_thresh = [ NA ];

   field = [
      {
        name       = "PQP1";
        level      = [ "A06" ];
       GRIB1_ptv  = 3;
        cat_thresh = [ > 0 ];
        prob = TRUE;
      }
   ];
}

Also be sure to turn on the probability output flags:
   pct    = STAT or BOTH;
   pstd   = STAT or BOTH;
   pjc    = STAT or BOTH;
   prc    = STAT or BOTH;

Hope that helps.

Thanks,
John

On Fri, Jan 8, 2016 at 3:48 PM, robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:

>
> Fri Jan 08 15:48:02 2016: Request 74658 was acted upon.
> Transaction: Ticket created by robert.craig.2 at us.af.mil
>        Queue: met_help
>      Subject: unrecognized grib parameter
>        Owner: Nobody
>   Requestors: robert.craig.2 at us.af.mil
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=74658 >
>
>
> John, I am running some ensemble data through grid_stat, MET 5.1.  I
am
> specifically running PQP1 (probability of precip gt .01).  Below is
an
> exert from the nceptab_flat.txt file in data/table_files directory:
>
> 254 2 "RI" "Richardson number" "non-dim"
> 255 2 "var255" "undefined" ""
> 206 3 "PQP1" "Probability of 6-hour precipitation > .01" "%"
> 222 3 "QP010" "Probability of 6-hour Precipitation > .10" "%"
> 223 3 "QP025" "Probability of 6-hour Precipitation > .25" "%"
> 224 3 "QP050" "Probability of 6-hour Precipitation > .50" "%"
> 226 3 "QP100" "Probability of 6-hour Precipitation > 1" "%"
> 0 128 "var0" "undefined" ""
> 1 128 "PRES" "Pressure" "Pa"
> 2 128 "PRMSL" "Pressure reduced to MSL" "Pa"
>
> My grid_stat_config file has the following:
>
>
>
////////////////////////////////////////////////////////////////////////////////
> //
> // Grid-Stat configuration file.
> //
> // For additional information, see the MET_BASE/config/README file.
> //
>
>
////////////////////////////////////////////////////////////////////////////////
>
> //
> // Output model name to be written
> //
> model = "WRF";
>
> obtype = "ANALYS";
>
>
>
>
////////////////////////////////////////////////////////////////////////////////
>
> //
> // Verification grid
> //
> regrid = {
>    to_grid    = FCST;
>    vld_thresh = 0.5;
>    method     = NEAREST;
>    width      = 1;
> }
>
>
>
////////////////////////////////////////////////////////////////////////////////
>
> cat_thresh  = [ NA ];
> cnt_thresh  = [ NA ];
> cnt_logic   = UNION;
> wind_thresh = [ NA ];
> wind_logic  = UNION;
> prob=[ "True" ];
> //
> // Forecast and observation fields to be verified
> //
> fcst = {
>    wind_thresh = [ NA ];
>
>    field = [
>       {
>         name       = "PQP1";
>         level      = [ "A06" ];
>        GRIB1_ptv  = 3;
>         cat_thresh = [ > 0 ];
>       }
>    ];
>
> }
> obs = {
>    wind_thresh = [ NA ];
>
>    field = [
>      {
>         name       = "APCP_06";
>         level      = [ "(*,*)" ];
>         cat_thresh = [ > 0 ];
>      }
>    ];
> }
>
> When I run, I get the following message:
>
> [1219 qcteam dev8dlsn1 /h/WXQC/met-5.1] bin/grid_stat
>
/h/data/global/WXQC/data/jme_verify/qcsave/probs/CONUS/2016010400/grib.2016010400.0006
> /h/data/global/WXQC/data/fss/precip_6 /h/WXQ>
> DEBUG 1: Default Config File:
> /home/qcteam/met-5.1/share/met/config/GridStatConfig_default
> DEBUG 1: User Config File: /h/WXQC/met-
5.1/data/config/GridStatConfig_pop01
> ERROR  :
> ERROR  : VarInfoGrib::set_dict() - unrecognized GRIB1 field
abbreviation
> 'PQP1' for table version 3
> ERROR  :
>
> The data record PQP1 is in the grib file I am reading.
>
> Any indeas?
>
> thanks
>
> Bob Craig
>
>
>

------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #74658] unrecognized grib parameter
From: robert.craig.2 at us.af.mil
Time: Mon Jan 11 07:53:47 2016

John, I made the changes you recommended.  I am now getting the
following error:

[1150 qcteam dev8dlsn1 /h/WXQC/met-5.1] bin/grid_stat
/h/data/global/WXQC/data/jme_verify/qcsave/probs/CONUS/2016010400/grib.2016010400.0006
/h/data/global/WXQC/data/fss/precip_6 /h/WXQ>
DEBUG 1: Default Config File: /home/qcteam/met-
5.1/share/met/config/GridStatConfig_default
DEBUG 1: User Config File: /h/WXQC/met-
5.1/data/config/GridStatConfig_pop01
ERROR  :
ERROR  : do_assign_id() -> identifier "NEAREST" not defined in this
scope!
ERROR  :

My config file is listed below.  This is a regrid option it isn't
recognizing.

////////////////////////////////////////////////////////////////////////////////
//
// Grid-Stat configuration file.
//
// For additional information, see the MET_BASE/config/README file.
//
////////////////////////////////////////////////////////////////////////////////

//
// Output model name to be written
//
model = "WRF";

obtype = "ANALYS";


////////////////////////////////////////////////////////////////////////////////

//
// Verification grid
//
regrid = {
   to_grid    = FCST;
   vld_thresh = 0.5;
   method     = NEAREST;
   width      = 1;
}

////////////////////////////////////////////////////////////////////////////////

cat_thresh  = [ NA ];
cnt_thresh  = [ NA ];
cnt_logic   = UNION;
wind_thresh = [ NA ];
wind_logic  = UNION;
prob=[ "True" ];
//
// Forecast and observation fields to be verified
//
fcst = {
   wind_thresh = [ NA ];

   field = [
      {
        name       = "PQP1";
        level      = [ "A06" ];
        GRIB1_ptv  = 3;
        cat_thresh = [ > 0 ];
      }
   ];

}
obs = {
   wind_thresh = [ NA ];

   field = [
     {
        name       = "APCP_06";
        level      = [ "(*,*)" ];
        cat_thresh = [ > 0 ];
     }
   ];
}

////////////////////////////////////////////////////////////////////////////////

//
// Climatology mean data
//
climo_mean = {

   file_name = [];
   field     = [];

   regrid = {
      vld_thresh = 0.5;
      method     = NEAREST;
      width      = 1;
   }

   time_interp_method = DW_MEAN;
   match_day          = FALSE;
   time_step          = 21600;
}

////////////////////////////////////////////////////////////////////////////////

//
// Verification masking regions
//
mask = {
   grid = [ "FULL" ];
   poly = [];
}

////////////////////////////////////////////////////////////////////////////////

//
// Confidence interval settings
//
ci_alpha  = [ 0.05 ];

boot = {
   interval = PCTILE;
   rep_prop = 1.0;
   n_rep    = 0;
   rng      = "mt19937";
   seed     = "";
}

////////////////////////////////////////////////////////////////////////////////

//
// Data smoothing methods
//
interp = {
   field      = BOTH;
   vld_thresh = 1.0;

   type = [
      {
         method = NEAREST;
         width  = 1;
      }
   ];
}

////////////////////////////////////////////////////////////////////////////////

//
// Neighborhood methods
//
nbrhd = {
   vld_thresh = 1.0;
   width      = [ 1 ];
   cov_thresh = [ >=0.5 ];
}

////////////////////////////////////////////////////////////////////////////////

//
// Statistical output types
//
output_flag = {
   fho    = BOTH;
   ctc    = BOTH;
   cts    = BOTH;
   mctc   = BOTH;
   mcts   = BOTH;
   cnt    = BOTH;
   sl1l2  = BOTH;
   sal1l2 = BOTH;
   vl1l2  = BOTH;
   val1l2 = BOTH;
   pct    = BOTH;
   pstd   = BOTH;
   pjc    = BOTH;
   prc    = BOTH;
   nbrctc = BOTH;
   nbrcts = BOTH;
   nbrcnt = BOTH;
}

//
// NetCDF matched pairs output file
//
nc_pairs_flag   = {
   latlon = TRUE;
   raw    = TRUE;
   diff   = TRUE;
   climo  = TRUE;
}

////////////////////////////////////////////////////////////////////////////////

rank_corr_flag = FALSE;
tmp_dir        = "/tmp";
output_prefix  = "APCP_12";
version        = "V5.1";

////////////////////////////////////////////////////////////////////////////////

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Friday, January 08, 2016 5:15 PM
To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
Subject: Re: [rt.rap.ucar.edu #74658] unrecognized grib parameter

Bob,

There are 2 versions of the nceptab_flat.txt file... one included with
the source code and one that gets copied over into the installation
data directory.  At runtime, MET is reading the one from the installed
directory:
   /home/qcteam/met-5.1/share/met/table_files/nceptab_flat.txt

Make sure that that version of the file has your edits in it.

Also, if you want MET to treat this field as containing probability
data, you should add "prob = TRUE;" to your config file, like this:

fcst = {
   wind_thresh = [ NA ];

   field = [
      {
        name       = "PQP1";
        level      = [ "A06" ];
       GRIB1_ptv  = 3;
        cat_thresh = [ > 0 ];
        prob = TRUE;
      }
   ];
}

Also be sure to turn on the probability output flags:
   pct    = STAT or BOTH;
   pstd   = STAT or BOTH;
   pjc    = STAT or BOTH;
   prc    = STAT or BOTH;

Hope that helps.

Thanks,
John

On Fri, Jan 8, 2016 at 3:48 PM, robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:

>
> Fri Jan 08 15:48:02 2016: Request 74658 was acted upon.
> Transaction: Ticket created by robert.craig.2 at us.af.mil
>        Queue: met_help
>      Subject: unrecognized grib parameter
>        Owner: Nobody
>   Requestors: robert.craig.2 at us.af.mil
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=74658
> >
>
>
> John, I am running some ensemble data through grid_stat, MET 5.1.  I
> am specifically running PQP1 (probability of precip gt .01).  Below
is
> an exert from the nceptab_flat.txt file in data/table_files
directory:
>
> 254 2 "RI" "Richardson number" "non-dim"
> 255 2 "var255" "undefined" ""
> 206 3 "PQP1" "Probability of 6-hour precipitation > .01" "%"
> 222 3 "QP010" "Probability of 6-hour Precipitation > .10" "%"
> 223 3 "QP025" "Probability of 6-hour Precipitation > .25" "%"
> 224 3 "QP050" "Probability of 6-hour Precipitation > .50" "%"
> 226 3 "QP100" "Probability of 6-hour Precipitation > 1" "%"
> 0 128 "var0" "undefined" ""
> 1 128 "PRES" "Pressure" "Pa"
> 2 128 "PRMSL" "Pressure reduced to MSL" "Pa"
>
> My grid_stat_config file has the following:
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
> //
> // Grid-Stat configuration file.
> //
> // For additional information, see the MET_BASE/config/README file.
> //
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> //
> // Output model name to be written
> //
> model = "WRF";
>
> obtype = "ANALYS";
>
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> //
> // Verification grid
> //
> regrid = {
>    to_grid    = FCST;
>    vld_thresh = 0.5;
>    method     = NEAREST;
>    width      = 1;
> }
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> cat_thresh  = [ NA ];
> cnt_thresh  = [ NA ];
> cnt_logic   = UNION;
> wind_thresh = [ NA ];
> wind_logic  = UNION;
> prob=[ "True" ];
> //
> // Forecast and observation fields to be verified // fcst = {
>    wind_thresh = [ NA ];
>
>    field = [
>       {
>         name       = "PQP1";
>         level      = [ "A06" ];
>        GRIB1_ptv  = 3;
>         cat_thresh = [ > 0 ];
>       }
>    ];
>
> }
> obs = {
>    wind_thresh = [ NA ];
>
>    field = [
>      {
>         name       = "APCP_06";
>         level      = [ "(*,*)" ];
>         cat_thresh = [ > 0 ];
>      }
>    ];
> }
>
> When I run, I get the following message:
>
> [1219 qcteam dev8dlsn1 /h/WXQC/met-5.1] bin/grid_stat
>
/h/data/global/WXQC/data/jme_verify/qcsave/probs/CONUS/2016010400/grib
> .2016010400.0006
> /h/data/global/WXQC/data/fss/precip_6 /h/WXQ> DEBUG 1: Default
Config
> File:
> /home/qcteam/met-5.1/share/met/config/GridStatConfig_default
> DEBUG 1: User Config File:
> /h/WXQC/met-5.1/data/config/GridStatConfig_pop01
> ERROR  :
> ERROR  : VarInfoGrib::set_dict() - unrecognized GRIB1 field
> abbreviation 'PQP1' for table version 3 ERROR  :
>
> The data record PQP1 is in the grib file I am reading.
>
> Any indeas?
>
> thanks
>
> Bob Craig
>
>
>



------------------------------------------------
Subject: Recall: [rt.rap.ucar.edu #74658] unrecognized grib parameter
From: robert.craig.2 at us.af.mil
Time: Mon Jan 11 08:02:18 2016

CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN would like to recall the
message, "[rt.rap.ucar.edu #74658] unrecognized grib parameter".

------------------------------------------------
Subject: unrecognized grib parameter
From: John Halley Gotway
Time: Mon Jan 11 10:38:13 2016

Bob,

Hmmm... obviously this is not the desired behavior!

When you pass Grid-Stat a configuration file, it actually reads 3 of
them
in the following order:
   (1) Constants: /home/qcteam/met-
5.1/share/met/config/ConfigConstants
   (2) Default for the tool:
/home/qcteam/met-5.1/share/met/config/GridStatConfig_default
   (3) User-specified one: /h/WXQC/met-
5.1/data/config/GridStatConfig_pop01

The identifier NEAREST should be defined in ConfigConstants.  Try
this:
  grep NEAREST /home/qcteam/met-5.1/share/met/config/ConfigConstants

You should see this:
NEAREST        = 9;

If not, somehow that file got corrupted.

Also, check to see if the "MET_BASE" environment variable is set (echo
$MET_BASE).  If it is, that tells MET to look in a different directory
for
ConfigConstants.  But it must be reading it... otherwise, it would
error
out telling us it can't.

Please let me know how it goes.

Thanks,
John


On Mon, Jan 11, 2016 at 7:53 AM, robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=74658 >
>
> John, I made the changes you recommended.  I am now getting the
following
> error:
>
> [1150 qcteam dev8dlsn1 /h/WXQC/met-5.1] bin/grid_stat
>
/h/data/global/WXQC/data/jme_verify/qcsave/probs/CONUS/2016010400/grib.
> 2016010400.0006 /h/data/global/WXQC/data/fss/precip_6 /h/WXQ>
> DEBUG 1: Default Config File:
> /home/qcteam/met-5.1/share/met/config/GridStatConfig_default
> DEBUG 1: User Config File: /h/WXQC/met-
5.1/data/config/GridStatConfig_pop01
> ERROR  :
> ERROR  : do_assign_id() -> identifier "NEAREST" not defined in this
scope!
> ERROR  :
>
> My config file is listed below.  This is a regrid option it isn't
> recognizing.
>
>
>
////////////////////////////////////////////////////////////////////////////////
> //
> // Grid-Stat configuration file.
> //
> // For additional information, see the MET_BASE/config/README file.
> //
>
>
////////////////////////////////////////////////////////////////////////////////
>
> //
> // Output model name to be written
> //
> model = "WRF";
>
> obtype = "ANALYS";
>
>
>
>
////////////////////////////////////////////////////////////////////////////////
>
> //
> // Verification grid
> //
> regrid = {
>    to_grid    = FCST;
>    vld_thresh = 0.5;
>    method     = NEAREST;
>    width      = 1;
> }
>
>
>
////////////////////////////////////////////////////////////////////////////////
>
> cat_thresh  = [ NA ];
> cnt_thresh  = [ NA ];
> cnt_logic   = UNION;
> wind_thresh = [ NA ];
> wind_logic  = UNION;
> prob=[ "True" ];
> //
> // Forecast and observation fields to be verified
> //
> fcst = {
>    wind_thresh = [ NA ];
>
>    field = [
>       {
>         name       = "PQP1";
>         level      = [ "A06" ];
>         GRIB1_ptv  = 3;
>         cat_thresh = [ > 0 ];
>       }
>    ];
>
> }
> obs = {
>    wind_thresh = [ NA ];
>
>    field = [
>      {
>         name       = "APCP_06";
>         level      = [ "(*,*)" ];
>         cat_thresh = [ > 0 ];
>      }
>    ];
> }
>
>
>
////////////////////////////////////////////////////////////////////////////////
>
> //
> // Climatology mean data
> //
> climo_mean = {
>
>    file_name = [];
>    field     = [];
>
>    regrid = {
>       vld_thresh = 0.5;
>       method     = NEAREST;
>       width      = 1;
>    }
>
>    time_interp_method = DW_MEAN;
>    match_day          = FALSE;
>    time_step          = 21600;
> }
>
>
>
////////////////////////////////////////////////////////////////////////////////
>
> //
> // Verification masking regions
> //
> mask = {
>    grid = [ "FULL" ];
>    poly = [];
> }
>
>
>
////////////////////////////////////////////////////////////////////////////////
>
> //
> // Confidence interval settings
> //
> ci_alpha  = [ 0.05 ];
>
> boot = {
>    interval = PCTILE;
>    rep_prop = 1.0;
>    n_rep    = 0;
>    rng      = "mt19937";
>    seed     = "";
> }
>
>
>
////////////////////////////////////////////////////////////////////////////////
>
> //
> // Data smoothing methods
> //
> interp = {
>    field      = BOTH;
>    vld_thresh = 1.0;
>
>    type = [
>       {
>          method = NEAREST;
>          width  = 1;
>       }
>    ];
> }
>
>
>
////////////////////////////////////////////////////////////////////////////////
>
> //
> // Neighborhood methods
> //
> nbrhd = {
>    vld_thresh = 1.0;
>    width      = [ 1 ];
>    cov_thresh = [ >=0.5 ];
> }
>
>
>
////////////////////////////////////////////////////////////////////////////////
>
> //
> // Statistical output types
> //
> output_flag = {
>    fho    = BOTH;
>    ctc    = BOTH;
>    cts    = BOTH;
>    mctc   = BOTH;
>    mcts   = BOTH;
>    cnt    = BOTH;
>    sl1l2  = BOTH;
>    sal1l2 = BOTH;
>    vl1l2  = BOTH;
>    val1l2 = BOTH;
>    pct    = BOTH;
>    pstd   = BOTH;
>    pjc    = BOTH;
>    prc    = BOTH;
>    nbrctc = BOTH;
>    nbrcts = BOTH;
>    nbrcnt = BOTH;
> }
>
> //
> // NetCDF matched pairs output file
> //
> nc_pairs_flag   = {
>    latlon = TRUE;
>    raw    = TRUE;
>    diff   = TRUE;
>    climo  = TRUE;
> }
>
>
>
////////////////////////////////////////////////////////////////////////////////
>
> rank_corr_flag = FALSE;
> tmp_dir        = "/tmp";
> output_prefix  = "APCP_12";
> version        = "V5.1";
>
>
>
////////////////////////////////////////////////////////////////////////////////
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Friday, January 08, 2016 5:15 PM
> To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> Subject: Re: [rt.rap.ucar.edu #74658] unrecognized grib parameter
>
> Bob,
>
> There are 2 versions of the nceptab_flat.txt file... one included
with the
> source code and one that gets copied over into the installation data
> directory.  At runtime, MET is reading the one from the installed
directory:
>    /home/qcteam/met-5.1/share/met/table_files/nceptab_flat.txt
>
> Make sure that that version of the file has your edits in it.
>
> Also, if you want MET to treat this field as containing probability
data,
> you should add "prob = TRUE;" to your config file, like this:
>
> fcst = {
>    wind_thresh = [ NA ];
>
>    field = [
>       {
>         name       = "PQP1";
>         level      = [ "A06" ];
>        GRIB1_ptv  = 3;
>         cat_thresh = [ > 0 ];
>         prob = TRUE;
>       }
>    ];
> }
>
> Also be sure to turn on the probability output flags:
>    pct    = STAT or BOTH;
>    pstd   = STAT or BOTH;
>    pjc    = STAT or BOTH;
>    prc    = STAT or BOTH;
>
> Hope that helps.
>
> Thanks,
> John
>
> On Fri, Jan 8, 2016 at 3:48 PM, robert.craig.2 at us.af.mil via RT <
> met_help at ucar.edu> wrote:
>
> >
> > Fri Jan 08 15:48:02 2016: Request 74658 was acted upon.
> > Transaction: Ticket created by robert.craig.2 at us.af.mil
> >        Queue: met_help
> >      Subject: unrecognized grib parameter
> >        Owner: Nobody
> >   Requestors: robert.craig.2 at us.af.mil
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=74658
> > >
> >
> >
> > John, I am running some ensemble data through grid_stat, MET 5.1.
I
> > am specifically running PQP1 (probability of precip gt .01).
Below is
> > an exert from the nceptab_flat.txt file in data/table_files
directory:
> >
> > 254 2 "RI" "Richardson number" "non-dim"
> > 255 2 "var255" "undefined" ""
> > 206 3 "PQP1" "Probability of 6-hour precipitation > .01" "%"
> > 222 3 "QP010" "Probability of 6-hour Precipitation > .10" "%"
> > 223 3 "QP025" "Probability of 6-hour Precipitation > .25" "%"
> > 224 3 "QP050" "Probability of 6-hour Precipitation > .50" "%"
> > 226 3 "QP100" "Probability of 6-hour Precipitation > 1" "%"
> > 0 128 "var0" "undefined" ""
> > 1 128 "PRES" "Pressure" "Pa"
> > 2 128 "PRMSL" "Pressure reduced to MSL" "Pa"
> >
> > My grid_stat_config file has the following:
> >
> >
> >
//////////////////////////////////////////////////////////////////////
> > //////////
> > //
> > // Grid-Stat configuration file.
> > //
> > // For additional information, see the MET_BASE/config/README
file.
> > //
> >
> >
//////////////////////////////////////////////////////////////////////
> > //////////
> >
> > //
> > // Output model name to be written
> > //
> > model = "WRF";
> >
> > obtype = "ANALYS";
> >
> >
> >
> >
//////////////////////////////////////////////////////////////////////
> > //////////
> >
> > //
> > // Verification grid
> > //
> > regrid = {
> >    to_grid    = FCST;
> >    vld_thresh = 0.5;
> >    method     = NEAREST;
> >    width      = 1;
> > }
> >
> >
> >
//////////////////////////////////////////////////////////////////////
> > //////////
> >
> > cat_thresh  = [ NA ];
> > cnt_thresh  = [ NA ];
> > cnt_logic   = UNION;
> > wind_thresh = [ NA ];
> > wind_logic  = UNION;
> > prob=[ "True" ];
> > //
> > // Forecast and observation fields to be verified // fcst = {
> >    wind_thresh = [ NA ];
> >
> >    field = [
> >       {
> >         name       = "PQP1";
> >         level      = [ "A06" ];
> >        GRIB1_ptv  = 3;
> >         cat_thresh = [ > 0 ];
> >       }
> >    ];
> >
> > }
> > obs = {
> >    wind_thresh = [ NA ];
> >
> >    field = [
> >      {
> >         name       = "APCP_06";
> >         level      = [ "(*,*)" ];
> >         cat_thresh = [ > 0 ];
> >      }
> >    ];
> > }
> >
> > When I run, I get the following message:
> >
> > [1219 qcteam dev8dlsn1 /h/WXQC/met-5.1] bin/grid_stat
> >
/h/data/global/WXQC/data/jme_verify/qcsave/probs/CONUS/2016010400/grib
> > .2016010400.0006
> > /h/data/global/WXQC/data/fss/precip_6 /h/WXQ> DEBUG 1: Default
Config
> > File:
> > /home/qcteam/met-5.1/share/met/config/GridStatConfig_default
> > DEBUG 1: User Config File:
> > /h/WXQC/met-5.1/data/config/GridStatConfig_pop01
> > ERROR  :
> > ERROR  : VarInfoGrib::set_dict() - unrecognized GRIB1 field
> > abbreviation 'PQP1' for table version 3 ERROR  :
> >
> > The data record PQP1 is in the grib file I am reading.
> >
> > Any indeas?
> >
> > thanks
> >
> > Bob Craig
> >
> >
> >
>
>
>
>

------------------------------------------------
Subject: RE: [rt.rap.ucar.edu #74658] unrecognized grib parameter
From: robert.craig.2 at us.af.mil
Time: Mon Jan 11 10:42:45 2016

Hi John, I figured out the problem after I sent the email.  I didn't
have my configuration files in the right place.  After I reconfigured,
everything ran as expected.   I really like the regrid option so I
don't have to do this my self.  Sorry to send you on a wild goose
chase.

Thanks for your great support.
Bob

-----Original Message-----
From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
Sent: Monday, January 11, 2016 11:38 AM
To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
Subject: Re: [rt.rap.ucar.edu #74658] unrecognized grib parameter

Bob,

Hmmm... obviously this is not the desired behavior!

When you pass Grid-Stat a configuration file, it actually reads 3 of
them in the following order:
   (1) Constants: /home/qcteam/met-
5.1/share/met/config/ConfigConstants
   (2) Default for the tool:
/home/qcteam/met-5.1/share/met/config/GridStatConfig_default
   (3) User-specified one: /h/WXQC/met-
5.1/data/config/GridStatConfig_pop01

The identifier NEAREST should be defined in ConfigConstants.  Try
this:
  grep NEAREST /home/qcteam/met-5.1/share/met/config/ConfigConstants

You should see this:
NEAREST        = 9;

If not, somehow that file got corrupted.

Also, check to see if the "MET_BASE" environment variable is set (echo
$MET_BASE).  If it is, that tells MET to look in a different directory
for ConfigConstants.  But it must be reading it... otherwise, it would
error out telling us it can't.

Please let me know how it goes.

Thanks,
John


On Mon, Jan 11, 2016 at 7:53 AM, robert.craig.2 at us.af.mil via RT <
met_help at ucar.edu> wrote:

>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=74658 >
>
> John, I made the changes you recommended.  I am now getting the
> following
> error:
>
> [1150 qcteam dev8dlsn1 /h/WXQC/met-5.1] bin/grid_stat
>
/h/data/global/WXQC/data/jme_verify/qcsave/probs/CONUS/2016010400/grib.
> 2016010400.0006 /h/data/global/WXQC/data/fss/precip_6 /h/WXQ> DEBUG
1:
> Default Config File:
> /home/qcteam/met-5.1/share/met/config/GridStatConfig_default
> DEBUG 1: User Config File:
> /h/WXQC/met-5.1/data/config/GridStatConfig_pop01
> ERROR  :
> ERROR  : do_assign_id() -> identifier "NEAREST" not defined in this
scope!
> ERROR  :
>
> My config file is listed below.  This is a regrid option it isn't
> recognizing.
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
> //
> // Grid-Stat configuration file.
> //
> // For additional information, see the MET_BASE/config/README file.
> //
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> //
> // Output model name to be written
> //
> model = "WRF";
>
> obtype = "ANALYS";
>
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> //
> // Verification grid
> //
> regrid = {
>    to_grid    = FCST;
>    vld_thresh = 0.5;
>    method     = NEAREST;
>    width      = 1;
> }
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> cat_thresh  = [ NA ];
> cnt_thresh  = [ NA ];
> cnt_logic   = UNION;
> wind_thresh = [ NA ];
> wind_logic  = UNION;
> prob=[ "True" ];
> //
> // Forecast and observation fields to be verified // fcst = {
>    wind_thresh = [ NA ];
>
>    field = [
>       {
>         name       = "PQP1";
>         level      = [ "A06" ];
>         GRIB1_ptv  = 3;
>         cat_thresh = [ > 0 ];
>       }
>    ];
>
> }
> obs = {
>    wind_thresh = [ NA ];
>
>    field = [
>      {
>         name       = "APCP_06";
>         level      = [ "(*,*)" ];
>         cat_thresh = [ > 0 ];
>      }
>    ];
> }
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> //
> // Climatology mean data
> //
> climo_mean = {
>
>    file_name = [];
>    field     = [];
>
>    regrid = {
>       vld_thresh = 0.5;
>       method     = NEAREST;
>       width      = 1;
>    }
>
>    time_interp_method = DW_MEAN;
>    match_day          = FALSE;
>    time_step          = 21600;
> }
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> //
> // Verification masking regions
> //
> mask = {
>    grid = [ "FULL" ];
>    poly = [];
> }
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> //
> // Confidence interval settings
> //
> ci_alpha  = [ 0.05 ];
>
> boot = {
>    interval = PCTILE;
>    rep_prop = 1.0;
>    n_rep    = 0;
>    rng      = "mt19937";
>    seed     = "";
> }
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> //
> // Data smoothing methods
> //
> interp = {
>    field      = BOTH;
>    vld_thresh = 1.0;
>
>    type = [
>       {
>          method = NEAREST;
>          width  = 1;
>       }
>    ];
> }
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> //
> // Neighborhood methods
> //
> nbrhd = {
>    vld_thresh = 1.0;
>    width      = [ 1 ];
>    cov_thresh = [ >=0.5 ];
> }
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> //
> // Statistical output types
> //
> output_flag = {
>    fho    = BOTH;
>    ctc    = BOTH;
>    cts    = BOTH;
>    mctc   = BOTH;
>    mcts   = BOTH;
>    cnt    = BOTH;
>    sl1l2  = BOTH;
>    sal1l2 = BOTH;
>    vl1l2  = BOTH;
>    val1l2 = BOTH;
>    pct    = BOTH;
>    pstd   = BOTH;
>    pjc    = BOTH;
>    prc    = BOTH;
>    nbrctc = BOTH;
>    nbrcts = BOTH;
>    nbrcnt = BOTH;
> }
>
> //
> // NetCDF matched pairs output file
> //
> nc_pairs_flag   = {
>    latlon = TRUE;
>    raw    = TRUE;
>    diff   = TRUE;
>    climo  = TRUE;
> }
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> rank_corr_flag = FALSE;
> tmp_dir        = "/tmp";
> output_prefix  = "APCP_12";
> version        = "V5.1";
>
>
>
//////////////////////////////////////////////////////////////////////
> //////////
>
> -----Original Message-----
> From: John Halley Gotway via RT [mailto:met_help at ucar.edu]
> Sent: Friday, January 08, 2016 5:15 PM
> To: CRAIG, ROBERT J GS-12 USAF ACC 16 WS/WXN
> Subject: Re: [rt.rap.ucar.edu #74658] unrecognized grib parameter
>
> Bob,
>
> There are 2 versions of the nceptab_flat.txt file... one included
with
> the source code and one that gets copied over into the installation
> data directory.  At runtime, MET is reading the one from the
installed directory:
>    /home/qcteam/met-5.1/share/met/table_files/nceptab_flat.txt
>
> Make sure that that version of the file has your edits in it.
>
> Also, if you want MET to treat this field as containing probability
> data, you should add "prob = TRUE;" to your config file, like this:
>
> fcst = {
>    wind_thresh = [ NA ];
>
>    field = [
>       {
>         name       = "PQP1";
>         level      = [ "A06" ];
>        GRIB1_ptv  = 3;
>         cat_thresh = [ > 0 ];
>         prob = TRUE;
>       }
>    ];
> }
>
> Also be sure to turn on the probability output flags:
>    pct    = STAT or BOTH;
>    pstd   = STAT or BOTH;
>    pjc    = STAT or BOTH;
>    prc    = STAT or BOTH;
>
> Hope that helps.
>
> Thanks,
> John
>
> On Fri, Jan 8, 2016 at 3:48 PM, robert.craig.2 at us.af.mil via RT <
> met_help at ucar.edu> wrote:
>
> >
> > Fri Jan 08 15:48:02 2016: Request 74658 was acted upon.
> > Transaction: Ticket created by robert.craig.2 at us.af.mil
> >        Queue: met_help
> >      Subject: unrecognized grib parameter
> >        Owner: Nobody
> >   Requestors: robert.craig.2 at us.af.mil
> >       Status: new
> >  Ticket <URL:
> > https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=74658
> > >
> >
> >
> > John, I am running some ensemble data through grid_stat, MET 5.1.
I
> > am specifically running PQP1 (probability of precip gt .01).
Below
> > is an exert from the nceptab_flat.txt file in data/table_files
directory:
> >
> > 254 2 "RI" "Richardson number" "non-dim"
> > 255 2 "var255" "undefined" ""
> > 206 3 "PQP1" "Probability of 6-hour precipitation > .01" "%"
> > 222 3 "QP010" "Probability of 6-hour Precipitation > .10" "%"
> > 223 3 "QP025" "Probability of 6-hour Precipitation > .25" "%"
> > 224 3 "QP050" "Probability of 6-hour Precipitation > .50" "%"
> > 226 3 "QP100" "Probability of 6-hour Precipitation > 1" "%"
> > 0 128 "var0" "undefined" ""
> > 1 128 "PRES" "Pressure" "Pa"
> > 2 128 "PRMSL" "Pressure reduced to MSL" "Pa"
> >
> > My grid_stat_config file has the following:
> >
> >
> >
////////////////////////////////////////////////////////////////////
> > //
> > //////////
> > //
> > // Grid-Stat configuration file.
> > //
> > // For additional information, see the MET_BASE/config/README
file.
> > //
> >
> >
////////////////////////////////////////////////////////////////////
> > //
> > //////////
> >
> > //
> > // Output model name to be written
> > //
> > model = "WRF";
> >
> > obtype = "ANALYS";
> >
> >
> >
> >
////////////////////////////////////////////////////////////////////
> > //
> > //////////
> >
> > //
> > // Verification grid
> > //
> > regrid = {
> >    to_grid    = FCST;
> >    vld_thresh = 0.5;
> >    method     = NEAREST;
> >    width      = 1;
> > }
> >
> >
> >
////////////////////////////////////////////////////////////////////
> > //
> > //////////
> >
> > cat_thresh  = [ NA ];
> > cnt_thresh  = [ NA ];
> > cnt_logic   = UNION;
> > wind_thresh = [ NA ];
> > wind_logic  = UNION;
> > prob=[ "True" ];
> > //
> > // Forecast and observation fields to be verified // fcst = {
> >    wind_thresh = [ NA ];
> >
> >    field = [
> >       {
> >         name       = "PQP1";
> >         level      = [ "A06" ];
> >        GRIB1_ptv  = 3;
> >         cat_thresh = [ > 0 ];
> >       }
> >    ];
> >
> > }
> > obs = {
> >    wind_thresh = [ NA ];
> >
> >    field = [
> >      {
> >         name       = "APCP_06";
> >         level      = [ "(*,*)" ];
> >         cat_thresh = [ > 0 ];
> >      }
> >    ];
> > }
> >
> > When I run, I get the following message:
> >
> > [1219 qcteam dev8dlsn1 /h/WXQC/met-5.1] bin/grid_stat
> >
/h/data/global/WXQC/data/jme_verify/qcsave/probs/CONUS/2016010400/gr
> > ib
> > .2016010400.0006
> > /h/data/global/WXQC/data/fss/precip_6 /h/WXQ> DEBUG 1: Default
> > Config
> > File:
> > /home/qcteam/met-5.1/share/met/config/GridStatConfig_default
> > DEBUG 1: User Config File:
> > /h/WXQC/met-5.1/data/config/GridStatConfig_pop01
> > ERROR  :
> > ERROR  : VarInfoGrib::set_dict() - unrecognized GRIB1 field
> > abbreviation 'PQP1' for table version 3 ERROR  :
> >
> > The data record PQP1 is in the grib file I am reading.
> >
> > Any indeas?
> >
> > thanks
> >
> > Bob Craig
> >
> >
> >
>
>
>
>



------------------------------------------------


More information about the Met_help mailing list