[Met_help] [rt.rap.ucar.edu #79581] History for MODE config file difficulties
John Halley Gotway via RT
met_help at ucar.edu
Tue Feb 21 14:50:35 MST 2017
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
Hello again.
I'm getting a syntax error when running mode coming from my config file
(attached)
[jdduda at schooner1 MODE]$ ./mode
/scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_2016052500.nc
MODE_refl_config
DEBUG 1: Default Config File:
/home/jdduda/tool/met/share/met/config/MODEConfig_default
DEBUG 1: Match Config File: MODE_refl_config
DEBUG 1: Merge Config File: MODE_refl_config
ERROR :
ERROR : yyerror() -> syntax error in file "MODE_refl_config"
ERROR :
ERROR : line = 55
ERROR :
ERROR : column = 30
ERROR :
ERROR : text = "/"
ERROR :
ERROR :
ERROR : conv_radius =
[100.0/grid_res,50.0/grid_res,15.0/grid_res]; // in grid squares
ERROR :
_____________________________^_________________________________________________________
ERROR :
I tried changing conv_radius to 15.0/grid_res for both the forecast and obs
and got this:
[jdduda at schooner1 MODE]$ ./mode
/scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_2016052500.nc
MODE_refl_config
DEBUG 1: Default Config File:
/home/jdduda/tool/met/share/met/config/MODEConfig_default
DEBUG 1: Match Config File: MODE_refl_config
DEBUG 1: Merge Config File: MODE_refl_config
WARNING:
WARNING: Multiple GRIB2 table entries match lookup criteria (parm_name =
REFC):
WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 0, grib2_cntr = 7,
grib2_ltab = 1, index_b = 16, index_c = 196
WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 1, grib2_cntr = 0,
grib2_ltab = 0, index_b = 16, index_c = 5
WARNING: Using: parm_name: REFC, index_a = 0, grib2_mtab = 0, grib2_cntr
= 7, grib2_ltab = 1, index_b = 16, index_c = 196
WARNING:
ERROR :
ERROR : ModeConfInfo::process_config() -> fcst and obs convolution
threshold arrays need to be the same size
ERROR :
Which just makes no sense to me. I don't think my eyes are *that* bad.
Also, to address the warning in the second run, here is the output from
wgrib2 for the forecast array I"m verfying:
2:1736296:00Z25may2016:REFC Composite reflectivity [dB]:lvl1=(10,0)
lvl2=(255,missing):entire atmosphere:anl:
Did I specify the level correctly?
Please help. Thanks.
Jeff
--
Jeff Duda
Post-doctoral research fellow
University of Oklahoma School of Meteorology
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: MODE config file difficulties
From: John Halley Gotway
Time: Tue Feb 21 09:56:40 2017
Jeff,
Thanks for letting us know about the parsing error. I tested that out
and
was able to replicate the error you're seeing. Variable substitution
within an array in the config file isn't working.
For now, please just do the math and put in the actual convolution
radius
you'd like to use. So replace:
conv_radius = [ 100.0/grid_res,50.0/grid_res,15.0/grid_res ];
with (assuming gird_res = 5)
conv_radius = [ 20, 10, 3 ];
I'll create a ticket for this bug and hopefully we'll get this issue
resolved in the next release.
Thanks,
John
On Mon, Feb 20, 2017 at 9:09 PM, Jeff Duda via RT <met_help at ucar.edu>
wrote:
>
> Mon Feb 20 21:09:52 2017: Request 79581 was acted upon.
> Transaction: Ticket created by jeffduda319 at gmail.com
> Queue: met_help
> Subject: MODE config file difficulties
> Owner: Nobody
> Requestors: jeffduda319 at gmail.com
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
>
>
> Hello again.
>
> I'm getting a syntax error when running mode coming from my config
file
> (attached)
>
> [jdduda at schooner1 MODE]$ ./mode
> /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
>
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_2016052500.nc
> MODE_refl_config
> DEBUG 1: Default Config File:
> /home/jdduda/tool/met/share/met/config/MODEConfig_default
> DEBUG 1: Match Config File: MODE_refl_config
> DEBUG 1: Merge Config File: MODE_refl_config
> ERROR :
> ERROR : yyerror() -> syntax error in file "MODE_refl_config"
> ERROR :
> ERROR : line = 55
> ERROR :
> ERROR : column = 30
> ERROR :
> ERROR : text = "/"
> ERROR :
> ERROR :
> ERROR : conv_radius =
> [100.0/grid_res,50.0/grid_res,15.0/grid_res]; // in grid squares
> ERROR :
> _____________________________^______________________________
> ___________________________
> ERROR :
>
> I tried changing conv_radius to 15.0/grid_res for both the forecast
and obs
> and got this:
>
> [jdduda at schooner1 MODE]$ ./mode
> /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
>
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_2016052500.nc
> MODE_refl_config
> DEBUG 1: Default Config File:
> /home/jdduda/tool/met/share/met/config/MODEConfig_default
> DEBUG 1: Match Config File: MODE_refl_config
> DEBUG 1: Merge Config File: MODE_refl_config
> WARNING:
> WARNING: Multiple GRIB2 table entries match lookup criteria
(parm_name =
> REFC):
> WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 0, grib2_cntr
= 7,
> grib2_ltab = 1, index_b = 16, index_c = 196
> WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 1, grib2_cntr
= 0,
> grib2_ltab = 0, index_b = 16, index_c = 5
> WARNING: Using: parm_name: REFC, index_a = 0, grib2_mtab = 0,
grib2_cntr
> = 7, grib2_ltab = 1, index_b = 16, index_c = 196
> WARNING:
> ERROR :
> ERROR : ModeConfInfo::process_config() -> fcst and obs convolution
> threshold arrays need to be the same size
> ERROR :
>
> Which just makes no sense to me. I don't think my eyes are *that*
bad.
>
> Also, to address the warning in the second run, here is the output
from
> wgrib2 for the forecast array I"m verfying:
> 2:1736296:00Z25may2016:REFC Composite reflectivity [dB]:lvl1=(10,0)
> lvl2=(255,missing):entire atmosphere:anl:
>
> Did I specify the level correctly?
>
> Please help. Thanks.
>
> Jeff
> --
> Jeff Duda
> Post-doctoral research fellow
> University of Oklahoma School of Meteorology
>
>
------------------------------------------------
Subject: MODE config file difficulties
From: Jeff Duda
Time: Tue Feb 21 09:57:55 2017
John,
Thanks. Real quick before we close this ticket - are non-integer
convolution radii values acceptable?
Jeff
On Tue, Feb 21, 2017 at 10:56 AM, John Halley Gotway via RT <
met_help at ucar.edu> wrote:
> Jeff,
>
> Thanks for letting us know about the parsing error. I tested that
out and
> was able to replicate the error you're seeing. Variable
substitution
> within an array in the config file isn't working.
>
> For now, please just do the math and put in the actual convolution
radius
> you'd like to use. So replace:
> conv_radius = [ 100.0/grid_res,50.0/grid_res,15.0/grid_res ];
>
> with (assuming gird_res = 5)
>
> conv_radius = [ 20, 10, 3 ];
>
> I'll create a ticket for this bug and hopefully we'll get this issue
> resolved in the next release.
>
> Thanks,
> John
>
>
>
> On Mon, Feb 20, 2017 at 9:09 PM, Jeff Duda via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > Mon Feb 20 21:09:52 2017: Request 79581 was acted upon.
> > Transaction: Ticket created by jeffduda319 at gmail.com
> > Queue: met_help
> > Subject: MODE config file difficulties
> > Owner: Nobody
> > Requestors: jeffduda319 at gmail.com
> > Status: new
> > Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
> >
> >
> > Hello again.
> >
> > I'm getting a syntax error when running mode coming from my config
file
> > (attached)
> >
> > [jdduda at schooner1 MODE]$ ./mode
> > /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
> >
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_2016052500.nc
> > MODE_refl_config
> > DEBUG 1: Default Config File:
> > /home/jdduda/tool/met/share/met/config/MODEConfig_default
> > DEBUG 1: Match Config File: MODE_refl_config
> > DEBUG 1: Merge Config File: MODE_refl_config
> > ERROR :
> > ERROR : yyerror() -> syntax error in file "MODE_refl_config"
> > ERROR :
> > ERROR : line = 55
> > ERROR :
> > ERROR : column = 30
> > ERROR :
> > ERROR : text = "/"
> > ERROR :
> > ERROR :
> > ERROR : conv_radius =
> > [100.0/grid_res,50.0/grid_res,15.0/grid_res]; // in grid squares
> > ERROR :
> > _____________________________^______________________________
> > ___________________________
> > ERROR :
> >
> > I tried changing conv_radius to 15.0/grid_res for both the
forecast and
> obs
> > and got this:
> >
> > [jdduda at schooner1 MODE]$ ./mode
> > /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
> >
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_2016052500.nc
> > MODE_refl_config
> > DEBUG 1: Default Config File:
> > /home/jdduda/tool/met/share/met/config/MODEConfig_default
> > DEBUG 1: Match Config File: MODE_refl_config
> > DEBUG 1: Merge Config File: MODE_refl_config
> > WARNING:
> > WARNING: Multiple GRIB2 table entries match lookup criteria
(parm_name =
> > REFC):
> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 0,
grib2_cntr = 7,
> > grib2_ltab = 1, index_b = 16, index_c = 196
> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 1,
grib2_cntr = 0,
> > grib2_ltab = 0, index_b = 16, index_c = 5
> > WARNING: Using: parm_name: REFC, index_a = 0, grib2_mtab = 0,
> grib2_cntr
> > = 7, grib2_ltab = 1, index_b = 16, index_c = 196
> > WARNING:
> > ERROR :
> > ERROR : ModeConfInfo::process_config() -> fcst and obs
convolution
> > threshold arrays need to be the same size
> > ERROR :
> >
> > Which just makes no sense to me. I don't think my eyes are *that*
bad.
> >
> > Also, to address the warning in the second run, here is the output
from
> > wgrib2 for the forecast array I"m verfying:
> > 2:1736296:00Z25may2016:REFC Composite reflectivity
[dB]:lvl1=(10,0)
> > lvl2=(255,missing):entire atmosphere:anl:
> >
> > Did I specify the level correctly?
> >
> > Please help. Thanks.
> >
> > Jeff
> > --
> > Jeff Duda
> > Post-doctoral research fellow
> > University of Oklahoma School of Meteorology
> >
> >
>
>
--
Jeff Duda
Post-doctoral research fellow
University of Oklahoma School of Meteorology
------------------------------------------------
Subject: MODE config file difficulties
From: Jeff Duda
Time: Tue Feb 21 10:18:03 2017
Okay, more problems now. MODE seems to be pretty sensitive to the
variable
type I put in. I put in mixed-type of integers and reals for
conv_radius
and it gave me this:
ERROR :
ERROR : DictionaryEntry::d_value() -> bad type
ERROR :
I changed the conv_radius entry to just integer types: conv_radius
= [33,17,5]; // in grid squares
and got this
ERROR :
ERROR : ModeConfInfo::process_config() -> fcst and obs convolution
radius
arrays need to be the same size
ERROR :
Both those arrays have size 3 as far as I can tell:
conv_thresh = [>=19,>=29,>=39];
conv_thresh = [>=19,>=29,>=39];
I've tried messing with this with "quilt" set to both TRUE and FALSE.
The
behavior is the same.
Jeff
On Tue, Feb 21, 2017 at 10:57 AM, Jeff Duda <jeffduda319 at gmail.com>
wrote:
> John,
> Thanks. Real quick before we close this ticket - are non-integer
> convolution radii values acceptable?
>
> Jeff
>
> On Tue, Feb 21, 2017 at 10:56 AM, John Halley Gotway via RT <
> met_help at ucar.edu> wrote:
>
>> Jeff,
>>
>> Thanks for letting us know about the parsing error. I tested that
out and
>> was able to replicate the error you're seeing. Variable
substitution
>> within an array in the config file isn't working.
>>
>> For now, please just do the math and put in the actual convolution
radius
>> you'd like to use. So replace:
>> conv_radius = [ 100.0/grid_res,50.0/grid_res,15.0/grid_res ];
>>
>> with (assuming gird_res = 5)
>>
>> conv_radius = [ 20, 10, 3 ];
>>
>> I'll create a ticket for this bug and hopefully we'll get this
issue
>> resolved in the next release.
>>
>> Thanks,
>> John
>>
>>
>>
>> On Mon, Feb 20, 2017 at 9:09 PM, Jeff Duda via RT
<met_help at ucar.edu>
>> wrote:
>>
>> >
>> > Mon Feb 20 21:09:52 2017: Request 79581 was acted upon.
>> > Transaction: Ticket created by jeffduda319 at gmail.com
>> > Queue: met_help
>> > Subject: MODE config file difficulties
>> > Owner: Nobody
>> > Requestors: jeffduda319 at gmail.com
>> > Status: new
>> > Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
>> >
>> >
>> > Hello again.
>> >
>> > I'm getting a syntax error when running mode coming from my
config file
>> > (attached)
>> >
>> > [jdduda at schooner1 MODE]$ ./mode
>> > /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
>> >
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_2016052500.nc
>> > MODE_refl_config
>> > DEBUG 1: Default Config File:
>> > /home/jdduda/tool/met/share/met/config/MODEConfig_default
>> > DEBUG 1: Match Config File: MODE_refl_config
>> > DEBUG 1: Merge Config File: MODE_refl_config
>> > ERROR :
>> > ERROR : yyerror() -> syntax error in file "MODE_refl_config"
>> > ERROR :
>> > ERROR : line = 55
>> > ERROR :
>> > ERROR : column = 30
>> > ERROR :
>> > ERROR : text = "/"
>> > ERROR :
>> > ERROR :
>> > ERROR : conv_radius =
>> > [100.0/grid_res,50.0/grid_res,15.0/grid_res]; // in grid squares
>> > ERROR :
>> > _____________________________^______________________________
>> > ___________________________
>> > ERROR :
>> >
>> > I tried changing conv_radius to 15.0/grid_res for both the
forecast and
>> obs
>> > and got this:
>> >
>> > [jdduda at schooner1 MODE]$ ./mode
>> > /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
>> >
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_2016052500.nc
>> > MODE_refl_config
>> > DEBUG 1: Default Config File:
>> > /home/jdduda/tool/met/share/met/config/MODEConfig_default
>> > DEBUG 1: Match Config File: MODE_refl_config
>> > DEBUG 1: Merge Config File: MODE_refl_config
>> > WARNING:
>> > WARNING: Multiple GRIB2 table entries match lookup criteria
(parm_name =
>> > REFC):
>> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 0,
grib2_cntr = 7,
>> > grib2_ltab = 1, index_b = 16, index_c = 196
>> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 1,
grib2_cntr = 0,
>> > grib2_ltab = 0, index_b = 16, index_c = 5
>> > WARNING: Using: parm_name: REFC, index_a = 0, grib2_mtab = 0,
>> grib2_cntr
>> > = 7, grib2_ltab = 1, index_b = 16, index_c = 196
>> > WARNING:
>> > ERROR :
>> > ERROR : ModeConfInfo::process_config() -> fcst and obs
convolution
>> > threshold arrays need to be the same size
>> > ERROR :
>> >
>> > Which just makes no sense to me. I don't think my eyes are *that*
bad.
>> >
>> > Also, to address the warning in the second run, here is the
output from
>> > wgrib2 for the forecast array I"m verfying:
>> > 2:1736296:00Z25may2016:REFC Composite reflectivity
[dB]:lvl1=(10,0)
>> > lvl2=(255,missing):entire atmosphere:anl:
>> >
>> > Did I specify the level correctly?
>> >
>> > Please help. Thanks.
>> >
>> > Jeff
>> > --
>> > Jeff Duda
>> > Post-doctoral research fellow
>> > University of Oklahoma School of Meteorology
>> >
>> >
>>
>>
>
>
> --
> Jeff Duda
> Post-doctoral research fellow
> University of Oklahoma School of Meteorology
>
--
Jeff Duda
Post-doctoral research fellow
University of Oklahoma School of Meteorology
------------------------------------------------
Subject: MODE config file difficulties
From: John Halley Gotway
Time: Tue Feb 21 11:24:25 2017
Jeff,
I see that you're dealing with the following error message:
ERROR :
ERROR : ModeConfInfo::process_config() -> fcst and obs convolution
radius
arrays need to be the same size
ERROR :
When you run MODE, you can specify separate radii and thresholds to be
applied to the forecast and observation fields. For example, perhaps
you
want to smooth the observation fields more prior to comparing it to
the
forecast.
And as of MET version 5.2, MODE supports multiple convolution radii
and
thresholds. However, regardless of how the quilt option is set, the
number
of forecast radii and thresholds must mach the number of observation
radii
and threshold.
It is possible that there's a bug in the error check but please make
sure
that the number of entries for the conv_radius and conv_thresh arrays
are
the same in the "fcst" and "obs" sections of the config file.
If so, please send me a copy of the problematic config file, and I'll
be
happy to take a look.
Thanks,
John
On Tue, Feb 21, 2017 at 10:18 AM, Jeff Duda via RT <met_help at ucar.edu>
wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
>
> Okay, more problems now. MODE seems to be pretty sensitive to the
variable
> type I put in. I put in mixed-type of integers and reals for
conv_radius
> and it gave me this:
> ERROR :
> ERROR : DictionaryEntry::d_value() -> bad type
> ERROR :
>
> I changed the conv_radius entry to just integer types:
conv_radius
> = [33,17,5]; // in grid squares
>
> and got this
>
> ERROR :
> ERROR : ModeConfInfo::process_config() -> fcst and obs convolution
radius
> arrays need to be the same size
> ERROR :
>
> Both those arrays have size 3 as far as I can tell:
> conv_thresh = [>=19,>=29,>=39];
> conv_thresh = [>=19,>=29,>=39];
>
> I've tried messing with this with "quilt" set to both TRUE and
FALSE. The
> behavior is the same.
>
> Jeff
>
>
>
> On Tue, Feb 21, 2017 at 10:57 AM, Jeff Duda <jeffduda319 at gmail.com>
wrote:
>
> > John,
> > Thanks. Real quick before we close this ticket - are non-integer
> > convolution radii values acceptable?
> >
> > Jeff
> >
> > On Tue, Feb 21, 2017 at 10:56 AM, John Halley Gotway via RT <
> > met_help at ucar.edu> wrote:
> >
> >> Jeff,
> >>
> >> Thanks for letting us know about the parsing error. I tested
that out
> and
> >> was able to replicate the error you're seeing. Variable
substitution
> >> within an array in the config file isn't working.
> >>
> >> For now, please just do the math and put in the actual
convolution
> radius
> >> you'd like to use. So replace:
> >> conv_radius = [ 100.0/grid_res,50.0/grid_res,15.0/grid_res ];
> >>
> >> with (assuming gird_res = 5)
> >>
> >> conv_radius = [ 20, 10, 3 ];
> >>
> >> I'll create a ticket for this bug and hopefully we'll get this
issue
> >> resolved in the next release.
> >>
> >> Thanks,
> >> John
> >>
> >>
> >>
> >> On Mon, Feb 20, 2017 at 9:09 PM, Jeff Duda via RT
<met_help at ucar.edu>
> >> wrote:
> >>
> >> >
> >> > Mon Feb 20 21:09:52 2017: Request 79581 was acted upon.
> >> > Transaction: Ticket created by jeffduda319 at gmail.com
> >> > Queue: met_help
> >> > Subject: MODE config file difficulties
> >> > Owner: Nobody
> >> > Requestors: jeffduda319 at gmail.com
> >> > Status: new
> >> > Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581
> >
> >> >
> >> >
> >> > Hello again.
> >> >
> >> > I'm getting a syntax error when running mode coming from my
config
> file
> >> > (attached)
> >> >
> >> > [jdduda at schooner1 MODE]$ ./mode
> >> > /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
> >> >
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_2016052500.
> nc
> >> > MODE_refl_config
> >> > DEBUG 1: Default Config File:
> >> > /home/jdduda/tool/met/share/met/config/MODEConfig_default
> >> > DEBUG 1: Match Config File: MODE_refl_config
> >> > DEBUG 1: Merge Config File: MODE_refl_config
> >> > ERROR :
> >> > ERROR : yyerror() -> syntax error in file "MODE_refl_config"
> >> > ERROR :
> >> > ERROR : line = 55
> >> > ERROR :
> >> > ERROR : column = 30
> >> > ERROR :
> >> > ERROR : text = "/"
> >> > ERROR :
> >> > ERROR :
> >> > ERROR : conv_radius =
> >> > [100.0/grid_res,50.0/grid_res,15.0/grid_res]; // in grid
squares
> >> > ERROR :
> >> > _____________________________^______________________________
> >> > ___________________________
> >> > ERROR :
> >> >
> >> > I tried changing conv_radius to 15.0/grid_res for both the
forecast
> and
> >> obs
> >> > and got this:
> >> >
> >> > [jdduda at schooner1 MODE]$ ./mode
> >> > /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
> >> >
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_2016052500.
> nc
> >> > MODE_refl_config
> >> > DEBUG 1: Default Config File:
> >> > /home/jdduda/tool/met/share/met/config/MODEConfig_default
> >> > DEBUG 1: Match Config File: MODE_refl_config
> >> > DEBUG 1: Merge Config File: MODE_refl_config
> >> > WARNING:
> >> > WARNING: Multiple GRIB2 table entries match lookup criteria
> (parm_name =
> >> > REFC):
> >> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 0,
grib2_cntr =
> 7,
> >> > grib2_ltab = 1, index_b = 16, index_c = 196
> >> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 1,
grib2_cntr =
> 0,
> >> > grib2_ltab = 0, index_b = 16, index_c = 5
> >> > WARNING: Using: parm_name: REFC, index_a = 0, grib2_mtab = 0,
> >> grib2_cntr
> >> > = 7, grib2_ltab = 1, index_b = 16, index_c = 196
> >> > WARNING:
> >> > ERROR :
> >> > ERROR : ModeConfInfo::process_config() -> fcst and obs
convolution
> >> > threshold arrays need to be the same size
> >> > ERROR :
> >> >
> >> > Which just makes no sense to me. I don't think my eyes are
*that* bad.
> >> >
> >> > Also, to address the warning in the second run, here is the
output
> from
> >> > wgrib2 for the forecast array I"m verfying:
> >> > 2:1736296:00Z25may2016:REFC Composite reflectivity
[dB]:lvl1=(10,0)
> >> > lvl2=(255,missing):entire atmosphere:anl:
> >> >
> >> > Did I specify the level correctly?
> >> >
> >> > Please help. Thanks.
> >> >
> >> > Jeff
> >> > --
> >> > Jeff Duda
> >> > Post-doctoral research fellow
> >> > University of Oklahoma School of Meteorology
> >> >
> >> >
> >>
> >>
> >
> >
> > --
> > Jeff Duda
> > Post-doctoral research fellow
> > University of Oklahoma School of Meteorology
> >
>
>
>
> --
> Jeff Duda
> Post-doctoral research fellow
> University of Oklahoma School of Meteorology
>
>
------------------------------------------------
Subject: MODE config file difficulties
From: Jeff Duda
Time: Tue Feb 21 13:03:50 2017
John,
Okay. Here is a config file which results in the error.
Also, I found a typo in the v5.2 User's Guide: The description for the
fields to verify in GRIB2 format points to a table at this URL:
http://www.nco.ncep.noaa.gov/pmb/docs/on388/table2.html. This URL does
not
exist, but I think I found the new place for it:
http://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc.shtml. However,
there
is no Table 2 at this new site.
Jeff
On Tue, Feb 21, 2017 at 12:24 PM, John Halley Gotway via RT <
met_help at ucar.edu> wrote:
> Jeff,
>
> I see that you're dealing with the following error message:
>
> ERROR :
> ERROR : ModeConfInfo::process_config() -> fcst and obs convolution
radius
> arrays need to be the same size
> ERROR :
>
> When you run MODE, you can specify separate radii and thresholds to
be
> applied to the forecast and observation fields. For example,
perhaps you
> want to smooth the observation fields more prior to comparing it to
the
> forecast.
>
> And as of MET version 5.2, MODE supports multiple convolution radii
and
> thresholds. However, regardless of how the quilt option is set, the
number
> of forecast radii and thresholds must mach the number of observation
radii
> and threshold.
>
> It is possible that there's a bug in the error check but please make
sure
> that the number of entries for the conv_radius and conv_thresh
arrays are
> the same in the "fcst" and "obs" sections of the config file.
>
> If so, please send me a copy of the problematic config file, and
I'll be
> happy to take a look.
>
> Thanks,
> John
>
>
> On Tue, Feb 21, 2017 at 10:18 AM, Jeff Duda via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
> >
> > Okay, more problems now. MODE seems to be pretty sensitive to the
> variable
> > type I put in. I put in mixed-type of integers and reals for
conv_radius
> > and it gave me this:
> > ERROR :
> > ERROR : DictionaryEntry::d_value() -> bad type
> > ERROR :
> >
> > I changed the conv_radius entry to just integer types:
conv_radius
> > = [33,17,5]; // in grid squares
> >
> > and got this
> >
> > ERROR :
> > ERROR : ModeConfInfo::process_config() -> fcst and obs
convolution
> radius
> > arrays need to be the same size
> > ERROR :
> >
> > Both those arrays have size 3 as far as I can tell:
> > conv_thresh = [>=19,>=29,>=39];
> > conv_thresh = [>=19,>=29,>=39];
> >
> > I've tried messing with this with "quilt" set to both TRUE and
FALSE. The
> > behavior is the same.
> >
> > Jeff
> >
> >
> >
> > On Tue, Feb 21, 2017 at 10:57 AM, Jeff Duda
<jeffduda319 at gmail.com>
> wrote:
> >
> > > John,
> > > Thanks. Real quick before we close this ticket - are non-integer
> > > convolution radii values acceptable?
> > >
> > > Jeff
> > >
> > > On Tue, Feb 21, 2017 at 10:56 AM, John Halley Gotway via RT <
> > > met_help at ucar.edu> wrote:
> > >
> > >> Jeff,
> > >>
> > >> Thanks for letting us know about the parsing error. I tested
that out
> > and
> > >> was able to replicate the error you're seeing. Variable
substitution
> > >> within an array in the config file isn't working.
> > >>
> > >> For now, please just do the math and put in the actual
convolution
> > radius
> > >> you'd like to use. So replace:
> > >> conv_radius = [ 100.0/grid_res,50.0/grid_res,15.0/grid_res ];
> > >>
> > >> with (assuming gird_res = 5)
> > >>
> > >> conv_radius = [ 20, 10, 3 ];
> > >>
> > >> I'll create a ticket for this bug and hopefully we'll get this
issue
> > >> resolved in the next release.
> > >>
> > >> Thanks,
> > >> John
> > >>
> > >>
> > >>
> > >> On Mon, Feb 20, 2017 at 9:09 PM, Jeff Duda via RT
<met_help at ucar.edu>
> > >> wrote:
> > >>
> > >> >
> > >> > Mon Feb 20 21:09:52 2017: Request 79581 was acted upon.
> > >> > Transaction: Ticket created by jeffduda319 at gmail.com
> > >> > Queue: met_help
> > >> > Subject: MODE config file difficulties
> > >> > Owner: Nobody
> > >> > Requestors: jeffduda319 at gmail.com
> > >> > Status: new
> > >> > Ticket <URL: https://rt.rap.ucar.edu/rt/
> Ticket/Display.html?id=79581
> > >
> > >> >
> > >> >
> > >> > Hello again.
> > >> >
> > >> > I'm getting a syntax error when running mode coming from my
config
> > file
> > >> > (attached)
> > >> >
> > >> > [jdduda at schooner1 MODE]$ ./mode
> > >> > /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
> > >> > /condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_
> 2016052500.
> > nc
> > >> > MODE_refl_config
> > >> > DEBUG 1: Default Config File:
> > >> > /home/jdduda/tool/met/share/met/config/MODEConfig_default
> > >> > DEBUG 1: Match Config File: MODE_refl_config
> > >> > DEBUG 1: Merge Config File: MODE_refl_config
> > >> > ERROR :
> > >> > ERROR : yyerror() -> syntax error in file "MODE_refl_config"
> > >> > ERROR :
> > >> > ERROR : line = 55
> > >> > ERROR :
> > >> > ERROR : column = 30
> > >> > ERROR :
> > >> > ERROR : text = "/"
> > >> > ERROR :
> > >> > ERROR :
> > >> > ERROR : conv_radius =
> > >> > [100.0/grid_res,50.0/grid_res,15.0/grid_res]; // in grid
squares
> > >> > ERROR :
> > >> > _____________________________^______________________________
> > >> > ___________________________
> > >> > ERROR :
> > >> >
> > >> > I tried changing conv_radius to 15.0/grid_res for both the
forecast
> > and
> > >> obs
> > >> > and got this:
> > >> >
> > >> > [jdduda at schooner1 MODE]$ ./mode
> > >> > /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
> > >> > /condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_
> 2016052500.
> > nc
> > >> > MODE_refl_config
> > >> > DEBUG 1: Default Config File:
> > >> > /home/jdduda/tool/met/share/met/config/MODEConfig_default
> > >> > DEBUG 1: Match Config File: MODE_refl_config
> > >> > DEBUG 1: Merge Config File: MODE_refl_config
> > >> > WARNING:
> > >> > WARNING: Multiple GRIB2 table entries match lookup criteria
> > (parm_name =
> > >> > REFC):
> > >> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 0,
grib2_cntr
> =
> > 7,
> > >> > grib2_ltab = 1, index_b = 16, index_c = 196
> > >> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 1,
grib2_cntr
> =
> > 0,
> > >> > grib2_ltab = 0, index_b = 16, index_c = 5
> > >> > WARNING: Using: parm_name: REFC, index_a = 0, grib2_mtab =
0,
> > >> grib2_cntr
> > >> > = 7, grib2_ltab = 1, index_b = 16, index_c = 196
> > >> > WARNING:
> > >> > ERROR :
> > >> > ERROR : ModeConfInfo::process_config() -> fcst and obs
convolution
> > >> > threshold arrays need to be the same size
> > >> > ERROR :
> > >> >
> > >> > Which just makes no sense to me. I don't think my eyes are
*that*
> bad.
> > >> >
> > >> > Also, to address the warning in the second run, here is the
output
> > from
> > >> > wgrib2 for the forecast array I"m verfying:
> > >> > 2:1736296:00Z25may2016:REFC Composite reflectivity
[dB]:lvl1=(10,0)
> > >> > lvl2=(255,missing):entire atmosphere:anl:
> > >> >
> > >> > Did I specify the level correctly?
> > >> >
> > >> > Please help. Thanks.
> > >> >
> > >> > Jeff
> > >> > --
> > >> > Jeff Duda
> > >> > Post-doctoral research fellow
> > >> > University of Oklahoma School of Meteorology
> > >> >
> > >> >
> > >>
> > >>
> > >
> > >
> > > --
> > > Jeff Duda
> > > Post-doctoral research fellow
> > > University of Oklahoma School of Meteorology
> > >
> >
> >
> >
> > --
> > Jeff Duda
> > Post-doctoral research fellow
> > University of Oklahoma School of Meteorology
> >
> >
>
>
--
Jeff Duda
Post-doctoral research fellow
University of Oklahoma School of Meteorology
------------------------------------------------
Subject: MODE config file difficulties
From: John Halley Gotway
Time: Tue Feb 21 13:18:06 2017
Jeff,
Good news. We found the source of the parsing of arrays of
expressions
("60/grid_res") and updated the parser code to handle it. That fix
will be
included in the next release. Thanks for pointing out the problem.
And I see the issue in your config file. It's just a misplaced curly
brace. Here's your current "obs" settings:
obs = {
field = {
name = "MRMS_compref";
level = "(*,*)";
raw_thresh = NA;
conv_radius = [33,17,5]; // in grid squares
conv_thresh = [>=19.0,>=29.0,>=39.0];
vld_thresh = 0.5;
area_thresh = NA;
inten_perc_value = 100;
inten_perc_thresh = NA;
merge_thresh = [NA,NA,>=30.0];
merge_flag = ENGINE;
}
}
The 2nd to last curly brace should moved up to come right after the
"name"
and "level" setting, just like it is in the forecast setting:
obs = {
field = {
name = "MRMS_compref";
level = "(*,*)";
}
raw_thresh = NA;
conv_radius = [33,17,5]; // in grid squares
conv_thresh = [>=19.0,>=29.0,>=39.0];
vld_thresh = 0.5;
area_thresh = NA;
inten_perc_value = 100;
inten_perc_thresh = NA;
merge_thresh = [NA,NA,>=30.0];
merge_flag = ENGINE;
}
With the misplaced curly brace, those settings were not defined in the
right context. MODE (like all the other MET tools) reads a default
configuration file prior to reading the user's which is passed in on
the
command line. By this logic, users actually only need to specify
settings
which differ from the default configuration. Since these settings
were
defined in the wrong context, your "conv_radius" and "conv_thresh"
settings
failed to override the default values... which have length 1. And
that
resulted in your error message.
Sometimes the overriding of default values is a nice feature, but
other
times (like this example) they just make it more confusing.
Hopefully that fixes this issue.
Thanks,
John
On Tue, Feb 21, 2017 at 1:03 PM, Jeff Duda via RT <met_help at ucar.edu>
wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
>
> John,
> Okay. Here is a config file which results in the error.
>
> Also, I found a typo in the v5.2 User's Guide: The description for
the
> fields to verify in GRIB2 format points to a table at this URL:
> http://www.nco.ncep.noaa.gov/pmb/docs/on388/table2.html. This URL
does not
> exist, but I think I found the new place for it:
> http://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc.shtml.
However,
> there
> is no Table 2 at this new site.
>
> Jeff
>
> On Tue, Feb 21, 2017 at 12:24 PM, John Halley Gotway via RT <
> met_help at ucar.edu> wrote:
>
> > Jeff,
> >
> > I see that you're dealing with the following error message:
> >
> > ERROR :
> > ERROR : ModeConfInfo::process_config() -> fcst and obs
convolution
> radius
> > arrays need to be the same size
> > ERROR :
> >
> > When you run MODE, you can specify separate radii and thresholds
to be
> > applied to the forecast and observation fields. For example,
perhaps you
> > want to smooth the observation fields more prior to comparing it
to the
> > forecast.
> >
> > And as of MET version 5.2, MODE supports multiple convolution
radii and
> > thresholds. However, regardless of how the quilt option is set,
the
> number
> > of forecast radii and thresholds must mach the number of
observation
> radii
> > and threshold.
> >
> > It is possible that there's a bug in the error check but please
make sure
> > that the number of entries for the conv_radius and conv_thresh
arrays are
> > the same in the "fcst" and "obs" sections of the config file.
> >
> > If so, please send me a copy of the problematic config file, and
I'll be
> > happy to take a look.
> >
> > Thanks,
> > John
> >
> >
> > On Tue, Feb 21, 2017 at 10:18 AM, Jeff Duda via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
> > >
> > > Okay, more problems now. MODE seems to be pretty sensitive to
the
> > variable
> > > type I put in. I put in mixed-type of integers and reals for
> conv_radius
> > > and it gave me this:
> > > ERROR :
> > > ERROR : DictionaryEntry::d_value() -> bad type
> > > ERROR :
> > >
> > > I changed the conv_radius entry to just integer types:
conv_radius
> > > = [33,17,5]; // in grid squares
> > >
> > > and got this
> > >
> > > ERROR :
> > > ERROR : ModeConfInfo::process_config() -> fcst and obs
convolution
> > radius
> > > arrays need to be the same size
> > > ERROR :
> > >
> > > Both those arrays have size 3 as far as I can tell:
> > > conv_thresh = [>=19,>=29,>=39];
> > > conv_thresh = [>=19,>=29,>=39];
> > >
> > > I've tried messing with this with "quilt" set to both TRUE and
FALSE.
> The
> > > behavior is the same.
> > >
> > > Jeff
> > >
> > >
> > >
> > > On Tue, Feb 21, 2017 at 10:57 AM, Jeff Duda
<jeffduda319 at gmail.com>
> > wrote:
> > >
> > > > John,
> > > > Thanks. Real quick before we close this ticket - are non-
integer
> > > > convolution radii values acceptable?
> > > >
> > > > Jeff
> > > >
> > > > On Tue, Feb 21, 2017 at 10:56 AM, John Halley Gotway via RT <
> > > > met_help at ucar.edu> wrote:
> > > >
> > > >> Jeff,
> > > >>
> > > >> Thanks for letting us know about the parsing error. I tested
that
> out
> > > and
> > > >> was able to replicate the error you're seeing. Variable
> substitution
> > > >> within an array in the config file isn't working.
> > > >>
> > > >> For now, please just do the math and put in the actual
convolution
> > > radius
> > > >> you'd like to use. So replace:
> > > >> conv_radius = [ 100.0/grid_res,50.0/grid_res,15.0/grid_res ];
> > > >>
> > > >> with (assuming gird_res = 5)
> > > >>
> > > >> conv_radius = [ 20, 10, 3 ];
> > > >>
> > > >> I'll create a ticket for this bug and hopefully we'll get
this issue
> > > >> resolved in the next release.
> > > >>
> > > >> Thanks,
> > > >> John
> > > >>
> > > >>
> > > >>
> > > >> On Mon, Feb 20, 2017 at 9:09 PM, Jeff Duda via RT <
> met_help at ucar.edu>
> > > >> wrote:
> > > >>
> > > >> >
> > > >> > Mon Feb 20 21:09:52 2017: Request 79581 was acted upon.
> > > >> > Transaction: Ticket created by jeffduda319 at gmail.com
> > > >> > Queue: met_help
> > > >> > Subject: MODE config file difficulties
> > > >> > Owner: Nobody
> > > >> > Requestors: jeffduda319 at gmail.com
> > > >> > Status: new
> > > >> > Ticket <URL: https://rt.rap.ucar.edu/rt/
> > Ticket/Display.html?id=79581
> > > >
> > > >> >
> > > >> >
> > > >> > Hello again.
> > > >> >
> > > >> > I'm getting a syntax error when running mode coming from my
config
> > > file
> > > >> > (attached)
> > > >> >
> > > >> > [jdduda at schooner1 MODE]$ ./mode
> > > >> > /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
> > > >> > /condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_
> > 2016052500.
> > > nc
> > > >> > MODE_refl_config
> > > >> > DEBUG 1: Default Config File:
> > > >> > /home/jdduda/tool/met/share/met/config/MODEConfig_default
> > > >> > DEBUG 1: Match Config File: MODE_refl_config
> > > >> > DEBUG 1: Merge Config File: MODE_refl_config
> > > >> > ERROR :
> > > >> > ERROR : yyerror() -> syntax error in file
"MODE_refl_config"
> > > >> > ERROR :
> > > >> > ERROR : line = 55
> > > >> > ERROR :
> > > >> > ERROR : column = 30
> > > >> > ERROR :
> > > >> > ERROR : text = "/"
> > > >> > ERROR :
> > > >> > ERROR :
> > > >> > ERROR : conv_radius =
> > > >> > [100.0/grid_res,50.0/grid_res,15.0/grid_res]; // in grid
squares
> > > >> > ERROR :
> > > >> >
_____________________________^______________________________
> > > >> > ___________________________
> > > >> > ERROR :
> > > >> >
> > > >> > I tried changing conv_radius to 15.0/grid_res for both the
> forecast
> > > and
> > > >> obs
> > > >> > and got this:
> > > >> >
> > > >> > [jdduda at schooner1 MODE]$ ./mode
> > > >> > /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
> > > >> > /condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_
> > 2016052500.
> > > nc
> > > >> > MODE_refl_config
> > > >> > DEBUG 1: Default Config File:
> > > >> > /home/jdduda/tool/met/share/met/config/MODEConfig_default
> > > >> > DEBUG 1: Match Config File: MODE_refl_config
> > > >> > DEBUG 1: Merge Config File: MODE_refl_config
> > > >> > WARNING:
> > > >> > WARNING: Multiple GRIB2 table entries match lookup criteria
> > > (parm_name =
> > > >> > REFC):
> > > >> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 0,
> grib2_cntr
> > =
> > > 7,
> > > >> > grib2_ltab = 1, index_b = 16, index_c = 196
> > > >> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 1,
> grib2_cntr
> > =
> > > 0,
> > > >> > grib2_ltab = 0, index_b = 16, index_c = 5
> > > >> > WARNING: Using: parm_name: REFC, index_a = 0, grib2_mtab
= 0,
> > > >> grib2_cntr
> > > >> > = 7, grib2_ltab = 1, index_b = 16, index_c = 196
> > > >> > WARNING:
> > > >> > ERROR :
> > > >> > ERROR : ModeConfInfo::process_config() -> fcst and obs
> convolution
> > > >> > threshold arrays need to be the same size
> > > >> > ERROR :
> > > >> >
> > > >> > Which just makes no sense to me. I don't think my eyes are
*that*
> > bad.
> > > >> >
> > > >> > Also, to address the warning in the second run, here is the
output
> > > from
> > > >> > wgrib2 for the forecast array I"m verfying:
> > > >> > 2:1736296:00Z25may2016:REFC Composite reflectivity
> [dB]:lvl1=(10,0)
> > > >> > lvl2=(255,missing):entire atmosphere:anl:
> > > >> >
> > > >> > Did I specify the level correctly?
> > > >> >
> > > >> > Please help. Thanks.
> > > >> >
> > > >> > Jeff
> > > >> > --
> > > >> > Jeff Duda
> > > >> > Post-doctoral research fellow
> > > >> > University of Oklahoma School of Meteorology
> > > >> >
> > > >> >
> > > >>
> > > >>
> > > >
> > > >
> > > > --
> > > > Jeff Duda
> > > > Post-doctoral research fellow
> > > > University of Oklahoma School of Meteorology
> > > >
> > >
> > >
> > >
> > > --
> > > Jeff Duda
> > > Post-doctoral research fellow
> > > University of Oklahoma School of Meteorology
> > >
> > >
> >
> >
>
>
> --
> Jeff Duda
> Post-doctoral research fellow
> University of Oklahoma School of Meteorology
>
>
------------------------------------------------
Subject: MODE config file difficulties
From: Jeff Duda
Time: Tue Feb 21 13:25:56 2017
John,
Thanks. Another one, though. Getting a syntax error in a custom color
table
file I created. I've attached the color table file. Where is the
error?
DEBUG 1: Loading forecast raw color table:
/home/jdduda/MODE/radar_refl.ctable
syntax error in file "/home/jdduda/MODE/radar_refl.ctable"
line = 353
color_file_column = 14
text = "l92"
On Tue, Feb 21, 2017 at 2:18 PM, John Halley Gotway via RT <
met_help at ucar.edu> wrote:
> Jeff,
>
> Good news. We found the source of the parsing of arrays of
expressions
> ("60/grid_res") and updated the parser code to handle it. That fix
will be
> included in the next release. Thanks for pointing out the problem.
>
> And I see the issue in your config file. It's just a misplaced
curly
> brace. Here's your current "obs" settings:
>
> obs = {
> field = {
> name = "MRMS_compref";
> level = "(*,*)";
>
> raw_thresh = NA;
> conv_radius = [33,17,5]; // in grid squares
> conv_thresh = [>=19.0,>=29.0,>=39.0];
> vld_thresh = 0.5;
> area_thresh = NA;
> inten_perc_value = 100;
> inten_perc_thresh = NA;
> merge_thresh = [NA,NA,>=30.0];
> merge_flag = ENGINE;
>
> }
> }
>
> The 2nd to last curly brace should moved up to come right after the
"name"
> and "level" setting, just like it is in the forecast setting:
>
> obs = {
> field = {
> name = "MRMS_compref";
> level = "(*,*)";
> }
>
> raw_thresh = NA;
> conv_radius = [33,17,5]; // in grid squares
> conv_thresh = [>=19.0,>=29.0,>=39.0];
> vld_thresh = 0.5;
> area_thresh = NA;
> inten_perc_value = 100;
> inten_perc_thresh = NA;
> merge_thresh = [NA,NA,>=30.0];
> merge_flag = ENGINE;
>
> }
>
> With the misplaced curly brace, those settings were not defined in
the
> right context. MODE (like all the other MET tools) reads a default
> configuration file prior to reading the user's which is passed in on
the
> command line. By this logic, users actually only need to specify
settings
> which differ from the default configuration. Since these settings
were
> defined in the wrong context, your "conv_radius" and "conv_thresh"
settings
> failed to override the default values... which have length 1. And
that
> resulted in your error message.
>
> Sometimes the overriding of default values is a nice feature, but
other
> times (like this example) they just make it more confusing.
>
> Hopefully that fixes this issue.
>
> Thanks,
> John
>
> On Tue, Feb 21, 2017 at 1:03 PM, Jeff Duda via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
> >
> > John,
> > Okay. Here is a config file which results in the error.
> >
> > Also, I found a typo in the v5.2 User's Guide: The description for
the
> > fields to verify in GRIB2 format points to a table at this URL:
> > http://www.nco.ncep.noaa.gov/pmb/docs/on388/table2.html. This URL
does
> not
> > exist, but I think I found the new place for it:
> > http://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc.shtml.
However,
> > there
> > is no Table 2 at this new site.
> >
> > Jeff
> >
> > On Tue, Feb 21, 2017 at 12:24 PM, John Halley Gotway via RT <
> > met_help at ucar.edu> wrote:
> >
> > > Jeff,
> > >
> > > I see that you're dealing with the following error message:
> > >
> > > ERROR :
> > > ERROR : ModeConfInfo::process_config() -> fcst and obs
convolution
> > radius
> > > arrays need to be the same size
> > > ERROR :
> > >
> > > When you run MODE, you can specify separate radii and thresholds
to be
> > > applied to the forecast and observation fields. For example,
perhaps
> you
> > > want to smooth the observation fields more prior to comparing it
to the
> > > forecast.
> > >
> > > And as of MET version 5.2, MODE supports multiple convolution
radii and
> > > thresholds. However, regardless of how the quilt option is set,
the
> > number
> > > of forecast radii and thresholds must mach the number of
observation
> > radii
> > > and threshold.
> > >
> > > It is possible that there's a bug in the error check but please
make
> sure
> > > that the number of entries for the conv_radius and conv_thresh
arrays
> are
> > > the same in the "fcst" and "obs" sections of the config file.
> > >
> > > If so, please send me a copy of the problematic config file, and
I'll
> be
> > > happy to take a look.
> > >
> > > Thanks,
> > > John
> > >
> > >
> > > On Tue, Feb 21, 2017 at 10:18 AM, Jeff Duda via RT
<met_help at ucar.edu>
> > > wrote:
> > >
> > > >
> > > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581
>
> > > >
> > > > Okay, more problems now. MODE seems to be pretty sensitive to
the
> > > variable
> > > > type I put in. I put in mixed-type of integers and reals for
> > conv_radius
> > > > and it gave me this:
> > > > ERROR :
> > > > ERROR : DictionaryEntry::d_value() -> bad type
> > > > ERROR :
> > > >
> > > > I changed the conv_radius entry to just integer types:
conv_radius
> > > > = [33,17,5]; // in grid squares
> > > >
> > > > and got this
> > > >
> > > > ERROR :
> > > > ERROR : ModeConfInfo::process_config() -> fcst and obs
convolution
> > > radius
> > > > arrays need to be the same size
> > > > ERROR :
> > > >
> > > > Both those arrays have size 3 as far as I can tell:
> > > > conv_thresh = [>=19,>=29,>=39];
> > > > conv_thresh = [>=19,>=29,>=39];
> > > >
> > > > I've tried messing with this with "quilt" set to both TRUE and
FALSE.
> > The
> > > > behavior is the same.
> > > >
> > > > Jeff
> > > >
> > > >
> > > >
> > > > On Tue, Feb 21, 2017 at 10:57 AM, Jeff Duda
<jeffduda319 at gmail.com>
> > > wrote:
> > > >
> > > > > John,
> > > > > Thanks. Real quick before we close this ticket - are non-
integer
> > > > > convolution radii values acceptable?
> > > > >
> > > > > Jeff
> > > > >
> > > > > On Tue, Feb 21, 2017 at 10:56 AM, John Halley Gotway via RT
<
> > > > > met_help at ucar.edu> wrote:
> > > > >
> > > > >> Jeff,
> > > > >>
> > > > >> Thanks for letting us know about the parsing error. I
tested that
> > out
> > > > and
> > > > >> was able to replicate the error you're seeing. Variable
> > substitution
> > > > >> within an array in the config file isn't working.
> > > > >>
> > > > >> For now, please just do the math and put in the actual
convolution
> > > > radius
> > > > >> you'd like to use. So replace:
> > > > >> conv_radius = [ 100.0/grid_res,50.0/grid_res,15.0/grid_res
];
> > > > >>
> > > > >> with (assuming gird_res = 5)
> > > > >>
> > > > >> conv_radius = [ 20, 10, 3 ];
> > > > >>
> > > > >> I'll create a ticket for this bug and hopefully we'll get
this
> issue
> > > > >> resolved in the next release.
> > > > >>
> > > > >> Thanks,
> > > > >> John
> > > > >>
> > > > >>
> > > > >>
> > > > >> On Mon, Feb 20, 2017 at 9:09 PM, Jeff Duda via RT <
> > met_help at ucar.edu>
> > > > >> wrote:
> > > > >>
> > > > >> >
> > > > >> > Mon Feb 20 21:09:52 2017: Request 79581 was acted upon.
> > > > >> > Transaction: Ticket created by jeffduda319 at gmail.com
> > > > >> > Queue: met_help
> > > > >> > Subject: MODE config file difficulties
> > > > >> > Owner: Nobody
> > > > >> > Requestors: jeffduda319 at gmail.com
> > > > >> > Status: new
> > > > >> > Ticket <URL: https://rt.rap.ucar.edu/rt/
> > > Ticket/Display.html?id=79581
> > > > >
> > > > >> >
> > > > >> >
> > > > >> > Hello again.
> > > > >> >
> > > > >> > I'm getting a syntax error when running mode coming from
my
> config
> > > > file
> > > > >> > (attached)
> > > > >> >
> > > > >> > [jdduda at schooner1 MODE]$ ./mode
> > > > >> > /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
> > > > >> >
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_
> > > 2016052500.
> > > > nc
> > > > >> > MODE_refl_config
> > > > >> > DEBUG 1: Default Config File:
> > > > >> > /home/jdduda/tool/met/share/met/config/MODEConfig_default
> > > > >> > DEBUG 1: Match Config File: MODE_refl_config
> > > > >> > DEBUG 1: Merge Config File: MODE_refl_config
> > > > >> > ERROR :
> > > > >> > ERROR : yyerror() -> syntax error in file
"MODE_refl_config"
> > > > >> > ERROR :
> > > > >> > ERROR : line = 55
> > > > >> > ERROR :
> > > > >> > ERROR : column = 30
> > > > >> > ERROR :
> > > > >> > ERROR : text = "/"
> > > > >> > ERROR :
> > > > >> > ERROR :
> > > > >> > ERROR : conv_radius =
> > > > >> > [100.0/grid_res,50.0/grid_res,15.0/grid_res]; // in grid
> squares
> > > > >> > ERROR :
> > > > >> >
_____________________________^______________________________
> > > > >> > ___________________________
> > > > >> > ERROR :
> > > > >> >
> > > > >> > I tried changing conv_radius to 15.0/grid_res for both
the
> > forecast
> > > > and
> > > > >> obs
> > > > >> > and got this:
> > > > >> >
> > > > >> > [jdduda at schooner1 MODE]$ ./mode
> > > > >> > /scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
> > > > >> >
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_
> > > 2016052500.
> > > > nc
> > > > >> > MODE_refl_config
> > > > >> > DEBUG 1: Default Config File:
> > > > >> > /home/jdduda/tool/met/share/met/config/MODEConfig_default
> > > > >> > DEBUG 1: Match Config File: MODE_refl_config
> > > > >> > DEBUG 1: Merge Config File: MODE_refl_config
> > > > >> > WARNING:
> > > > >> > WARNING: Multiple GRIB2 table entries match lookup
criteria
> > > > (parm_name =
> > > > >> > REFC):
> > > > >> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 0,
> > grib2_cntr
> > > =
> > > > 7,
> > > > >> > grib2_ltab = 1, index_b = 16, index_c = 196
> > > > >> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab = 1,
> > grib2_cntr
> > > =
> > > > 0,
> > > > >> > grib2_ltab = 0, index_b = 16, index_c = 5
> > > > >> > WARNING: Using: parm_name: REFC, index_a = 0,
grib2_mtab = 0,
> > > > >> grib2_cntr
> > > > >> > = 7, grib2_ltab = 1, index_b = 16, index_c = 196
> > > > >> > WARNING:
> > > > >> > ERROR :
> > > > >> > ERROR : ModeConfInfo::process_config() -> fcst and obs
> > convolution
> > > > >> > threshold arrays need to be the same size
> > > > >> > ERROR :
> > > > >> >
> > > > >> > Which just makes no sense to me. I don't think my eyes
are
> *that*
> > > bad.
> > > > >> >
> > > > >> > Also, to address the warning in the second run, here is
the
> output
> > > > from
> > > > >> > wgrib2 for the forecast array I"m verfying:
> > > > >> > 2:1736296:00Z25may2016:REFC Composite reflectivity
> > [dB]:lvl1=(10,0)
> > > > >> > lvl2=(255,missing):entire atmosphere:anl:
> > > > >> >
> > > > >> > Did I specify the level correctly?
> > > > >> >
> > > > >> > Please help. Thanks.
> > > > >> >
> > > > >> > Jeff
> > > > >> > --
> > > > >> > Jeff Duda
> > > > >> > Post-doctoral research fellow
> > > > >> > University of Oklahoma School of Meteorology
> > > > >> >
> > > > >> >
> > > > >>
> > > > >>
> > > > >
> > > > >
> > > > > --
> > > > > Jeff Duda
> > > > > Post-doctoral research fellow
> > > > > University of Oklahoma School of Meteorology
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Jeff Duda
> > > > Post-doctoral research fellow
> > > > University of Oklahoma School of Meteorology
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > Jeff Duda
> > Post-doctoral research fellow
> > University of Oklahoma School of Meteorology
> >
> >
>
>
--
Jeff Duda
Post-doctoral research fellow
University of Oklahoma School of Meteorology
------------------------------------------------
Subject: MODE config file difficulties
From: John Halley Gotway
Time: Tue Feb 21 13:37:35 2017
Jeff,
Thanks for sending that sample color table file. You have a typo on
line
number 11:
40 45 { 231, l92, 0 }
You have lower-case letter L where you intend to have a "1" in the
number
192.
Thanks,
John
On Tue, Feb 21, 2017 at 1:25 PM, Jeff Duda via RT <met_help at ucar.edu>
wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
>
> John,
> Thanks. Another one, though. Getting a syntax error in a custom
color table
> file I created. I've attached the color table file. Where is the
error?
>
> DEBUG 1: Loading forecast raw color table:
> /home/jdduda/MODE/radar_refl.ctable
>
>
> syntax error in file "/home/jdduda/MODE/radar_refl.ctable"
>
> line = 353
>
> color_file_column = 14
>
> text = "l92"
>
>
> On Tue, Feb 21, 2017 at 2:18 PM, John Halley Gotway via RT <
> met_help at ucar.edu> wrote:
>
> > Jeff,
> >
> > Good news. We found the source of the parsing of arrays of
expressions
> > ("60/grid_res") and updated the parser code to handle it. That
fix will
> be
> > included in the next release. Thanks for pointing out the
problem.
> >
> > And I see the issue in your config file. It's just a misplaced
curly
> > brace. Here's your current "obs" settings:
> >
> > obs = {
> > field = {
> > name = "MRMS_compref";
> > level = "(*,*)";
> >
> > raw_thresh = NA;
> > conv_radius = [33,17,5]; // in grid squares
> > conv_thresh = [>=19.0,>=29.0,>=39.0];
> > vld_thresh = 0.5;
> > area_thresh = NA;
> > inten_perc_value = 100;
> > inten_perc_thresh = NA;
> > merge_thresh = [NA,NA,>=30.0];
> > merge_flag = ENGINE;
> >
> > }
> > }
> >
> > The 2nd to last curly brace should moved up to come right after
the
> "name"
> > and "level" setting, just like it is in the forecast setting:
> >
> > obs = {
> > field = {
> > name = "MRMS_compref";
> > level = "(*,*)";
> > }
> >
> > raw_thresh = NA;
> > conv_radius = [33,17,5]; // in grid squares
> > conv_thresh = [>=19.0,>=29.0,>=39.0];
> > vld_thresh = 0.5;
> > area_thresh = NA;
> > inten_perc_value = 100;
> > inten_perc_thresh = NA;
> > merge_thresh = [NA,NA,>=30.0];
> > merge_flag = ENGINE;
> >
> > }
> >
> > With the misplaced curly brace, those settings were not defined in
the
> > right context. MODE (like all the other MET tools) reads a
default
> > configuration file prior to reading the user's which is passed in
on the
> > command line. By this logic, users actually only need to specify
> settings
> > which differ from the default configuration. Since these settings
were
> > defined in the wrong context, your "conv_radius" and "conv_thresh"
> settings
> > failed to override the default values... which have length 1. And
that
> > resulted in your error message.
> >
> > Sometimes the overriding of default values is a nice feature, but
other
> > times (like this example) they just make it more confusing.
> >
> > Hopefully that fixes this issue.
> >
> > Thanks,
> > John
> >
> > On Tue, Feb 21, 2017 at 1:03 PM, Jeff Duda via RT
<met_help at ucar.edu>
> > wrote:
> >
> > >
> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
> > >
> > > John,
> > > Okay. Here is a config file which results in the error.
> > >
> > > Also, I found a typo in the v5.2 User's Guide: The description
for the
> > > fields to verify in GRIB2 format points to a table at this URL:
> > > http://www.nco.ncep.noaa.gov/pmb/docs/on388/table2.html. This
URL does
> > not
> > > exist, but I think I found the new place for it:
> > > http://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc.shtml.
However,
> > > there
> > > is no Table 2 at this new site.
> > >
> > > Jeff
> > >
> > > On Tue, Feb 21, 2017 at 12:24 PM, John Halley Gotway via RT <
> > > met_help at ucar.edu> wrote:
> > >
> > > > Jeff,
> > > >
> > > > I see that you're dealing with the following error message:
> > > >
> > > > ERROR :
> > > > ERROR : ModeConfInfo::process_config() -> fcst and obs
convolution
> > > radius
> > > > arrays need to be the same size
> > > > ERROR :
> > > >
> > > > When you run MODE, you can specify separate radii and
thresholds to
> be
> > > > applied to the forecast and observation fields. For example,
perhaps
> > you
> > > > want to smooth the observation fields more prior to comparing
it to
> the
> > > > forecast.
> > > >
> > > > And as of MET version 5.2, MODE supports multiple convolution
radii
> and
> > > > thresholds. However, regardless of how the quilt option is
set, the
> > > number
> > > > of forecast radii and thresholds must mach the number of
observation
> > > radii
> > > > and threshold.
> > > >
> > > > It is possible that there's a bug in the error check but
please make
> > sure
> > > > that the number of entries for the conv_radius and conv_thresh
arrays
> > are
> > > > the same in the "fcst" and "obs" sections of the config file.
> > > >
> > > > If so, please send me a copy of the problematic config file,
and I'll
> > be
> > > > happy to take a look.
> > > >
> > > > Thanks,
> > > > John
> > > >
> > > >
> > > > On Tue, Feb 21, 2017 at 10:18 AM, Jeff Duda via RT <
> met_help at ucar.edu>
> > > > wrote:
> > > >
> > > > >
> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
> > > > >
> > > > > Okay, more problems now. MODE seems to be pretty sensitive
to the
> > > > variable
> > > > > type I put in. I put in mixed-type of integers and reals for
> > > conv_radius
> > > > > and it gave me this:
> > > > > ERROR :
> > > > > ERROR : DictionaryEntry::d_value() -> bad type
> > > > > ERROR :
> > > > >
> > > > > I changed the conv_radius entry to just integer types:
> conv_radius
> > > > > = [33,17,5]; // in grid squares
> > > > >
> > > > > and got this
> > > > >
> > > > > ERROR :
> > > > > ERROR : ModeConfInfo::process_config() -> fcst and obs
convolution
> > > > radius
> > > > > arrays need to be the same size
> > > > > ERROR :
> > > > >
> > > > > Both those arrays have size 3 as far as I can tell:
> > > > > conv_thresh = [>=19,>=29,>=39];
> > > > > conv_thresh = [>=19,>=29,>=39];
> > > > >
> > > > > I've tried messing with this with "quilt" set to both TRUE
and
> FALSE.
> > > The
> > > > > behavior is the same.
> > > > >
> > > > > Jeff
> > > > >
> > > > >
> > > > >
> > > > > On Tue, Feb 21, 2017 at 10:57 AM, Jeff Duda
<jeffduda319 at gmail.com
> >
> > > > wrote:
> > > > >
> > > > > > John,
> > > > > > Thanks. Real quick before we close this ticket - are non-
integer
> > > > > > convolution radii values acceptable?
> > > > > >
> > > > > > Jeff
> > > > > >
> > > > > > On Tue, Feb 21, 2017 at 10:56 AM, John Halley Gotway via
RT <
> > > > > > met_help at ucar.edu> wrote:
> > > > > >
> > > > > >> Jeff,
> > > > > >>
> > > > > >> Thanks for letting us know about the parsing error. I
tested
> that
> > > out
> > > > > and
> > > > > >> was able to replicate the error you're seeing. Variable
> > > substitution
> > > > > >> within an array in the config file isn't working.
> > > > > >>
> > > > > >> For now, please just do the math and put in the actual
> convolution
> > > > > radius
> > > > > >> you'd like to use. So replace:
> > > > > >> conv_radius = [
100.0/grid_res,50.0/grid_res,15.0/grid_res ];
> > > > > >>
> > > > > >> with (assuming gird_res = 5)
> > > > > >>
> > > > > >> conv_radius = [ 20, 10, 3 ];
> > > > > >>
> > > > > >> I'll create a ticket for this bug and hopefully we'll get
this
> > issue
> > > > > >> resolved in the next release.
> > > > > >>
> > > > > >> Thanks,
> > > > > >> John
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> On Mon, Feb 20, 2017 at 9:09 PM, Jeff Duda via RT <
> > > met_help at ucar.edu>
> > > > > >> wrote:
> > > > > >>
> > > > > >> >
> > > > > >> > Mon Feb 20 21:09:52 2017: Request 79581 was acted upon.
> > > > > >> > Transaction: Ticket created by jeffduda319 at gmail.com
> > > > > >> > Queue: met_help
> > > > > >> > Subject: MODE config file difficulties
> > > > > >> > Owner: Nobody
> > > > > >> > Requestors: jeffduda319 at gmail.com
> > > > > >> > Status: new
> > > > > >> > Ticket <URL: https://rt.rap.ucar.edu/rt/
> > > > Ticket/Display.html?id=79581
> > > > > >
> > > > > >> >
> > > > > >> >
> > > > > >> > Hello again.
> > > > > >> >
> > > > > >> > I'm getting a syntax error when running mode coming
from my
> > config
> > > > > file
> > > > > >> > (attached)
> > > > > >> >
> > > > > >> > [jdduda at schooner1 MODE]$ ./mode
> > > > > >> >
/scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
> > > > > >> >
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_
> > > > 2016052500.
> > > > > nc
> > > > > >> > MODE_refl_config
> > > > > >> > DEBUG 1: Default Config File:
> > > > > >> >
/home/jdduda/tool/met/share/met/config/MODEConfig_default
> > > > > >> > DEBUG 1: Match Config File: MODE_refl_config
> > > > > >> > DEBUG 1: Merge Config File: MODE_refl_config
> > > > > >> > ERROR :
> > > > > >> > ERROR : yyerror() -> syntax error in file
"MODE_refl_config"
> > > > > >> > ERROR :
> > > > > >> > ERROR : line = 55
> > > > > >> > ERROR :
> > > > > >> > ERROR : column = 30
> > > > > >> > ERROR :
> > > > > >> > ERROR : text = "/"
> > > > > >> > ERROR :
> > > > > >> > ERROR :
> > > > > >> > ERROR : conv_radius =
> > > > > >> > [100.0/grid_res,50.0/grid_res,15.0/grid_res]; // in
grid
> > squares
> > > > > >> > ERROR :
> > > > > >> >
_____________________________^______________________________
> > > > > >> > ___________________________
> > > > > >> > ERROR :
> > > > > >> >
> > > > > >> > I tried changing conv_radius to 15.0/grid_res for both
the
> > > forecast
> > > > > and
> > > > > >> obs
> > > > > >> > and got this:
> > > > > >> >
> > > > > >> > [jdduda at schooner1 MODE]$ ./mode
> > > > > >> >
/scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
> > > > > >> >
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_
> > > > 2016052500.
> > > > > nc
> > > > > >> > MODE_refl_config
> > > > > >> > DEBUG 1: Default Config File:
> > > > > >> >
/home/jdduda/tool/met/share/met/config/MODEConfig_default
> > > > > >> > DEBUG 1: Match Config File: MODE_refl_config
> > > > > >> > DEBUG 1: Merge Config File: MODE_refl_config
> > > > > >> > WARNING:
> > > > > >> > WARNING: Multiple GRIB2 table entries match lookup
criteria
> > > > > (parm_name =
> > > > > >> > REFC):
> > > > > >> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab =
0,
> > > grib2_cntr
> > > > =
> > > > > 7,
> > > > > >> > grib2_ltab = 1, index_b = 16, index_c = 196
> > > > > >> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab =
1,
> > > grib2_cntr
> > > > =
> > > > > 0,
> > > > > >> > grib2_ltab = 0, index_b = 16, index_c = 5
> > > > > >> > WARNING: Using: parm_name: REFC, index_a = 0,
grib2_mtab =
> 0,
> > > > > >> grib2_cntr
> > > > > >> > = 7, grib2_ltab = 1, index_b = 16, index_c = 196
> > > > > >> > WARNING:
> > > > > >> > ERROR :
> > > > > >> > ERROR : ModeConfInfo::process_config() -> fcst and obs
> > > convolution
> > > > > >> > threshold arrays need to be the same size
> > > > > >> > ERROR :
> > > > > >> >
> > > > > >> > Which just makes no sense to me. I don't think my eyes
are
> > *that*
> > > > bad.
> > > > > >> >
> > > > > >> > Also, to address the warning in the second run, here is
the
> > output
> > > > > from
> > > > > >> > wgrib2 for the forecast array I"m verfying:
> > > > > >> > 2:1736296:00Z25may2016:REFC Composite reflectivity
> > > [dB]:lvl1=(10,0)
> > > > > >> > lvl2=(255,missing):entire atmosphere:anl:
> > > > > >> >
> > > > > >> > Did I specify the level correctly?
> > > > > >> >
> > > > > >> > Please help. Thanks.
> > > > > >> >
> > > > > >> > Jeff
> > > > > >> > --
> > > > > >> > Jeff Duda
> > > > > >> > Post-doctoral research fellow
> > > > > >> > University of Oklahoma School of Meteorology
> > > > > >> >
> > > > > >> >
> > > > > >>
> > > > > >>
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Jeff Duda
> > > > > > Post-doctoral research fellow
> > > > > > University of Oklahoma School of Meteorology
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Jeff Duda
> > > > > Post-doctoral research fellow
> > > > > University of Oklahoma School of Meteorology
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Jeff Duda
> > > Post-doctoral research fellow
> > > University of Oklahoma School of Meteorology
> > >
> > >
> >
> >
>
>
> --
> Jeff Duda
> Post-doctoral research fellow
> University of Oklahoma School of Meteorology
>
>
------------------------------------------------
Subject: MODE config file difficulties
From: John Halley Gotway
Time: Tue Feb 21 14:17:01 2017
Jeff,
Sorry, I realized that I'd failed to respond to your other point.
Thanks
for pointing out the problem with the URL for GRIB2. I'll updated the
documentation for the version 6.0 release.
You're right, there is no table 2 for GRIB2. The details are much
simpler
for GRIB1 and can all (basically) fit into a single table. For GRIB2,
the
specification of a variable is split into 3 numbers... discipline,
category, and parameter.
For example, "Skin Temperature" is discipline 0 (meteorological
products),
category 0 (temperature), and parameter 17 (skin temp):
http://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_table4-2-0-
0.shtml
We always use the wgrib2 utility to index GRIB2 files and dump out
information about the records.
Thanks,
John
On Tue, Feb 21, 2017 at 1:37 PM, John Halley Gotway <johnhg at ucar.edu>
wrote:
> Jeff,
>
> Thanks for sending that sample color table file. You have a typo on
line
> number 11:
> 40 45 { 231, l92, 0 }
>
> You have lower-case letter L where you intend to have a "1" in the
number
> 192.
>
> Thanks,
> John
>
> On Tue, Feb 21, 2017 at 1:25 PM, Jeff Duda via RT
<met_help at ucar.edu>
> wrote:
>
>>
>> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
>>
>> John,
>> Thanks. Another one, though. Getting a syntax error in a custom
color
>> table
>> file I created. I've attached the color table file. Where is the
error?
>>
>> DEBUG 1: Loading forecast raw color table:
>> /home/jdduda/MODE/radar_refl.ctable
>>
>>
>> syntax error in file "/home/jdduda/MODE/radar_refl.ctable"
>>
>> line = 353
>>
>> color_file_column = 14
>>
>> text = "l92"
>>
>>
>> On Tue, Feb 21, 2017 at 2:18 PM, John Halley Gotway via RT <
>> met_help at ucar.edu> wrote:
>>
>> > Jeff,
>> >
>> > Good news. We found the source of the parsing of arrays of
expressions
>> > ("60/grid_res") and updated the parser code to handle it. That
fix
>> will be
>> > included in the next release. Thanks for pointing out the
problem.
>> >
>> > And I see the issue in your config file. It's just a misplaced
curly
>> > brace. Here's your current "obs" settings:
>> >
>> > obs = {
>> > field = {
>> > name = "MRMS_compref";
>> > level = "(*,*)";
>> >
>> > raw_thresh = NA;
>> > conv_radius = [33,17,5]; // in grid squares
>> > conv_thresh = [>=19.0,>=29.0,>=39.0];
>> > vld_thresh = 0.5;
>> > area_thresh = NA;
>> > inten_perc_value = 100;
>> > inten_perc_thresh = NA;
>> > merge_thresh = [NA,NA,>=30.0];
>> > merge_flag = ENGINE;
>> >
>> > }
>> > }
>> >
>> > The 2nd to last curly brace should moved up to come right after
the
>> "name"
>> > and "level" setting, just like it is in the forecast setting:
>> >
>> > obs = {
>> > field = {
>> > name = "MRMS_compref";
>> > level = "(*,*)";
>> > }
>> >
>> > raw_thresh = NA;
>> > conv_radius = [33,17,5]; // in grid squares
>> > conv_thresh = [>=19.0,>=29.0,>=39.0];
>> > vld_thresh = 0.5;
>> > area_thresh = NA;
>> > inten_perc_value = 100;
>> > inten_perc_thresh = NA;
>> > merge_thresh = [NA,NA,>=30.0];
>> > merge_flag = ENGINE;
>> >
>> > }
>> >
>> > With the misplaced curly brace, those settings were not defined
in the
>> > right context. MODE (like all the other MET tools) reads a
default
>> > configuration file prior to reading the user's which is passed in
on the
>> > command line. By this logic, users actually only need to specify
>> settings
>> > which differ from the default configuration. Since these
settings were
>> > defined in the wrong context, your "conv_radius" and
"conv_thresh"
>> settings
>> > failed to override the default values... which have length 1.
And that
>> > resulted in your error message.
>> >
>> > Sometimes the overriding of default values is a nice feature, but
other
>> > times (like this example) they just make it more confusing.
>> >
>> > Hopefully that fixes this issue.
>> >
>> > Thanks,
>> > John
>> >
>> > On Tue, Feb 21, 2017 at 1:03 PM, Jeff Duda via RT
<met_help at ucar.edu>
>> > wrote:
>> >
>> > >
>> > > <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
>> > >
>> > > John,
>> > > Okay. Here is a config file which results in the error.
>> > >
>> > > Also, I found a typo in the v5.2 User's Guide: The description
for the
>> > > fields to verify in GRIB2 format points to a table at this URL:
>> > > http://www.nco.ncep.noaa.gov/pmb/docs/on388/table2.html. This
URL
>> does
>> > not
>> > > exist, but I think I found the new place for it:
>> > > http://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_doc.shtml.
However,
>> > > there
>> > > is no Table 2 at this new site.
>> > >
>> > > Jeff
>> > >
>> > > On Tue, Feb 21, 2017 at 12:24 PM, John Halley Gotway via RT <
>> > > met_help at ucar.edu> wrote:
>> > >
>> > > > Jeff,
>> > > >
>> > > > I see that you're dealing with the following error message:
>> > > >
>> > > > ERROR :
>> > > > ERROR : ModeConfInfo::process_config() -> fcst and obs
convolution
>> > > radius
>> > > > arrays need to be the same size
>> > > > ERROR :
>> > > >
>> > > > When you run MODE, you can specify separate radii and
thresholds to
>> be
>> > > > applied to the forecast and observation fields. For example,
>> perhaps
>> > you
>> > > > want to smooth the observation fields more prior to comparing
it to
>> the
>> > > > forecast.
>> > > >
>> > > > And as of MET version 5.2, MODE supports multiple convolution
radii
>> and
>> > > > thresholds. However, regardless of how the quilt option is
set, the
>> > > number
>> > > > of forecast radii and thresholds must mach the number of
observation
>> > > radii
>> > > > and threshold.
>> > > >
>> > > > It is possible that there's a bug in the error check but
please make
>> > sure
>> > > > that the number of entries for the conv_radius and
conv_thresh
>> arrays
>> > are
>> > > > the same in the "fcst" and "obs" sections of the config file.
>> > > >
>> > > > If so, please send me a copy of the problematic config file,
and
>> I'll
>> > be
>> > > > happy to take a look.
>> > > >
>> > > > Thanks,
>> > > > John
>> > > >
>> > > >
>> > > > On Tue, Feb 21, 2017 at 10:18 AM, Jeff Duda via RT <
>> met_help at ucar.edu>
>> > > > wrote:
>> > > >
>> > > > >
>> > > > > <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=79581 >
>> > > > >
>> > > > > Okay, more problems now. MODE seems to be pretty sensitive
to the
>> > > > variable
>> > > > > type I put in. I put in mixed-type of integers and reals
for
>> > > conv_radius
>> > > > > and it gave me this:
>> > > > > ERROR :
>> > > > > ERROR : DictionaryEntry::d_value() -> bad type
>> > > > > ERROR :
>> > > > >
>> > > > > I changed the conv_radius entry to just integer types:
>> conv_radius
>> > > > > = [33,17,5]; // in grid squares
>> > > > >
>> > > > > and got this
>> > > > >
>> > > > > ERROR :
>> > > > > ERROR : ModeConfInfo::process_config() -> fcst and obs
>> convolution
>> > > > radius
>> > > > > arrays need to be the same size
>> > > > > ERROR :
>> > > > >
>> > > > > Both those arrays have size 3 as far as I can tell:
>> > > > > conv_thresh = [>=19,>=29,>=39];
>> > > > > conv_thresh = [>=19,>=29,>=39];
>> > > > >
>> > > > > I've tried messing with this with "quilt" set to both TRUE
and
>> FALSE.
>> > > The
>> > > > > behavior is the same.
>> > > > >
>> > > > > Jeff
>> > > > >
>> > > > >
>> > > > >
>> > > > > On Tue, Feb 21, 2017 at 10:57 AM, Jeff Duda <
>> jeffduda319 at gmail.com>
>> > > > wrote:
>> > > > >
>> > > > > > John,
>> > > > > > Thanks. Real quick before we close this ticket - are non-
integer
>> > > > > > convolution radii values acceptable?
>> > > > > >
>> > > > > > Jeff
>> > > > > >
>> > > > > > On Tue, Feb 21, 2017 at 10:56 AM, John Halley Gotway via
RT <
>> > > > > > met_help at ucar.edu> wrote:
>> > > > > >
>> > > > > >> Jeff,
>> > > > > >>
>> > > > > >> Thanks for letting us know about the parsing error. I
tested
>> that
>> > > out
>> > > > > and
>> > > > > >> was able to replicate the error you're seeing. Variable
>> > > substitution
>> > > > > >> within an array in the config file isn't working.
>> > > > > >>
>> > > > > >> For now, please just do the math and put in the actual
>> convolution
>> > > > > radius
>> > > > > >> you'd like to use. So replace:
>> > > > > >> conv_radius = [
100.0/grid_res,50.0/grid_res,15.0/grid_res ];
>> > > > > >>
>> > > > > >> with (assuming gird_res = 5)
>> > > > > >>
>> > > > > >> conv_radius = [ 20, 10, 3 ];
>> > > > > >>
>> > > > > >> I'll create a ticket for this bug and hopefully we'll
get this
>> > issue
>> > > > > >> resolved in the next release.
>> > > > > >>
>> > > > > >> Thanks,
>> > > > > >> John
>> > > > > >>
>> > > > > >>
>> > > > > >>
>> > > > > >> On Mon, Feb 20, 2017 at 9:09 PM, Jeff Duda via RT <
>> > > met_help at ucar.edu>
>> > > > > >> wrote:
>> > > > > >>
>> > > > > >> >
>> > > > > >> > Mon Feb 20 21:09:52 2017: Request 79581 was acted
upon.
>> > > > > >> > Transaction: Ticket created by jeffduda319 at gmail.com
>> > > > > >> > Queue: met_help
>> > > > > >> > Subject: MODE config file difficulties
>> > > > > >> > Owner: Nobody
>> > > > > >> > Requestors: jeffduda319 at gmail.com
>> > > > > >> > Status: new
>> > > > > >> > Ticket <URL: https://rt.rap.ucar.edu/rt/
>> > > > Ticket/Display.html?id=79581
>> > > > > >
>> > > > > >> >
>> > > > > >> >
>> > > > > >> > Hello again.
>> > > > > >> >
>> > > > > >> > I'm getting a syntax error when running mode coming
from my
>> > config
>> > > > > file
>> > > > > >> > (attached)
>> > > > > >> >
>> > > > > >> > [jdduda at schooner1 MODE]$ ./mode
>> > > > > >> >
/scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
>> > > > > >> >
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_
>> > > > 2016052500.
>> > > > > nc
>> > > > > >> > MODE_refl_config
>> > > > > >> > DEBUG 1: Default Config File:
>> > > > > >> >
/home/jdduda/tool/met/share/met/config/MODEConfig_default
>> > > > > >> > DEBUG 1: Match Config File: MODE_refl_config
>> > > > > >> > DEBUG 1: Merge Config File: MODE_refl_config
>> > > > > >> > ERROR :
>> > > > > >> > ERROR : yyerror() -> syntax error in file
"MODE_refl_config"
>> > > > > >> > ERROR :
>> > > > > >> > ERROR : line = 55
>> > > > > >> > ERROR :
>> > > > > >> > ERROR : column = 30
>> > > > > >> > ERROR :
>> > > > > >> > ERROR : text = "/"
>> > > > > >> > ERROR :
>> > > > > >> > ERROR :
>> > > > > >> > ERROR : conv_radius =
>> > > > > >> > [100.0/grid_res,50.0/grid_res,15.0/grid_res]; // in
grid
>> > squares
>> > > > > >> > ERROR :
>> > > > > >> >
_____________________________^______________________________
>> > > > > >> > ___________________________
>> > > > > >> > ERROR :
>> > > > > >> >
>> > > > > >> > I tried changing conv_radius to 15.0/grid_res for both
the
>> > > forecast
>> > > > > and
>> > > > > >> obs
>> > > > > >> > and got this:
>> > > > > >> >
>> > > > > >> > [jdduda at schooner1 MODE]$ ./mode
>> > > > > >> >
/scratch/jdduda/NMMB_may24/NMMB_CA_00Z_free_d01_00.grib2
>> > > > > >> >
/condo/map/jdduda/MRMS_grib2_obs/refl/interp_MRMS_compref_
>> > > > 2016052500.
>> > > > > nc
>> > > > > >> > MODE_refl_config
>> > > > > >> > DEBUG 1: Default Config File:
>> > > > > >> >
/home/jdduda/tool/met/share/met/config/MODEConfig_default
>> > > > > >> > DEBUG 1: Match Config File: MODE_refl_config
>> > > > > >> > DEBUG 1: Merge Config File: MODE_refl_config
>> > > > > >> > WARNING:
>> > > > > >> > WARNING: Multiple GRIB2 table entries match lookup
criteria
>> > > > > (parm_name =
>> > > > > >> > REFC):
>> > > > > >> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab =
0,
>> > > grib2_cntr
>> > > > =
>> > > > > 7,
>> > > > > >> > grib2_ltab = 1, index_b = 16, index_c = 196
>> > > > > >> > WARNING: parm_name: REFC, index_a = 0, grib2_mtab =
1,
>> > > grib2_cntr
>> > > > =
>> > > > > 0,
>> > > > > >> > grib2_ltab = 0, index_b = 16, index_c = 5
>> > > > > >> > WARNING: Using: parm_name: REFC, index_a = 0,
grib2_mtab =
>> 0,
>> > > > > >> grib2_cntr
>> > > > > >> > = 7, grib2_ltab = 1, index_b = 16, index_c = 196
>> > > > > >> > WARNING:
>> > > > > >> > ERROR :
>> > > > > >> > ERROR : ModeConfInfo::process_config() -> fcst and
obs
>> > > convolution
>> > > > > >> > threshold arrays need to be the same size
>> > > > > >> > ERROR :
>> > > > > >> >
>> > > > > >> > Which just makes no sense to me. I don't think my eyes
are
>> > *that*
>> > > > bad.
>> > > > > >> >
>> > > > > >> > Also, to address the warning in the second run, here
is the
>> > output
>> > > > > from
>> > > > > >> > wgrib2 for the forecast array I"m verfying:
>> > > > > >> > 2:1736296:00Z25may2016:REFC Composite reflectivity
>> > > [dB]:lvl1=(10,0)
>> > > > > >> > lvl2=(255,missing):entire atmosphere:anl:
>> > > > > >> >
>> > > > > >> > Did I specify the level correctly?
>> > > > > >> >
>> > > > > >> > Please help. Thanks.
>> > > > > >> >
>> > > > > >> > Jeff
>> > > > > >> > --
>> > > > > >> > Jeff Duda
>> > > > > >> > Post-doctoral research fellow
>> > > > > >> > University of Oklahoma School of Meteorology
>> > > > > >> >
>> > > > > >> >
>> > > > > >>
>> > > > > >>
>> > > > > >
>> > > > > >
>> > > > > > --
>> > > > > > Jeff Duda
>> > > > > > Post-doctoral research fellow
>> > > > > > University of Oklahoma School of Meteorology
>> > > > > >
>> > > > >
>> > > > >
>> > > > >
>> > > > > --
>> > > > > Jeff Duda
>> > > > > Post-doctoral research fellow
>> > > > > University of Oklahoma School of Meteorology
>> > > > >
>> > > > >
>> > > >
>> > > >
>> > >
>> > >
>> > > --
>> > > Jeff Duda
>> > > Post-doctoral research fellow
>> > > University of Oklahoma School of Meteorology
>> > >
>> > >
>> >
>> >
>>
>>
>> --
>> Jeff Duda
>> Post-doctoral research fellow
>> University of Oklahoma School of Meteorology
>>
>>
>
------------------------------------------------
More information about the Met_help
mailing list