Skip to main content

Analysis Scripts for ESM Simulations

Project description

ESM Analysis Documentation Status

Analysis Scripts for ESM Simulations


esm_analysis is the sugar for your bitter CDO-coffee. Check it out:

Install esm_analysis with:

pip install esm_analysis

Go to an experiment:

cd /work/ba0989/a270077/AWICM_PISM/LGM_011

Get a climatology:

esm_analysis newest-climatology temp2
esm_analysis newest-climatology thetao

Calculate AMOC:

esm_analysis amoc

Isn’t that better than this?

outdata_dir=... # oh man now I need to figure out where the outdata is
expid=PI # ...uh...PI, I guess?... # ...I guess I should think of a real name for my output
vars=temp2 # Oh! I know that one!
fileext=".nc" # Aww geez I have no idea. Is it nc? grb? Let's just guess...
# How did cdo work again?
cdo -h select
cdo -h timmmean
# Ok, now I think I know what I want:
cdo -f nc -t echam6 -timmean -select,name=$vars ${outdata_dir}/${expid}_${filepattern}${fileext} $outfile

I’d support the following hypothesis: you clearly don’t want to type all that stuff out. Just say what you want. Easy, right?

The computer should be able to figure out the rest for you. If Google can predict where I get my breakfast, why can’t my computer figure out what CDO command I want to use??



This project was inspired by the many headaches caused by it not existing. Here’s what has happened so far:

0.4.2 (2020-02-04)

  • Closes #4

0.4.1 (2020-02-04)

  • Minor documentation update.

0.4.0 (2020-02-03)

  • FESOM 1.4 climatologies

0.3.4 (2020-01-31)

  • Docs fixup

  • Links in wrong place in README.

0.3.3 (2020-01-31)

  • Adds version information with --version

  • Fixup for multiple files having the requested variable

0.3.2 (2019-12-18)

  • Bad test fix

0.3.1 (2019-12-18)

  • Fixes a permission error

0.3.0 (2019-12-18)

  • Adds utility to parse compute log and provide some statistics on queuing time and throughput

  • If multiple files have the same variable, ask user which filepattern to use

  • Newest climatology for ECHAM6

0.2.0 (2019-12-17)

  • Asks user to create top level file if it isn’t found

0.1.1 (2019-12-17)

  • Process files in chunks for ECHAM6

0.1.0 (2019-08-09)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

esm_analysis-0.4.2.tar.gz (38.2 kB view hashes)

Uploaded Source

Built Distribution

esm_analysis-0.4.2-py2.py3-none-any.whl (35.3 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page