Example Gallery#
Below you will find a selection of examples that demonstrate how to use Cratermaker. The gallery is organized by the main components of Cratermaker. Each example is fully working and can be run directly.
Simuation and Visualization#
This section provides examples of how to run simulations using the main Simulation component of Cratermaker to emplace craters on a surface and visualize the results with various tools.
Manually emplace a single crater on the Moon and visualize it with PyVista
Run a simulation of the Moon and visualize with PyVista
Run a simulation of the Moon with basins emplaced using QuasiMC mode
Emplace a crater a specific distance and bearing from the center of a HiResLocalSurface
Export Cratermaker data to GeoPackage and visualize with GeoPandas
Production Functions and Monte Carlo Utilities#
This section provides examples of how to generate both projectile and crater populations using the Production component, as well as how to use the functions contained in the Monte Carlo utilities.
Plot the NPF Chronology function for the Moon and Mars
Sample a power law and lunar Neukum Production Function
Plot a distribution of random velocities given a mean
Plot isochrons for the Moon and Mars for 1 Ma, 1 Ga, and 4 Ga using the Neukum Production Function
Projectiles and Scaling#
This section provides examples of the use of the Projectile and Scaling components of Cratermaker to model projectil populations and projectile-crater size scaling relationships.
Plot a distribution of random velocities given a mean
Topography#
This section provides examples of how to use the Surface and Morphology components of Cratermaker to model the surface topography of craters and the topographic evolution of cratered surfaces.
Create a crater and ejecta profile with the “basicmoon” morphology model
Create a shaded topographic representation of a crater
Counting#
This section provides examples of how to use the Counting component of Cratermaker to analye crater statistics from a Cratermaker simulation.
Fit a crater rim given a DEM and approximate crater size and location