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 either an upper and lower bound, or if None is provided, by the 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. |
|
|
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. |
Add a help message to a PyVista plotter with instructions for user interactions. |
|
|
Remove output files and directories for a clean environment. |