Skip to content

Latest commit

 

History

History
117 lines (76 loc) · 3.38 KB

README.md

File metadata and controls

117 lines (76 loc) · 3.38 KB

IPSLCM-Utilities

Python utilities to plot and analyse IPSL-CM outputs

Author : mailto:[email protected]

git : https://github.com/oliviermarti/IPSLCM-Utilities

Jupyter notebooks

ORCA_Gallery.ipynb

An eclectic demo of various plots with ORCA outputs, using nemo.py

LMDZ_Gallery.ipynb

A demo of plots with LMDZ outputs, using lmdz.py

Python modules

libIGCM

Some functionnalities of the ksh libIGCM used for running the IPSL models. Dedicated to post processing in Python.

utils

Utilities for the following modules.

sys.py

Defines libIGCM directories, depending of the computer.

date.py

Handles date computations and convertions in different calendars. Mostly conversion of IGCM_date.ksh to python.

Dates format

  • Human format : [yy]yy-mm-dd
  • Gregorian format : yymmdd
  • Julian format : yyddd

Available calendars :

  • leap | gregorian |standard : The normal calendar. The time origin for the julian day in this case is 24 Nov -4713.
  • noleap | 365_day : A 365 day year without leap years.
  • all_leap | 366_day : A 366 day year with only leap years.
  • 360d | 360_day : Year of 360 days with month of equal length.

post.py

A layer above sys.py that read IGCM_catalog.json to automatically get information about key simulations.

plotIGCM

Utilities for post processing of IPSL models outputs

lmdz.py

Utilities for LMDZ grid

  • Lots of tests for xarray object
  • Not much tested for numpy objects

nemo.py

Utilities to plot NEMO ORCA fields. Handles periodicity and other stuff.

  • Lots of tests for xarray object
  • Not much tested for numpy objects

oasis.py

A few fonctionnalities of the OASIS coupler in Python : interpolation.

interp1d.py

One-dimensionnal interpolation of a multi-dimensionnal field

Miscellaneous

IPCC.py

Defines colors recommanded by IPCC

IPCC Visual Style Guide for Authors IPCC WGI Technical Support Unit

https://www.ipcc.ch/site/assets/uploads/2019/04/IPCC-visual-style-guide.pdf

ephemerides.py

Compute time of sun rise and sun set, given a day and a geographical position

(http://www.softrun.fr/index.php/bases-scientifiques/heure-de-lever-et-de-coucher-du-soleil)

All computations are approximate, with an error of a few minutes

More details here : http://jean-paul.cornec.pagesperso-orange.fr/heures_lc.htm

Details for exact computation : https://www.imcce.fr/en/grandpublic/systeme/promenade/pages3/367.html

DailyInso.py

Compute daily insolation. Created on Thu Jun 17 15:20:13 2021. @Author: Didier Paillard. Adapted by Olivier Marti.

couleurs.py

Some useful variables for pretty printing

climM.py

Compute some climatologies

Obsolete : using xcdat directly is simpler and safer

interp1d.py

Intended to interpolate on standard pressure level. All inputs shoud be xarray data arrays.

Obsolete : xgcm is way faster ...

palinsol.py

Copyright (c) 2012 Michel Crucifix [email protected]. When using this package for actual applications, always cite the authors of the original insolation solutions Berger, Loutre and/or Laskar, see details in man pages.

R Code developed for R version 2.15.2 (2012-10-26) -- "Trick or Treat"

Translated (partially) to Python/numpy by Olivier Marti