[Met_help] [rt.rap.ucar.edu #87019] History for fcst_thresh of stat_analysis

John Halley Gotway via RT met_help at ucar.edu
Tue Sep 18 13:04:55 MDT 2018


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

Hi All,

    I want to run stat_analysis with setting temperature threshold fcst_thresh >=271&&<275 as    -job aggregate_stat -line_type CTC -out_line_type CTS -fcst_var TMP -interp_mthd DW_MEAN -fcst_thresh ge271.and.lt275 .


  But it looks like the format of ge271.and.lt275 is illegal and the error information lists as below:
*** Running STAT-Analysis ***
DEBUG 1: Creating STAT-Analysis output file "/home-gs/users/SZQXG152/metenm_test/ensm_stat_sfc/met/201801/mon/18/CTSTMP_1mon_ge271lt275.txt"
ERROR  :
ERROR  : yyerror() -> syntax error in file "/tmp/config_30399_0_.temp"
ERROR  :
ERROR  :    line   = 1
ERROR  :
ERROR  :    column = 0
ERROR  :
ERROR  :    text   = "lt275"
ERROR  :
ERROR  :
ERROR  : ge271.and.lt275
ERROR  : ^^^^___________
ERROR  :
###############

Do you know what's the issue of it?

Thank you very much!

Mandy


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

Subject: fcst_thresh of stat_analysis
From: John Halley Gotway
Time: Tue Sep 18 11:29:53 2018

Mandy,

This is just a problem in the command line syntax.  MET doesn't
interpret
the string 'and'.  Instead, you can use the ampersand character listed
twice '&&'.

Please try running like this:

-job aggregate_stat -line_type CTC -out_line_type CTS -fcst_var TMP
-interp_mthd DW_MEAN -fcst_thresh 'ge271&&lt275'

Note that I put that threshold string inside of single quotes.  That
tells
the Unix shell to interpret what's inside as a string literal instead
of
applying special logic for the ampersand characters.

Thanks,
John Halley Gotway

On Tue, Sep 18, 2018 at 9:46 AM Zhang, Mandy via RT
<met_help at ucar.edu>
wrote:

>
> Tue Sep 18 09:46:15 2018: Request 87019 was acted upon.
> Transaction: Ticket created by Man.Zhang-1 at ou.edu
>        Queue: met_help
>      Subject: fcst_thresh of stat_analysis
>        Owner: Nobody
>   Requestors: Man.Zhang-1 at ou.edu
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=87019 >
>
>
> Hi All,
>
>     I want to run stat_analysis with setting temperature threshold
> fcst_thresh >=271&&<275 as    -job aggregate_stat -line_type CTC
> -out_line_type CTS -fcst_var TMP -interp_mthd DW_MEAN -fcst_thresh
> ge271.and.lt275 .
>
>
>   But it looks like the format of ge271.and.lt275 is illegal and the
error
> information lists as below:
> *** Running STAT-Analysis ***
> DEBUG 1: Creating STAT-Analysis output file
> "/home-
gs/users/SZQXG152/metenm_test/ensm_stat_sfc/met/201801/mon/18/CTSTMP_1mon_ge271lt275.txt"
> ERROR  :
> ERROR  : yyerror() -> syntax error in file
"/tmp/config_30399_0_.temp"
> ERROR  :
> ERROR  :    line   = 1
> ERROR  :
> ERROR  :    column = 0
> ERROR  :
> ERROR  :    text   = "lt275"
> ERROR  :
> ERROR  :
> ERROR  : ge271.and.lt275
> ERROR  : ^^^^___________
> ERROR  :
> ###############
>
> Do you know what's the issue of it?
>
> Thank you very much!
>
> Mandy
>
>

------------------------------------------------
Subject: fcst_thresh of stat_analysis
From: Zhang, Mandy
Time: Tue Sep 18 12:30:29 2018

John,

    with adding single quote ' ',  it works.

Thank you!

Mandy

________________________________
From: John Halley Gotway via RT <met_help at ucar.edu>
Sent: Tuesday, September 18, 2018 12:29:53 PM
To: Zhang, Mandy
Subject: Re: [rt.rap.ucar.edu #87019] fcst_thresh of stat_analysis

Mandy,

This is just a problem in the command line syntax.  MET doesn't
interpret
the string 'and'.  Instead, you can use the ampersand character listed
twice '&&'.

Please try running like this:

-job aggregate_stat -line_type CTC -out_line_type CTS -fcst_var TMP
-interp_mthd DW_MEAN -fcst_thresh 'ge271&&lt275'

Note that I put that threshold string inside of single quotes.  That
tells
the Unix shell to interpret what's inside as a string literal instead
of
applying special logic for the ampersand characters.

Thanks,
John Halley Gotway

On Tue, Sep 18, 2018 at 9:46 AM Zhang, Mandy via RT
<met_help at ucar.edu>
wrote:

>
> Tue Sep 18 09:46:15 2018: Request 87019 was acted upon.
> Transaction: Ticket created by Man.Zhang-1 at ou.edu
>        Queue: met_help
>      Subject: fcst_thresh of stat_analysis
>        Owner: Nobody
>   Requestors: Man.Zhang-1 at ou.edu
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=87019 >
>
>
> Hi All,
>
>     I want to run stat_analysis with setting temperature threshold
> fcst_thresh >=271&&<275 as    -job aggregate_stat -line_type CTC
> -out_line_type CTS -fcst_var TMP -interp_mthd DW_MEAN -fcst_thresh
> ge271.and.lt275 .
>
>
>   But it looks like the format of ge271.and.lt275 is illegal and the
error
> information lists as below:
> *** Running STAT-Analysis ***
> DEBUG 1: Creating STAT-Analysis output file
> "/home-
gs/users/SZQXG152/metenm_test/ensm_stat_sfc/met/201801/mon/18/CTSTMP_1mon_ge271lt275.txt"
> ERROR  :
> ERROR  : yyerror() -> syntax error in file
"/tmp/config_30399_0_.temp"
> ERROR  :
> ERROR  :    line   = 1
> ERROR  :
> ERROR  :    column = 0
> ERROR  :
> ERROR  :    text   = "lt275"
> ERROR  :
> ERROR  :
> ERROR  : ge271.and.lt275
> ERROR  : ^^^^___________
> ERROR  :
> ###############
>
> Do you know what's the issue of it?
>
> Thank you very much!
>
> Mandy
>
>


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


More information about the Met_help mailing list