[Met_help] [rt.rap.ucar.edu #80002] History for accumulating from multiple levels at once
John Halley Gotway via RT
met_help at ucar.edu
Thu Apr 6 09:19:30 MDT 2017
----------------------------------------------------------------
Initial Request
----------------------------------------------------------------
Dear MET Help staff,
My total precip is spread along the time dimension in a NetCDF file and
I'm trying to add multiple levels of the it using pcp_combine. It is
possible to specify multiple levels for the in_accum1 argument?
Like, pcp_combine -add input.nc 'name="prec"; level="(0:3,*,*)";'
output.nc or similar
or I have to do
pcp_combine -add
input.nc 'name="prec"; level="(0,*,*)";' input.nc 'name="prec";
level="(1,*,*)";' input.nc 'name="prec"; level="(2,*,*)";' input.nc
'name="prec"; level="(3,*,*)";' output.nc
Thank you
Best regards
--
JR Garcia
=======================================================
Jose Roberto Motta Garcia, PhD
DMD - Modelling and Development Division
CPTEC - Center for Weather Forecast and Climate Studies
INPE - Brazilian National Institute for Space Research
Tel.: +55 (12) 3208-7966
-------------------------------------------------------
SAVE NATURAL RESOURCES!
=======================================================
----------------------------------------------------------------
Complete Ticket History
----------------------------------------------------------------
Subject: accumulating from multiple levels at once
From: John Halley Gotway
Time: Tue Mar 28 17:20:41 2017
JR Garcia,
Unfortunately no, pcp_combine is not set up to support a range of
values
for each dimension. You're stuck with the latter option, specifying
each
field separately.
If you need to do this over 90 fields (as you mentioned in a different
met_help ticket), you could either build one very log command line, or
do
it in a loop... loop 1 to 90 and accumulate the values from one
timestep at
a time.
Hope that helps clarify.
Thanks,
John Halley Gotway
On Tue, Mar 28, 2017 at 3:19 PM, Roberto Garcia (INPE) via RT <
met_help at ucar.edu> wrote:
>
> Tue Mar 28 15:19:32 2017: Request 80002 was acted upon.
> Transaction: Ticket created by roberto.garcia at inpe.br
> Queue: met_help
> Subject: accumulating from multiple levels at once
> Owner: Nobody
> Requestors: roberto.garcia at inpe.br
> Status: new
> Ticket <URL:
https://rt.rap.ucar.edu/rt/Ticket/Display.html?id=80002 >
>
>
> Dear MET Help staff,
>
> My total precip is spread along the time dimension in a NetCDF file
and
> I'm trying to add multiple levels of the it using pcp_combine. It is
> possible to specify multiple levels for the in_accum1 argument?
>
> Like, pcp_combine -add input.nc 'name="prec"; level="(0:3,*,*)";'
> output.nc or similar
>
> or I have to do
>
> pcp_combine -add
>
> input.nc 'name="prec"; level="(0,*,*)";' input.nc 'name="prec";
> level="(1,*,*)";' input.nc 'name="prec"; level="(2,*,*)";' input.nc
> 'name="prec"; level="(3,*,*)";' output.nc
>
> Thank you
>
> Best regards
>
> --
> JR Garcia
>
> =======================================================
> Jose Roberto Motta Garcia, PhD
>
> DMD - Modelling and Development Division
> CPTEC - Center for Weather Forecast and Climate Studies
> INPE - Brazilian National Institute for Space Research
> Tel.: +55 (12) 3208-7966
> -------------------------------------------------------
> SAVE NATURAL RESOURCES!
> =======================================================
>
>
>
------------------------------------------------
More information about the Met_help
mailing list