[Met_help] [rt.rap.ucar.edu #62495] History for pcp_combiine problem

John Halley Gotway via RT met_help at ucar.edu
Tue Aug 27 10:49:22 MDT 2013


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

Hi,
I have some problems when I am trying to us "pcp_combine" to sum up several hourly accumulated precipitation (APCP) analysis data to 24 hour APCP data.

When I use the command: "pcp_combine -sum 00000000_000000 01 20130702_000000 24 test.nc -pcpdir ./",
I got the output like this, go wrong at  "2013070800.grb", but this file should not be needed by pcp_combine because it is out of time range.

DEBUG 1: [1] File .//2013070200.grb matches valid time of 20130702_000000
DEBUG 1: [2] File .//2013070123.grb matches valid time of 20130701_230000
DEBUG 1: [3] File .//2013070122.grb matches valid time of 20130701_220000
DEBUG 1: [4] File .//2013070121.grb matches valid time of 20130701_210000
DEBUG 1: [5] File .//2013070120.grb matches valid time of 20130701_200000
DEBUG 1: [6] File .//2013070119.grb matches valid time of 20130701_190000
DEBUG 1: [7] File .//2013070118.grb matches valid time of 20130701_180000
ERROR  :
ERROR  : GribFile::open(const char *) -> unable to open grib file .//2013070800.grb
ERROR  :

This problem always happens when I set "out_accum" larger than 6 or so.

Is it possibly a bug? Could you help me with it please?
Thansk!

Jiangshan Zhu







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

Subject: Re: [rt.rap.ucar.edu #62495] pcp_combiine problem
From: John Halley Gotway
Time: Mon Aug 05 10:45:55 2013

Jiangshan,

By looking at the naming convention, you and I know that the file
named "2013070800.grb" is out of the time range.  However, the only
way for the software to know that is by opening the file up and
looking at the contents to determine the date.  The pcp_combine tool
will look through all of the input files it find in the directory you
pass it.  And apparently, it's having a problem reading that
file.

Here are a few thoughts about your situation...

- Why can't pcp_combine open that file?  Are the permissions wrong?
Or is the data bad?  If it's bad data, you could just delete that
file.

- Instead of using the -sum option, you could always just use the -add
option for pcp_combine.  It basically does the same thing, but you
tell it exactly which files to read.  For example:
     pcp_combine -add file1.grb 01 file2.grb 01 ... file24.grb 01
out_file_APCP_24.nc
   Above I've told pcp_combine to extract 1-hour precip from 24 input
files and write out a single NetCDF output file with 24-hours of
accumulation.

- The -pcprx option may be useful.  It allows you to specify a regular
expression for the file names being considered.  pcp-combine will only
try to read the input file names which match that regular
expression.  For example, specifying '-pcprx 2013070[1,2]' would tell
pcp_combine to only consider files from the 1st and 2nd of July.

Hope that helps.

Thanks,
John

On 08/05/2013 02:19 AM, zhujiangshan via RT wrote:
>
> Mon Aug 05 02:19:29 2013: Request 62495 was acted upon.
> Transaction: Ticket created by zhujiangshan at mail.iap.ac.cn
>         Queue: met_help
>       Subject: pcp_combiine problem
>         Owner: Nobody
>    Requestors: zhujiangshan at mail.iap.ac.cn
>        Status: new
>   Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=62495 >
>
>
> Hi,
> I have some problems when I am trying to us "pcp_combine" to sum up
several hourly accumulated precipitation (APCP) analysis data to 24
hour APCP data.
>
> When I use the command: "pcp_combine -sum 00000000_000000 01
20130702_000000 24 test.nc -pcpdir ./",
> I got the output like this, go wrong at  "2013070800.grb", but this
file should not be needed by pcp_combine because it is out of time
range.
>
> DEBUG 1: [1] File .//2013070200.grb matches valid time of
20130702_000000
> DEBUG 1: [2] File .//2013070123.grb matches valid time of
20130701_230000
> DEBUG 1: [3] File .//2013070122.grb matches valid time of
20130701_220000
> DEBUG 1: [4] File .//2013070121.grb matches valid time of
20130701_210000
> DEBUG 1: [5] File .//2013070120.grb matches valid time of
20130701_200000
> DEBUG 1: [6] File .//2013070119.grb matches valid time of
20130701_190000
> DEBUG 1: [7] File .//2013070118.grb matches valid time of
20130701_180000
> ERROR  :
> ERROR  : GribFile::open(const char *) -> unable to open grib file
.//2013070800.grb
> ERROR  :
>
> This problem always happens when I set "out_accum" larger than 6 or
so.
>
> Is it possibly a bug? Could you help me with it please?
> Thansk!
>
> Jiangshan Zhu
>
>
>
>
>

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


More information about the Met_help mailing list