.. _gplately-examples: Examples ======== It is recommended to use a Conda environment to run these examples. Download `this yaml file `__ and run the commands below to start using Jupyter Notebook. .. code:: console $ conda env create --name my-gplately-env --file=env.yaml $ conda activate my-gplately-env $ jupyter notebook Alternatively, you may use Docker to run these examples as well. Use ``-v`` option to access the local directory on the host machine. Visit `this page `__ for details. .. code:: console $ docker pull gplates/gplately $ docker run --rm -ti -v .:/ws -w /ws -p 8888:8888 gplates/gplately .. contents:: :local: :depth: 2 Workflows --------- - `01 - Getting Started`_ A brief overview of how to initialise GPlately's main objects - `02 - Plate Reconstructions`_ Setting up a :py:class:`gplately.PlateReconstruction` object, reconstructing geological data through time. - `03 - Working with Points`_ Setting up a :py:class:`gplately.Points` object, reconstructing seed point locations through time. This notebook uses point data from the Paleobiology Database (PBDB). - `04 - Velocity Basics`_ Calculating plate velocities and plotting velocity vector fields. - `05 - Working with Feature Geometries`_ Processing and plotting assorted polyline, polygon and point data from `GPlates 2.3's sample data sets`_. - `06 - Rasters`_ Reading, resizing, resampling raster data, and linearly interpolating point data onto raster data. - `07 - Plate Tectonic Stats`_ Calculating and plotting subduction zone and ridge data (convergence/spreading velocities, subduction angles, subduction zone and ridge lengths, crustal surface areas produced and subducted, etc.). - `08 - Predicting Slab Flux`_ Predicting the average slab dip angle of subducting oceanic lithosphere. - `09 - Motion Paths and Flowlines`_ Using pyGPlates to create motion paths and flowines of points on a tectonic plate to illustrate the plate's trajectory through geological time. - `10 - Seafloor Grid`_ Defines the parameters needed to set up a :py:class:`gplately.SeafloorGrid` object, and demonstrates how to produce age and spreading rate grids from a set of plate reconstruction model files. - `11 - Andes Fluxes`_ Demonstrates how the reconstructed subduction history along the Andean margin can be potentially used in the plate kinematics analysis and data mining. - `12 - Mutschler World Porphyry Copper Deposits Regional Plots`_ Generates regional plots for Mutschler world porphyry copper deposits. - `13 - Reconstructing Zircon Data`_ Demonstrates how to reconstruct and plot Zircon data on a global map through geological time. .. _`01 - Getting Started`: ../../notebook-html/01-GettingStarted.html .. _`02 - Plate Reconstructions`: ../../notebook-html/02-PlateReconstructions.html .. _`03 - Working with Points`: ../../notebook-html/03-WorkingWithPoints.html .. _`04 - Velocity Basics`: ../../notebook-html/04-VelocityBasics.html .. _`05 - Working with Feature Geometries`: ../../notebook-html/05-WorkingWithFeatureGeometries.html .. _`06 - Rasters`: ../../notebook-html/06-Rasters.html .. _`07 - Plate Tectonic Stats`: ../../notebook-html/07-WorkingWithPlateTectonicStats.html .. _`08 - Predicting Slab Flux`: ../../notebook-html/08-PredictingSlabFlux.html .. _`09 - Motion Paths and Flowlines`: ../../notebook-html/09-CreatingMotionPathsAndFlowlines.html .. _`10 - Seafloor Grid`: ../../notebook-html/10-SeafloorGrids.html .. _`11 - Andes Fluxes`: ../../notebook-html/11-AndesFluxes.html .. _`12 - Mutschler World Porphyry Copper Deposits Regional Plots`: ../../notebook-html/12-MutschlerWorldPorphyryCopperDepositsRegionalPlots.html .. _`13 - Reconstructing Zircon Data`: ../../notebook-html/13-ReconstructingZirconData.html .. _`GPlates 2.3's sample data sets`: https://www.earthbyte.org/gplates-2-3-software-and-data-sets/ .. note:: All the `Jupyter Notebook `__ files of these sample workflows are available `here `__ in the GPlately GitHub repository. Basics ------ - `Hello World <../../notebook-html/hello_world.html>`__ A minimal working example of GPlately. - `Use Plate Model Manager <../../notebook-html/introducing_plate_model_manager.html>`__ Use plate-model-manager to download plate reconstruction models. - `Plot with Cartopy <../../notebook-html/plot_map_with_cartopy.html>`__ Plot a paleo-map using Cartopy. - `Plot with PyGMT <../../notebook-html/plot_map_with_pygmt.html>`__ Plot a paleo-map using PyGMT. - `Reconstruct Files <../../notebook-html/reconstruct_files.html>`__ Reconstruct and plot shapefiles and `other supported files `__. - `Use Your Own Plate Model <../../notebook-html/use_your_own_plate_model.html>`__ Use your own plate model to reconstruct points. - `Save Reconstructed Geometries to Files <../../notebook-html/save_reconstructed_data.html>`__ Save the reconstructed data to shapefiles. - `Shortcut to Create PlateReconstruction and PlotTopologies Objects <../../notebook-html/use_auxiliary_functions.html>`__ Easier way to get PlateReconstruction and PlotTopologies objects from the name of a plate reconstruction model. - `Generate Icosahedron Mesh <../../notebook-html/icosahedron_mesh.html>`__ Generate and visualize Icosahedron mesh. .. note:: The `Jupyter Notebook `__ files of these basic examples are available `here `__.