[Met_help] [rt.rap.ucar.edu #55584] History for about MODE configuration file

Paul Oldenburg via RT met_help at ucar.edu
Thu Apr 5 12:16:48 MDT 2012


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




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

Subject: about MODE configuration file
From: 吳小榆
Time: Fri Mar 30 02:47:45 2012

Dear sir,

I used METv3.0.1,
(1) how to set "fcst_field" in the mode configuration file
"WrfModeConfig_APCP_24"?

The forecast file is NetCDF file from pcp_conbine, so i set :
fcst_field = "APCP_24(180,150,lon,lat)";

when i administered mode.sh print the message:
MetNcFile::data(NcVar *, const LongArray &, WrfData &) -> needed 2
arguments for variable APCP_24, got 4

if i set ,
fcst_field = "APCP_24(180,150)";
or
fcst_field = "APCP_24(lat,lon)";
the message was:
MetNcFile::data(NcVar *, const LongArray &, WrfData &) const ->  bad
star
count ... 0

if i set,
fcst_field = "APCP_24(*,*)";
the message was:
NetCDF: Attribute not found

Could you explain what do the "data(NcVar *, const LongArray &,
WrfData &)"
and "var_name(i,...,j,*,*)"  mean?

(2) Isn't right by the pcp_combine.sh setting?

my pcp_combine.sh setting by :
../bin/pcp_combine \
   -subtract ../data/Namandol_fcst/WRFPRS_d03.048 48
../data/Namandol_fcst/WRFPRS_d03.024 24 \
   ../out/pcp_combine/Namandol_fct_2011082918V_24A.nc \

and
ncdump -h  Namandol_fct_2011082918V_24A.nc  ,print the message:
        float APCP_24(lat, lon) ;
                APCP_24:name = "APCP" ;
                APCP_24:long_name = "Total precipitation" ;
                APCP_24:level = "A24" ;
                APCP_24:units = "kg/m^2" ;
                APCP_24:grib_code = 61 ;
                APCP_24:_FillValue = -9999.f ;
                APCP_24:init_time = "20110827_180000" ;
                APCP_24:init_time_ut = 1314468000 ;
                APCP_24:valid_time = "20110829_180000" ;
                APCP_24:valid_time_ut = 1314640800 ;
                APCP_24:accum_time = "240000" ;
                APCP_24:accum_time_sec = 86400 ;


Thank you very much!

Kate

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #55584]about MODE configuration file and pcp_combine.sh setting
From: Paul Oldenburg
Time: Fri Mar 30 08:51:39 2012

Kate,

To answer question 1, please look at the test script in the scripts
directory under the MET installation folder,
$MET_BASE/scripts/test_mode.sh.  This script calls mode using the
output of pcp_combine.  You can see in the
configuration files, $MET_BASE/scripts/config/MODEConfig_APCP_12/24,
that the fcst_field and obs_field are specified
like this:

fcst_field  = "APCP_24(*,*)";

The reason is that, in the ncdump output you sent, the APCP_24
variable has two dimensions.  In MET, the syntax is to
provide a * in the dimensions that you want to use all indexes from.
The answer to question 2 is that your pcp_combine
output looks valid and reasonable.  If you have any questions about
this, please let me know.

Paul




On 03/30/2012 02:47 AM, 吳小榆 via RT wrote:
>
> <URL: https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=55584>
>
> Dear sir,
>
> I used METv3.0.1,
> (1) how to set "fcst_field" in the mode configuration file
> "WrfModeConfig_APCP_24"?
>
> The forecast file is NetCDF file from pcp_conbine, so i set :
> fcst_field = "APCP_24(180,150,lon,lat)";
>
> when i administered mode.sh print the message:
> MetNcFile::data(NcVar *, const LongArray&, WrfData&) ->  needed 2
> arguments for variable APCP_24, got 4
>
> if i set ,
> fcst_field = "APCP_24(180,150)";
> or
> fcst_field = "APCP_24(lat,lon)";
> the message was:
> MetNcFile::data(NcVar *, const LongArray&, WrfData&) const ->   bad
star
> count ... 0
>
> if i set,
> fcst_field = "APCP_24(*,*)";
> the message was:
> NetCDF: Attribute not found
>
> Could you explain what do the "data(NcVar *, const LongArray&,
WrfData&)"
> and "var_name(i,...,j,*,*)"  mean?
>
> (2) Isn't right by the pcp_combine.sh setting?
>
> my pcp_combine.sh setting by :
> ../bin/pcp_combine \
>     -subtract ../data/Namandol_fcst/WRFPRS_d03.048 48
> ../data/Namandol_fcst/WRFPRS_d03.024 24 \
>     ../out/pcp_combine/Namandol_fct_2011082918V_24A.nc \
>
> and
> ncdump -h  Namandol_fct_2011082918V_24A.nc  ,print the message:
>          float APCP_24(lat, lon) ;
>                  APCP_24:name = "APCP" ;
>                  APCP_24:long_name = "Total precipitation" ;
>                  APCP_24:level = "A24" ;
>                  APCP_24:units = "kg/m^2" ;
>                  APCP_24:grib_code = 61 ;
>                  APCP_24:_FillValue = -9999.f ;
>                  APCP_24:init_time = "20110827_180000" ;
>                  APCP_24:init_time_ut = 1314468000 ;
>                  APCP_24:valid_time = "20110829_180000" ;
>                  APCP_24:valid_time_ut = 1314640800 ;
>                  APCP_24:accum_time = "240000" ;
>                  APCP_24:accum_time_sec = 86400 ;
>
>
> Thank you very much!
>
> Kate


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


More information about the Met_help mailing list