Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As of version 4.6.4, ncclimo will automatically switch to timeseries reshaping mode if it receives a list of files through a pipe to stdin, or, alternatively, placed as positional arguments (after the last command-line option), or if neither of these is done and no caseid is specified, in which case it assumes all *.nc files in drc_in constitute the input file list. These examples invoke reshaping mode in the three possible ways:

drc_in=/scratch2/scratchdirs/golaz/ACME_simulations/20161117.beta0.A_WCYCL1850S.ne30_oEC_ICG.edison/run
map_fl=${DATA}/maps/map_ne30np4_to_fv129x256_aave.20150901.nc
# Pipe list to stdin
cd $drc_in;
ls *mdl*000[1-9]*.nccam.h0.0[012]??* | ncclimo -v T,Q,RH -s 1 -e 9 -o --dbg=0 --yr_srt=1 --yr_end=250 --var=FSNT,AODVIS --map=${map_fl} --drc_out=$drc_out
# List as positional arguments
ncclimo -v TFSNT,Q,RHAODVIS -s 1 -e 9 -o $drc_out $drc_in/*mdl*000[1-9]*.nc
# Read directory
ncclimo -v T,Q,RH -s 1 -e 9 -i $drc_in -o $drc_out

Assuming

...

each

...

input

...

file

...

is

...

a

...

monthly

...

average

...

comprising

...

the

...

variables

...

T

...

,

...

Q

...

,

...

and

...

RH

...

,

...

then

...

the

...

output

...

will

...

be FSNT_000101_000912.nc

...

 and AODVIS_000101_

...

000912.nc

...

.

...

 ncclimo reshapes the input so that the outputs are continuous timeseries of each variable taken from all input files.  When necessary, the output is split into segments each containing no more than ypf_max (default 50) years-per-file, i.e., FSNT_000101_005012.nc

...

,

...

FSNT_005101_009912.nc

...

,

...

FSNT_010001_014912.nc

...

,

...

etc. Change the maximum number of years-per-output-file with the --ypf_max=ypf_max option.

Coupled Runs:

ncclimo works on all ACME models. It can simultaneously generate climatologies for a coupled run, where climatologies mean both native and regridded monthly, seasonal, and annual averages as per the AG specification. Here are template commands for a recent simulation:

...