[Met_help] [rt.rap.ucar.edu #89118] History for pcp_combine -sum not working.

John Halley Gotway via RT met_help at ucar.edu
Fri Mar 8 14:44:23 MST 2019


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

Hello,
I earlier used pcp_combine -subtract  to create files to use in pop_combine sum. However, when I run pcp_combine -sum I get an error that has been proving naughty. 

ERROR  : sum_data_files() -> Cannot find a file with a valid time of 20190227_060000 and accumulation time of 060000 matching the regular expression ".*”

My command is part of a script:
    /Users/bamideleoloruntoba/MET/met-8.0/bin/pcp_combine -sum 20190226_060000 6 20190227_060000 24 ECMWF20190226FC.nc -pcpdir /Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF -field 'name="APCP_Z0"; level="(*,*)";' -v 3

Please find my data attached.

Thanks in advance for your help on this.

Bamidele OLORUNTOBA,
African Center of Meteorological Application for Development

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

Subject: pcp_combine -sum not working.
From: John Halley Gotway
Time: Thu Feb 28 12:53:16 2019

Bamidele,

I see that you're trying to run the pcp_combine "sum" command to
accumulate
precipitation 4 6-hourly precipitation files into a 24-hour
accumulation.
But the "sum" option isn't working.  Thanks for sending you sample
data to
illustrate the situation.  Let me suggest 2 different ways you could
fix
this issue.

(1) Instead of using "sum" you could use the "add" option instead,
like
this:


*/Users/bamideleoloruntoba/MET/met-8.0/bin/pcp_combine -add \*




*/Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF/instPRECIP.SOL.06.nc
<http://instPRECIP.SOL.06.nc> 'name="APCP_Z0" ; level="(*,*)";'
\/Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF/instPRECIP.SOL.12.nc
<http://instPRECIP.SOL.12.nc> 'name="APCP_Z0" ; level="(*,*)";'
\/Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF/instPRECIP.SOL.18.nc
<http://instPRECIP.SOL.18.nc> 'name="APCP_Z0" ; level="(*,*)";'
\/Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF/instPRECIP.SOL.24.nc
<http://instPRECIP.SOL.24.nc> 'name="APCP_Z0" ; level="(*,*)";'
\/Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF/instPRECIP.SOL.30.nc
<http://instPRECIP.SOL.30.nc> 'name="APCP_Z0" ; level="(*,*)";' \*
*ECMWF20190226FC_ADD.nc*

The add command simply reads the data you request from each input file
and
adds it up.

(2) If you'd prefer to use the "sum" option, you'll need to modify the
input NetCDF files slightly.  Below I've listed the NetCDF header for
these
files.  Notice that the accumulation interval is not specified.  So
pcp_combine assumes that the accumulation interval is 0:









*        float APCP_Z0(lat, lon) ;                APCP_Z0:name =
"APCP_Z0"
;                APCP_Z0:long_name = "Total precipitation" ;
APCP_Z0:level = "Z0" ;                APCP_Z0:units = "kg/m^2"
;                APCP_Z0:_FillValue = -9999.f ;
APCP_Z0:init_time = "20190226_000000" ;
APCP_Z0:init_time_ut
= "1551139200" ;                APCP_Z0:valid_time = "20190226_180000"
;                APCP_Z0:valid_time_ut = "1551204000" ;*

I ran the following commands to add the "accum_time_sec" variable
attribute:


*for cur in `ls -1 *.nc`; do  ncatted -a
accum_time_sec,APCP_Z0,o,l,21600
$cur   done*

Once those are added, then this sum command works:

*/Users/bamideleoloruntoba/MET/**met-8.0/bin/pcp_combine \*
*-sum 20190226_000000 6 20190227_000000 24 ECMWF20190226FC.nc \*
*-pcpdir /Volumes/IGNITE/ModelEvaluatio**n/modelbank/ECMWF -field
'name="APCP_Z0"; level="(*,*)";' -v 3*

But look at the timestamps closely.  The model is initialized at
20190226_000000, not 20190226_060000, like you had listed.  This
command
gives you the 24 hours between 20190226_000000 and 20190227_000000.

Thanks,
John



On Thu, Feb 28, 2019 at 10:28 AM Bamidele Oloruntoba via RT <
met_help at ucar.edu> wrote:

>
> Thu Feb 28 10:27:59 2019: Request 89118 was acted upon.
> Transaction: Ticket created by deleignition at icloud.com
>        Queue: met_help
>      Subject: pcp_combine -sum not working.
>        Owner: Nobody
>   Requestors: deleignition at icloud.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89118 >
>
>
> Hello,
> I earlier used pcp_combine -subtract  to create files to use in
> pop_combine sum. However, when I run pcp_combine -sum I get an error
that
> has been proving naughty.
>
> ERROR  : sum_data_files() -> Cannot find a file with a valid time of
> 20190227_060000 and accumulation time of 060000 matching the regular
> expression ".*”
>
> My command is part of a script:
>     /Users/bamideleoloruntoba/MET/met-8.0/bin/pcp_combine -sum
> 20190226_060000 6 20190227_060000 24 ECMWF20190226FC.nc -pcpdir
> /Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF -field
'name="APCP_Z0";
> level="(*,*)";' -v 3
>
> Please find my data attached.
>
> Thanks in advance for your help on this.
>
> Bamidele OLORUNTOBA,
> African Center of Meteorological Application for Development
> Hello,
> I earlier used *pcp_combine -subtract * to create files to use in
> pop_combine sum. However, when I run pcp_combine -sum I get an error
that
> has been proving naughty.
>
> ERROR  : sum_data_files() -> Cannot find a file with a valid time of
> 20190227_060000 and accumulation time of 060000 matching the regular
> expression ".*”
>
> My command is part of a script:
>     /Users/bamideleoloruntoba/MET/met-8.0/bin/pcp_combine -sum
> 20190226_060000 6 20190227_060000 24 ECMWF20190226FC.nc -pcpdir
> /Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF -field
'name="APCP_Z0";
> level="(*,*)";' -v 3
>
> Please find my data attached.
> Thanks in advance for your help on this.
>
> Bamidele OLORUNTOBA,
> African Center of Meteorological Application for Development
>

------------------------------------------------
Subject: Re: [rt.rap.ucar.edu #89118] pcp_combine -sum not working.
From: Bamidele Oloruntoba
Time: Thu Feb 28 23:57:55 2019

John,
Thank you. I am indeed grateful.
You can close the ticket now.

> On Feb 28, 2019, at 8:53 PM, John Halley Gotway via RT
<met_help at ucar.edu> wrote:
>
> Bamidele,
>
> I see that you're trying to run the pcp_combine "sum" command to
accumulate
> precipitation 4 6-hourly precipitation files into a 24-hour
accumulation.
> But the "sum" option isn't working.  Thanks for sending you sample
data to
> illustrate the situation.  Let me suggest 2 different ways you could
fix
> this issue.
>
> (1) Instead of using "sum" you could use the "add" option instead,
like
> this:
>
>
> */Users/bamideleoloruntoba/MET/met-8.0/bin/pcp_combine -add \*
>
>
>
>
>
*/Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF/instPRECIP.SOL.06.nc
> <http://instPRECIP.SOL.06.nc> 'name="APCP_Z0" ; level="(*,*)";'
>
\/Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF/instPRECIP.SOL.12.nc
> <http://instPRECIP.SOL.12.nc> 'name="APCP_Z0" ; level="(*,*)";'
>
\/Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF/instPRECIP.SOL.18.nc
> <http://instPRECIP.SOL.18.nc> 'name="APCP_Z0" ; level="(*,*)";'
>
\/Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF/instPRECIP.SOL.24.nc
> <http://instPRECIP.SOL.24.nc> 'name="APCP_Z0" ; level="(*,*)";'
>
\/Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF/instPRECIP.SOL.30.nc
> <http://instPRECIP.SOL.30.nc> 'name="APCP_Z0" ; level="(*,*)";' \*
> *ECMWF20190226FC_ADD.nc*
>
> The add command simply reads the data you request from each input
file and
> adds it up.
>
> (2) If you'd prefer to use the "sum" option, you'll need to modify
the
> input NetCDF files slightly.  Below I've listed the NetCDF header
for these
> files.  Notice that the accumulation interval is not specified.  So
> pcp_combine assumes that the accumulation interval is 0:
>
>
>
>
>
>
>
>
>
> *        float APCP_Z0(lat, lon) ;                APCP_Z0:name =
"APCP_Z0"
> ;                APCP_Z0:long_name = "Total precipitation" ;
> APCP_Z0:level = "Z0" ;                APCP_Z0:units = "kg/m^2"
> ;                APCP_Z0:_FillValue = -9999.f ;
> APCP_Z0:init_time = "20190226_000000" ;
APCP_Z0:init_time_ut
> = "1551139200" ;                APCP_Z0:valid_time =
"20190226_180000"
> ;                APCP_Z0:valid_time_ut = "1551204000" ;*
>
> I ran the following commands to add the "accum_time_sec" variable
attribute:
>
>
> *for cur in `ls -1 *.nc`; do  ncatted -a
accum_time_sec,APCP_Z0,o,l,21600
> $cur   done*
>
> Once those are added, then this sum command works:
>
> */Users/bamideleoloruntoba/MET/**met-8.0/bin/pcp_combine \*
> *-sum 20190226_000000 6 20190227_000000 24 ECMWF20190226FC.nc \*
> *-pcpdir /Volumes/IGNITE/ModelEvaluatio**n/modelbank/ECMWF -field
> 'name="APCP_Z0"; level="(*,*)";' -v 3*
>
> But look at the timestamps closely.  The model is initialized at
> 20190226_000000, not 20190226_060000, like you had listed.  This
command
> gives you the 24 hours between 20190226_000000 and 20190227_000000.
>
> Thanks,
> John
>
>
>
> On Thu, Feb 28, 2019 at 10:28 AM Bamidele Oloruntoba via RT <
> met_help at ucar.edu> wrote:
>
>>
>> Thu Feb 28 10:27:59 2019: Request 89118 was acted upon.
>> Transaction: Ticket created by deleignition at icloud.com
>>      Queue: met_help
>>    Subject: pcp_combine -sum not working.
>>      Owner: Nobody
>> Requestors: deleignition at icloud.com
>>     Status: new
>> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=89118 >
>>
>>
>> Hello,
>> I earlier used pcp_combine -subtract  to create files to use in
>> pop_combine sum. However, when I run pcp_combine -sum I get an
error that
>> has been proving naughty.
>>
>> ERROR  : sum_data_files() -> Cannot find a file with a valid time
of
>> 20190227_060000 and accumulation time of 060000 matching the
regular
>> expression ".*”
>>
>> My command is part of a script:
>>   /Users/bamideleoloruntoba/MET/met-8.0/bin/pcp_combine -sum
>> 20190226_060000 6 20190227_060000 24 ECMWF20190226FC.nc -pcpdir
>> /Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF -field
'name="APCP_Z0";
>> level="(*,*)";' -v 3
>>
>> Please find my data attached.
>>
>> Thanks in advance for your help on this.
>>
>> Bamidele OLORUNTOBA,
>> African Center of Meteorological Application for Development
>> Hello,
>> I earlier used *pcp_combine -subtract * to create files to use in
>> pop_combine sum. However, when I run pcp_combine -sum I get an
error that
>> has been proving naughty.
>>
>> ERROR  : sum_data_files() -> Cannot find a file with a valid time
of
>> 20190227_060000 and accumulation time of 060000 matching the
regular
>> expression ".*”
>>
>> My command is part of a script:
>>   /Users/bamideleoloruntoba/MET/met-8.0/bin/pcp_combine -sum
>> 20190226_060000 6 20190227_060000 24 ECMWF20190226FC.nc -pcpdir
>> /Volumes/IGNITE/ModelEvaluation/modelbank/ECMWF -field
'name="APCP_Z0";
>> level="(*,*)";' -v 3
>>
>> Please find my data attached.
>> Thanks in advance for your help on this.
>>
>> Bamidele OLORUNTOBA,
>> African Center of Meteorological Application for Development
>>
>



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


More information about the Met_help mailing list