Tested on macOS 10, but should work on relatively recent OS X as well.
xcode-select --installfrom command line
brew install gcc.
brew install open-mpi
brew install --build-from-source hdf5 --with-mpi
brew reinstall --build-from-source netcdf
Note that for the MITgcm as released
netcdf does not require
hdf5 to be compiled with
mpi (though the
MITgcm itself requires
mpi). However, I am developing a parallel-aware netcdf interface for the
MITgcm, so this step is useful.
ipython --pylab. From that command line try something like
jupyter-notebookand open the webpage they suggest. See their website for demos and I’ll give some example python notebooks soon.
conda install xarray dask
pip install xmitgcm
~/MITgcmc66b/MITgcmas that is the last version I downloaded. I download the tar balls as they have been tested. I always get errors from the CVS snapshots.
git clone https://github.com/jklymak/MITgcmExampleSteadyGauss.git
and then follow the instructions at the project README