previous back to the research page



This page collects some tools that I find useful for climate research. Some of them I've written, all are released under the GPL or BSD licences ... You can also download the course I gave at CRC on the use of NetCDF Operators and Python for netCDF data analysis

modélisation

Cours sur la modelisation donne le 19/11/2004

séminaire NCO + PYTHON du 15 Juin 2004

J'ai mis dans cette section le pdf du cours / séminaire donné le 15 juin 2004 au CRC sur l'utilisation des netCDF operators et de Python pour le traitement et l'analyse des bases de données au format netCDF :

ainsi que les exemples du cours que vous pouvez télécharger sous forme d'archive : à décompresser sous unix avec la commande :

tar -zxvf exemples.tar.gz
Seuls manquent dans cette archive (pour des raisons de place) les fichiers de données brutes initialement dans le répertoire data ...

filing

Vous ne savez plus ou est passée cette #!\nn"]/@]#! de figure ? vous vous demandez comment vous y retrouver dans vos figures aux noms peu explicites ? utilisez filing pour organiser votre production ...

filing est un script python qui accepte en argument une figure (postcript ou autre) ou une liste de figures et vous pose un ensemble de questions afin de créer une arborescence hyperlien à partir de votre racine, grace a lui vos figures seront bien rangées et commentées au fur et à mesure que vous les sortez, et directement consultables dans votre navigateur préferé (les ps et eps sont convertis en png gràce à gs)

le mieux est encore de l'essayer (copiez le quelquepart dans votre PATH : ${HOME}/bin par ex), il est raisonnablement commenté pour que son usage soit transparent ... et pour toute question contactez-moi.

N.B: Le principe d'une arborescence html pour ranger sa production de figures est inspirée du site WWW de William S. Kessler

shell and python scripts for NCEP / DOE II reanalysis data

Here are some shell or python scripts I have written for the management or analysis of the NCEP / DOE II 6-hourly dataset. The data is supposed to be in the NetCDF format, one file per year of data, as downloaded from the CDC web site. Sorry for the headers and questions that are in french, I will release enhanced and translated scripts when I will have time ... the scripts come without any warranty, please let me know of any bug you may note.

python

The Python core archive as well as some third party modules for Numerical analysis, statistics ...

The archives and installation procedures are given for both FreeBSD and GNU/Linux OSs. You must have the root privileges on you machine (or ask your sysadmin).

GRADS

xgrads-bsd.tar.gz is an archive containing the grads executables for FreeBSD, taken from Sam Drinkard (sam@WA4PHY.NET). I use it on FreeBSD 5.1 but it should work fine for older versions. If you are using GNU/linux, please consider getting the latest versions of linux binaries from http://www.grads-iges.org.

To install the FreeBSD binaries:

1: Uncompress and untar the xgrads-bsd.tar.gz archive in some temporary directory: you should get following executables:
wgrib
xgrads
xgribmap
xgribscan
xgxps
xgxtran
xstnmap

just copy them into /usr/local/bin. You can also create some convenient soft links, e.g.:
# ln -s /usr/local/bin/xgrads /usr/local/bin/grads
# ln -s /usr/local/bin/xgrads /usr/local/bin/gradsnc
# ln -s /usr/local/bin/xgxps /usr/local/bin/gxps

2: Uncompress and untar the grads_data.tar.gz archive. You should get the following files:
font0.dat
font1.dat
font2.dat
font3.dat
font4.dat
font5.dat
hires
lowres
mres
udunits.dat
udunits.dat goes to /usr/local/udunits/etc/
e.g.:
# mkdir /usr/local/udunits/
# mkdir /usr/local/udunits/etc
# cp udunits.dat /usr/local/udunits/etc/.

The other files go to /usr/local/lib/grads/
e.g.:
# mkdir /usr/local/lib/grads/
# cp font* *res /usr/local/lib/grads/.

some netCDF utilities

lats4d.tar.gz contains lats4d (LATS for Dummies: Copyright (c) 1998-1999 A. da Silva) : A minimum fuss gs script for writing NetCDF, HDF-SDS or GRIB files from GrADS using the PCMDI LATS interface (http://www-pcmdi.llnl.gov). A simple shell script is also present that allows to make conversion from GRADS IEEE binary files to netCDF from the command line.

To use it:

Uncompress and untar the lats4d.tar.gz archive in some temporary directory: you should get following files
lats4d
lats4d.gs
lats4d.man
lats4d is the shell-script : it must go somewhere in your path (e.g. $HOME/bin).
lats4d.gs is the GRADS script itself : it must go in the directory defined by your $GASCRP variable.
lats4d.man is the documentation.


back to my Homepage back to "Centre de Recherches de Climatologie" Homepage