Generates a temperature profile using the generalised moist pseudoadiabat and a prescribed stratosphere. Calculates radiative fluxes using SOCRATES.
Pronounced jan-us. Jan as in "january", and us as in the collective pronoun.
The documentation for JANUS can be found here.
README.md- This filesrc/janus/data/- Janus data filessrc/janus/modules/- Utility python scriptssrc/janus/utils/- Utility python scriptsexamples/- Typical use scriptstools/- Useful tools
Note: The standard way of installing JANUS is within the PROTEUS Framework, as described in the PROTEUS installation guide. The steps below are for a standalone developer installation only.
Prerequisites: git, Python 3.10+ (3.11 recommended), a Fortran/C build toolchain (gfortran, gcc, make), and NetCDF tools with NetCDF-Fortran development headers. See detailed installation instructions for more information.
conda create -n janus python=3.11 -y
conda activate janusA helper script clones and builds SOCRATES:
bash tools/get_socrates.sh /path/to/socratesIf the path argument is omitted, SOCRATES is cloned into a socrates/ subdirectory of the current working directory. Once built, add the following to your ~/.bashrc or ~/.zshrc:
export RAD_DIR=/path/to/socratesgit clone git@github.com:FormingWorlds/JANUS.git
cd JANUS
pip install -e .Set FWL_DATA to define where spectral and stellar data are stored:
export FWL_DATA=/path/to/fwl_dataDownload the default datasets:
janus download spectral
janus download stellarTo download a specific spectral dataset with a given number of bands:
janus download spectral -n Frostflow -b 4096janus envThis prints the resolved locations of RAD_DIR and FWL_DATA.
In the examples/ folder you can find Python scripts showing typical use cases and workflows for atmosphere modelling with JANUS.