[Met_help] [rt.rap.ucar.edu #81201] History for pcp_combine -sum ERROR : timestring_to_unix(const char *) -> can't parse date/time string

John Halley Gotway via RT met_help at ucar.edu
Wed Aug 9 10:15:45 MDT 2017


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

Hi,

I am testing pcp_combine tools using my grib2 data as input files.

pcp_combine -subtract  ran successfully.

yoo108 at halstead-fe01:*/scratch/halstead/y/yoo108/wrfAnalysis/METanal* $
/home/yoo108/met-6.0_bugfix/bin/pcp_combine -subtract
/scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/CESM_WRF_d03_4km_200501020000.grb2
384 /scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
CESM_WRF_d03_4km_200501010000.grb2 360 CESM_WRF_APCP24_20050101.nc

DEBUG 1: Reading input file:
/scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/CESM_WRF_d03_4km_200501020000.grb2

DEBUG 1: Reading input file:
/scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/CESM_WRF_d03_4km_200501010000.grb2

DEBUG 1: Writing output file: CESM_WRF_APCP24_20050101.nc



However, pcp_combine -sum failed with an error reading in input file.

yoo108 at halstead-fe01:*/scratch/halstead/y/yoo108/wrfAnalysis/METanal* $
/home/yoo108/met-6.0_bugfix/bin/pcp_combine -sum
/scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/CESM_WRF_d03_4km_200501010000.grb2
1
/scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/CESM_WRF_d03_4km_200501010100.grb2
1 sample_apcp_add.nc

ERROR  : timestring_to_unix(const char *) -> can't parse date/time string
"/scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
CESM_WRF_d03_4km_200501010000.grb2"


I wonder why pcp_combine -sum cannot read in input grib2 file,
while pcp_combine -subtract can? pcp_combine -add can read in the file, too.

Thank you.
Regards,

Jinwoong Yoo
Purdue Climate Change Research Center


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

Subject: pcp_combine -sum ERROR : timestring_to_unix(const char *) -> can't parse date/time string
From: John Halley Gotway
Time: Thu Jul 13 17:08:42 2017

Jinwoong,

The command line arguments for the "-add" option are very different
than
they are for the "-sum" option.  Please refer to the online tutorial
for
more information about the pcp_combine options:

http://www.dtcenter.org/met/users/support/online_tutorial/METv6.0/tutorial.php?name=pcp_combine&category=index

Basically though, if you have a list of files and want to pull extract
precip from each file and add them together, use the "-add" option.
The
"-add" option is very, very similar to the "-subtract" option.  The "-
sum"
option searches all the files in a directory for you and finds the
matching
ones... using very different command line options.

Thanks,
John

On Thu, Jul 13, 2017 at 1:47 PM, Jinwoong Yoo via RT
<met_help at ucar.edu>
wrote:

>
> Thu Jul 13 13:47:40 2017: Request 81201 was acted upon.
> Transaction: Ticket created by jinwoong.yoo at gmail.com
>        Queue: met_help
>      Subject: pcp_combine -sum ERROR : timestring_to_unix(const char
*) ->
> can't parse date/time string
>        Owner: Nobody
>   Requestors: jinwoong.yoo at gmail.com
>       Status: new
>  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81201 >
>
>
> Hi,
>
> I am testing pcp_combine tools using my grib2 data as input files.
>
> pcp_combine -subtract  ran successfully.
>
> yoo108 at halstead-
fe01:*/scratch/halstead/y/yoo108/wrfAnalysis/METanal* $
> /home/yoo108/met-6.0_bugfix/bin/pcp_combine -subtract
> /scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> CESM_WRF_d03_4km_200501020000.grb2
> 384 /scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> CESM_WRF_d03_4km_200501010000.grb2 360 CESM_WRF_APCP24_20050101.nc
>
> DEBUG 1: Reading input file:
> /scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> CESM_WRF_d03_4km_200501020000.grb2
>
> DEBUG 1: Reading input file:
> /scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> CESM_WRF_d03_4km_200501010000.grb2
>
> DEBUG 1: Writing output file: CESM_WRF_APCP24_20050101.nc
>
>
>
> However, pcp_combine -sum failed with an error reading in input
file.
>
> yoo108 at halstead-
fe01:*/scratch/halstead/y/yoo108/wrfAnalysis/METanal* $
> /home/yoo108/met-6.0_bugfix/bin/pcp_combine -sum
> /scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> CESM_WRF_d03_4km_200501010000.grb2
> 1
> /scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> CESM_WRF_d03_4km_200501010100.grb2
> 1 sample_apcp_add.nc
>
> ERROR  : timestring_to_unix(const char *) -> can't parse date/time
string
> "/scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> CESM_WRF_d03_4km_200501010000.grb2"
>
>
> I wonder why pcp_combine -sum cannot read in input grib2 file,
> while pcp_combine -subtract can? pcp_combine -add can read in the
file,
> too.
>
> Thank you.
> Regards,
>
> Jinwoong Yoo
> Purdue Climate Change Research Center
>
>

------------------------------------------------
Subject: pcp_combine -sum ERROR : timestring_to_unix(const char *) -> can't parse date/time string
From: Jinwoong Yoo
Time: Thu Jul 13 18:40:56 2017

Hi John,

I see.
That's my bad.
Thank you for your comments.
Regards,

Jinwoong

On Thu, Jul 13, 2017 at 7:08 PM, John Halley Gotway via RT <
met_help at ucar.edu> wrote:

> Jinwoong,
>
> The command line arguments for the "-add" option are very different
than
> they are for the "-sum" option.  Please refer to the online tutorial
for
> more information about the pcp_combine options:
>
> http://www.dtcenter.org/met/users/support/online_tutorial/
> METv6.0/tutorial.php?name=pcp_combine&category=index
>
> Basically though, if you have a list of files and want to pull
extract
> precip from each file and add them together, use the "-add" option.
The
> "-add" option is very, very similar to the "-subtract" option.  The
"-sum"
> option searches all the files in a directory for you and finds the
matching
> ones... using very different command line options.
>
> Thanks,
> John
>
> On Thu, Jul 13, 2017 at 1:47 PM, Jinwoong Yoo via RT
<met_help at ucar.edu>
> wrote:
>
> >
> > Thu Jul 13 13:47:40 2017: Request 81201 was acted upon.
> > Transaction: Ticket created by jinwoong.yoo at gmail.com
> >        Queue: met_help
> >      Subject: pcp_combine -sum ERROR : timestring_to_unix(const
char *)
> ->
> > can't parse date/time string
> >        Owner: Nobody
> >   Requestors: jinwoong.yoo at gmail.com
> >       Status: new
> >  Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=81201 >
> >
> >
> > Hi,
> >
> > I am testing pcp_combine tools using my grib2 data as input files.
> >
> > pcp_combine -subtract  ran successfully.
> >
> > yoo108 at halstead-
fe01:*/scratch/halstead/y/yoo108/wrfAnalysis/METanal* $
> > /home/yoo108/met-6.0_bugfix/bin/pcp_combine -subtract
> > /scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> > CESM_WRF_d03_4km_200501020000.grb2
> > 384 /scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> > CESM_WRF_d03_4km_200501010000.grb2 360 CESM_WRF_APCP24_20050101.nc
> >
> > DEBUG 1: Reading input file:
> > /scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> > CESM_WRF_d03_4km_200501020000.grb2
> >
> > DEBUG 1: Reading input file:
> > /scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> > CESM_WRF_d03_4km_200501010000.grb2
> >
> > DEBUG 1: Writing output file: CESM_WRF_APCP24_20050101.nc
> >
> >
> >
> > However, pcp_combine -sum failed with an error reading in input
file.
> >
> > yoo108 at halstead-
fe01:*/scratch/halstead/y/yoo108/wrfAnalysis/METanal* $
> > /home/yoo108/met-6.0_bugfix/bin/pcp_combine -sum
> > /scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> > CESM_WRF_d03_4km_200501010000.grb2
> > 1
> > /scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> > CESM_WRF_d03_4km_200501010100.grb2
> > 1 sample_apcp_add.nc
> >
> > ERROR  : timestring_to_unix(const char *) -> can't parse date/time
string
> > "/scratch/halstead/k/khoogewi/CCRC_wrf/grib2/2005/200501/
> > CESM_WRF_d03_4km_200501010000.grb2"
> >
> >
> > I wonder why pcp_combine -sum cannot read in input grib2 file,
> > while pcp_combine -subtract can? pcp_combine -add can read in the
file,
> > too.
> >
> > Thank you.
> > Regards,
> >
> > Jinwoong Yoo
> > Purdue Climate Change Research Center
> >
> >
>
>

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


More information about the Met_help mailing list