Utility functions#
Monte Carlo#
|
Computes random longitude and latitude values. |
Sample impact angles from a distribution centered on 45deg. |
|
Sample impact velocities from a Rayleigh distribution given a mean velocity. |
|
|
Sample diameters from a cumulative size-frequency distribution (SFD). |
|
Sample from a truncated normal distribution that is bounded by 1-sigma stdev. |
General utilities#
|
A property descriptor that tracks user-defined properties. |
|
Normalize geographic coordinates to ensure longitude is within [-180, 180) degrees and latitude within [-90, 90] degrees. |
Validate and normalize a given location into a standard structured format. |
|
Get a list of saved interval numbers from the output directory. |
|
|
Format a value and automatically shift units based on threshold. |
|
Toggle the visibility of a given actor in a PyVista plotter and updates the plotter. |
|
Remove output files and directories for a clean environment. |