Versions Compared

Key

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

...

  1. Account on crunchy.llnl.gov
  2. Climatology files generated by ncclimo (Generating and Regridding Generate, Regrid, and Split Climatologies (climo files) with NCO and ncclimo). Sample files are available on crunchy for the step-by-step guide below.

...

For illustration, we clone the repository under ~/ACME_code (Note: need to add the SSH key to GitHub account before cloning)

mkdir -p ~/ACME_code

cd ~/ACME_code

git clone git@github.com:ACME-Climate/PreAndPostProcessingScripts.git

...

export PATH=/usr/local/anaconda2/bin:${PATH}

source activate latest

Pre-process climatology files

Note: PMP uses the time variables in the climatology files to determine which months they are for, assuming the file with smallest time is January and so on. This causes problem when the climatology files are created using ncclimo with -a scd option. Since scd means seasonally continuous December (The first month used will be Dec of the year before the start year), the December climatology file will have the smallest time variable. cdscan command in the next step will misplace the input for one month (e.g., the December file for January, etc.).

check_climo.py will check the time variables in the January and December climatology files. If the December file has a smaller time value, it will be added by 365.

python check_climo.py $input_path

Use cdscan to create xml describing input files

Note: Input files are monthly climatology. Don't put seasonal and annual climo files in the input directory.

mkdir xmls

cdscan -x xmls/alpha6_1850_0070-0099.xml /work/golaz1/ACME_simulations/20160520.A_WCYCL1850.ne30_oEC.edison.alpha6_01/pp/clim_rgr/0070-0099/*.nc

...

reg = 'GLB'

#reg = 'NHEX'

#reg = 'SHEX'

#reg = 'TROPICS'

...


Questions?

Chris Golaz may be able to help.

...

Many thanks to Peter Gleckler and Charles Doutriaux (Unlicensed) for their help getting me started with PMP.