Production

Production#

Cratermaker’s production module provides a robust way to compute the production function for craters and projectiles. The production function is defined as the cumulative number of craters greater than a given diameter per unit m² surface area. There are currently two types of production funcitons that are available in the Production class: “neukum” and “powerlaw”. The default production model depends on the value of the target. If the target is one of the inner planets (or Vesta or Ceres), the default will be “neukum”. For all other bodies, it is “powerlaw”. The “neukum” production function comes in three different versions: “moon”, “mars”, or “projectile.” The “projectile” version is used unless the target is either the Moon or Mars. The default Cratermaker target body is the Moon, and therefore the default production function is “neukum” with the “moon” model. We can create a production function object and inspect its values using the following code:

In [1]: from cratermaker import Production

In [2]: production = Production.maker()

In [3]: print(production)
<Production: neukum>
Generator type: crater
Version: Moon
Valid Time Range: 0 My - 4.500 Gy
Valid Diameter Range: 10.00 m - 1000.0 km

The output shows that by default, the production function is the Neukum model for the Moon, which is described in Neukum, Ivanov, and Hartmann (2001) [1]. It also reports that the “Generator type” is “crater.” A production model can either a crater generator or a projectile generator, which means that the diameter values that are returned from the production function represent either the crater or projectile. The other crater-based model is the Mars version, which is based on the work of Ivanov (2001) [2]. The projectile model is based on the work of Ivanov, Neukum, and Wagner (2001) [3].

The Neukum Moon model has a valid range of ages over which it is valid, which is also reported in the output. The valid range of ages is between 0 and 4.5 Ga, though caution must be used when interpreting ages older than about 3.9 Ga, as these are poorly calibrated. The total crater number density of the most ancient terrains on the Moon correspond to a model age of 4.31 Ga, though the actual crust could potentially be must older than that. Nevertheless, the Neukum model is a well-established and widely used model for inner solar system crater chronology.

The Production class has two primary methods that are used to compute the production function. The first is function(), which computes the expected cumulative number density of craters greater than a given diameter of a surface of a given age. The second is sample(), which samples crater diameters and ages from the production function using Monte Carlo methods.

Production function#

cratermaker.components.production.Production.function() returns the cumulative size-frequency distribution (CSFD) of craters over a given age range and crater diameter. It takes the following arguments:

  • diameter: Crater diameter(s) in units of meters to compute corresponding cumulative number density value.

  • time_start: Starting time in units of My relative to the present, used to compute the CSFD. Default is 1.0, corresponding to 1 Ma. Alternatively age can be used as an alias for time_start.

  • time_end: Ending time in units of My relative to the present, also used to compute the CSFD. Default is 0.0, which corresponds to the present day.

Example: Using Production.function#

For this example, we are going to use function() to find the cumulative number of craters greater than 1 km² to form on a surface in 3 Gy using a power law with a slope of -2.

In [4]: from cratermaker import Production

In [5]: production = Production.maker("powerlaw",slope=-2.0)

In [6]: diameter = 1000.0

In [7]: age = 3000.0

In [8]: n = production.function(diameter=diameter,age=age)

In [9]: print(f"{n*1e6:.2f} D>{diameter*1e-3:.0f} km craters per km² in {age*1e-3:.0f} Gy")
23.65 D>1 km craters per km² in 3 Gy

Example: Plot a power law production function with a slope of -3 for craters 1 m to 100 km over 1 Ga#

In [10]: from cratermaker import Production

In [11]: import matplotlib.pyplot as plt

In [12]: import numpy as np

In [13]: fig, ax = plt.subplots()

In [14]: ax.set_xlabel('D (m)')
Out[14]: Text(0.5, 0, 'D (m)')

In [15]: ax.set_ylabel('$\\mathregular{N_{>D}}$')
Out[15]: Text(0, 0.5, '$\\mathregular{N_{>D}}$')

In [16]: production = Production.maker("powerlaw", slope=-3.0)

In [17]: diameters = np.arange(1, 1e6)

In [18]: pf = production.function(diameter=diameters, age=1000.0)

In [19]: ax.loglog(diameters, pf)
Out[19]: [<matplotlib.lines.Line2D at 0x7778c7e6d090>]

In [20]: plt.show()
../_images/PowerLawExample.png

Example: Using Production.age_from_D_N#

age_from_D_N() returns the age in My for a given crater number density and diameter. It has the following parameters:

  • diameter: Diameter of the crater in m

  • cumulative_number_density: Number density of craters per m² surface area greater than the input diameter.

For this example, we are going to use age_from_D_N() to plot the age in Ma for a number density of 10-6 craters per m² from 1 m to 1 km in diameter.

In [21]: from cratermaker import Production

In [22]: import matplotlib.pyplot as plt

In [23]: import numpy as np

In [24]: production = Production.maker("powerlaw", slope=-2.5)

In [25]: diameters = np.logspace(0, 3)

In [26]: cumulative_number_density = np.full_like(diameters, 1e-6)

In [27]: age = production.age_from_D_N(diameter=diameters, cumulative_number_density=cumulative_number_density)

In [28]: def plot_inv(diameter, age):
   ....:    fig, ax = plt.subplots()
   ....:    ax.set_xlabel('D (m)')
   ....:    ax.set_ylabel('Age (Ma)')
   ....:    ax.loglog(diameters, age)
   ....:    ax.grid(True)
   ....:    return fig
   ....: 

In [29]: fig = plot_inv(diameters, age)

In [30]: plt.show()
../_images/inverse.png

More Production examples#

See more examples at Production Functions and Monte Carlo Utilities

References#