This repository contains code and results associated with a Bayesian framework for paleomagnetic Euler pole inversion and apparent polar wander path analyses. The associated paper in JGR-Solid Earth is:
Rose, I., Zhang, Y., and Swanson-Hysell, N.L. (2022), Bayesian paleomagnetic Euler pole inversion for paleogeographic reconstruction and analysis, JGR: Solid Earth, doi:10.1029/2021JB023890. https://doi.org/10.1029/2021JB023890
The manuscript files be found in this repository: https://github.com/Swanson-Hysell-Group/Bayesian_PEP_inversion_manuscript
This folder contains the Python library.
This folder contains visualizations as well as raw PyMC output from the Jupyter notebooks .
This folder contains compiled data used for generating examples of apparent polar wander path inversions.
This folder contains the pygplates library which is licensed with a CC BY 3.0 license and distributed by the EarthByte group: https://www.earthbyte.org/category/resources/software-workflows/pygplates/
Jupyter notebooks within the main folder of the repository demonstrate the functions of the package, conduct analysis, and develop visualizations that are presented in the accompanying manuscript.
Conda users can use the environment.yml file in the repository to generate a working Conda Python environment that can execute the code in this repository.
In terminal navigate to the repository where the environment.yml file is and type this in the command:
conda env create -f environment.yml
after the environment is installed, activate the environment:
conda activate pymc3_env
Then install ipykernel:
pip install ipykernel
Install the new kernel:
ipython kernel install --user --name=pymc3_env
There is an issue with the package shapely which can produce error of IllegalArgumentException:
when plotting figures.
To solve this, use the command below in your terminal within the activated pymc3_env
to install the shapely package with no binary files.
pip uninstall shapely
pip install shapely --no-binary shapely
With these steps completed, a new kernel will be available in your Jupyter Notebook or Jupyter Lab from the base environment that can be used to run the notebooks.
To see and interact with the notebooks in this study you can open a new terminal window and type:
jupyter lab
When Jupyter Lab launches, you can navigate to the notebooks associated with this study. When you open them, you can change the kernel using the Change Kernel... option in the Kernel menu:
You could select the pymc3_env
kernel:
With that kernel selected, you should be good to go.