Development towards Version 2 of the VISION project toolkit
VISION-toolkit
repository,
and consult the documentation there. (When this code is ready it will be copied to that
repository as its canonical home and marked as Version 2.0 of the toolkit.)
-
Install the toolkit by cloning this repository and running
pip install -e .
in the root directory of it. Note you do not need to do this to run the script, since you can run it withpython visiontoolkit/visiontoolkit.py
, but with that installation you can run and use the commandvisiontoolkit
instead of having to call the script with the Python interpreter. -
The environment you need will to run it requires a custom branch of cf-plot, and otherwise you will need all the dependencies of that and of cf-python. So, to get the right Python environment (
conda
and/ormamba
will make it simplest):-
Ensure you are using Python version 3.10 or later.
-
Install the latest cf-python and cf-plot (noting in the latter case this is mostly to ensure you have the right dependencies because we will then go on to install a specific branch from cf-plot as below). To do this, see the instructions at:
-
You need the latest version of cf-plot on a specific branch where a special bug-fix patch has been applied, so use the
generalise-traj
branch required using the following command:pip install git+https://github.com/NCAS-CMS/cf-plot.git@generalise-traj
-
The script has now been given minimal packaging so it can be run as a command after installation as per the above instructions. See the available CLI from running:
$ visiontoolkit --help
For example, this repository contains example configuration files for running with both UM and WRF model inputs, though note both assume pre-processing has been done on the input data to ensure correct form and CF Compliance (more information will be added about this here soon):
$ cd visiontoolkit
$ visiontoolkit --config-file="configurations/um-faam-stanco-1.json"
or using WRF model input:
$ cd visiontoolkit
$ visiontoolkit --config-file="configurations/wrf-faam-stanco-1.json"