Skip to content

wk1984/python-rpn

 
 

Repository files navigation

## Python RPN (RPNpy) is a collection of Python modules and scripts developed
## at RPN for scientific use.
## Its main purpose is to act as an augmented interface to functions in: 
## * librmn, vgrid: read, manipulate, interpolate and write RPN Std files data
## * burpc: read, manipulate and write BURP files
## in Python with a very simple and minimalist interface while also 
## offering powerful lower level functions for special cases. 
## The Python RPN package can be used for fast prototyping and full development 
## of production scripts.
## It allows to use powerful python data analysis and visualization tools 
## like numpy, scipy and matplotlib among others.

## Note: In order to use Python RPN, you must have 
##       the following shared libraries installed and 
##       their paths set in LD_LIBRARY_PATH, LIBPATH or PYTHONPATH
##       librmn, vgrid (6.0 or later) and burpc 

## ==== Developing code ============================================================

## Basic setup
git clone git@github.com:meteokid/python-rpn.git rpnpy

cd rpnpy
# git checkout -b mybranch python-rpn_VERSION
## You may want to set the librmn and libdesrip (vgrid) versions
## These libraries need to be present in your LD_LIBRARY_PATH or PYTHONPATH
# export RPNPY_RMN_VERSION=${RPNPY_RMN_VERSION:-_015.2}
# export RPNPY_VGD_VERSION=${RPNPY_VGD_VERSION:-shared_6.0.0}
# export RPNPY_BURPC_VERSION=${RPNPY_BURPC_VERSION:-*}
# export AFSISIO=${AFSISIO:-/home/binops/afsi/sio/env_ubuntu-12.04-amd64-64/afsisio}
# export CMCGRIDF=${CMCGRIDF:-/fs/cetusops/fs1/prod/hubs/gridpt/dbase}
# export ATM_MODEL_DFILES=${ATM_MODEL_DFILES:-/home/ordenv/ssm-domains9/release/gem-data_4.2.0/gem-data_4.2.0_all/share/data/dfiles}
. ./.setenv.dot
rm -f lib/rpnpy/version.py
cat >> lib/rpnpy/version.py << EOF
__VERSION__    = "2.0.dev-${USER:-${LOGNAME}}"
__LASTUPDATE__ = "$(date '+%Y-%m-%d %H:%M %Z')"
EOF

## Edit python source in:
## ./lib/
## ./share/tests/

## Test your code modificatons with:
for mytest in share/tests/test_*.py ; do
    python ${mytest}
done

## Once tested you may send your code/patch 
## (or path to your git clone after you commited your changes) 
## to stephane.chamberland@canada.ca
## 
## or do a fork of the project on github and issue a pull request

About

Python RPN (RPNpy) is a collection of Python modules and scripts developed at RPN for scientific use.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 84.5%
  • Python 10.4%
  • Fortran 2.6%
  • Makefile 1.1%
  • Shell 0.9%
  • Pascal 0.4%
  • C++ 0.1%