mitgcm
Analysis of MITgcm output using python
|
This package provides methods and classes for analysing the output of mitgcm simulations.
Download and install python. I'd recommend Annaconda, it's a nice self-contained python distribution.
The code can be installed through conda using
Or, it can be installed by:
Downloading the code (either by downloading the repo or cloning it into a directory)
Navigating to the download directory and running:
in the terminal
The way that python is setup on ARCHER makes this a little trickier.
Firstly, make sure you've loaded the Anaconda module
Then, create a conda environment called ‘VENV’ with base python installed inside it
activate this environment with
remove the PYTHONPATH and PYTHONHOME variables
If you want to use ipython notebooks, you’ll also need to run
It's also worth adding
to your .bashrc file, so that you don't have to manually do this everytime you log in.
Import the module and instantiate a simulation object:
By using port forwarding when logging in to ARCHER it is possible to run a notebook on ARCHER and access it locally. It's best to run these on the serial nodes. To do this ssh into the login nodes
and from there, ssh into the serial nodes
and run
to launch the notebook server. Then point your web browser towards "http://localhost:11111/" to use the notebook.
An example ipython notebook, and the data it relies on, are in the examples folder. Alternatively, the notebook can be viewed, but not edited, here.
There is also an example for the interpolation functions here