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 four possible ways (choose your poison):

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
# Read list from file
ls $drc_in/*cam.h0.0[012]??* > input_list
ncclimo --dbg=0 --yr_srt=1 --yr_end=250 --var=FSNT,AODVIS --map=${map_fl} --drc_out=$drc_out < input_list
# Pipe list to stdin
cd $drc_in
ls *cam.h0.0[012]??* | ncclimo --dbg=0 --yr_srt=1 --yr_end=250 --var=FSNT,AODVIS --map=${map_fl} --drc_out=$drc_out
# List as positional arguments
ncclimo -v -var=FSNT,AODVIS -s -yr_srt=1 --e 9 -o yr_end=250 --drc_out=$drc_out $drc_in/*mdl*000[1-9]*.nc
# Read directory
ncclimo -v -var=T,Q,RH -s -yr_srt=1 -e 9 -i -yr_end=250 --drc_in=$drc_in -o -drc_out=$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.ncncclimo 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. The remainder of this documentation refers to climatology-generation mode.

MPAS O/I considerations:

MPAS ocean and ice models currently have their own (non-CESM'ish) naming convention that guarantees output files have the same names for all simulations. By default ncclimo analyzes the "timeSeriesStatsMonthly" analysis member output (tell CZ if you want options for other AM output). ncclimo recognizes input files as being MPAS-style when invoked with "-m mpaso" or "-m mpascice" like this:

...