Repository to run CABLE CNP at a FLUXNET site(s).
Simulations spin the model up to equilibirum using fixed CO2, Ndep & Pdep (depending on what cycles you turn on). Following this, there is a transient simulation from 1850 to the first year of the FLUXNET met file. Finally, a simulation is run for the site years in the FLUXNET file.
You will need a FLUXNET netCDF file and a CO2/Ndep/Pdep input file.
To get started:
$ git clone https://github.com/mdekauwe/CABLE_CNP.git CABLE_CNP
To work, the expectation is that the user will update the relevant entries (paths, library locations, etc) within:
$ initial_setup.py
#------------- User set stuff ------------- #
user = "XXX579"
...
# ------------------------------------------- #
In many cases we recommend you don't change the defaults, e.g. (however things should be robust to you doing as you please)
src_dir = "src"
run_dir = "runs"
log_dir = "logs"
plot_dir = "plots"
The code has been written such that it has very few dependancies to ease personal set up. Nevertheless, it does depend on a few fairly standard python libraries:
All of which can be easily built using anaconda.
To install on raijin in your personal space:
Download the linux anaconda file. Then create an environment called "science" (or whatever sensible name springs to mind).
$ conda create --name science python=3
then
$ source activate science
then
$ conda install xarray matplotlib pandas scipy numpy
If you're working locally on a mac or linux machine, you could as easily use your favourite package manager (e.g. macports, apt-get, etc).