-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'realistic' into visualize3d
- Loading branch information
Showing
7 changed files
with
153 additions
and
33 deletions.
There are no files selected for viewing
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| import numpy as np | ||
| # The Neukum production function | ||
| # Ivanov, Neukum, and Hartmann (2001) SSR v. 96 pp. 55-86 | ||
| def N1lunar(T): | ||
| return 5.44e-14 * (np.exp(6.93*T) - 1) + 8.38e-4 * T | ||
|
|
||
|
|
||
| def Nlunar(D): | ||
| # Lunar crater SFD | ||
| aL00 = -3.0876 | ||
| aL01 = -3.557528 | ||
| aL02 = 0.781027 | ||
| aL03 = 1.021521 | ||
| aL04 = -0.156012 | ||
| aL05 = -0.444058 | ||
| aL06 = 0.019977 | ||
| aL07 = 0.086850 | ||
| aL08 = -0.005874 | ||
| aL09 = -0.006809 | ||
| aL10 = 8.25e-4 | ||
| aL11 = 5.54e-5 | ||
|
|
||
| return np.where((D > 0.01) & (D < 1000.0), | ||
| 10**(aL00 | ||
| + aL01 * np.log10(D) ** 1 | ||
| + aL02 * np.log10(D) ** 2 | ||
| + aL03 * np.log10(D) ** 3 | ||
| + aL04 * np.log10(D) ** 4 | ||
| + aL05 * np.log10(D) ** 5 | ||
| + aL06 * np.log10(D) ** 6 | ||
| + aL07 * np.log10(D) ** 7 | ||
| + aL08 * np.log10(D) ** 8 | ||
| + aL09 * np.log10(D) ** 9 | ||
| + aL10 * np.log10(D) ** 10 | ||
| + aL11 * np.log10(D) ** 11),float('nan')) | ||
|
|
||
| def Rproj(D): | ||
| #Projectile SFD | ||
| aP00 = 0.0 | ||
| aP01 = -1.375458 | ||
| aP02 = 1.272521e-1 | ||
| aP03 = -1.282166 | ||
| aP04 = -3.074558e-1 | ||
| aP05 = 4.149280e-1 | ||
| aP06 = 1.910668e-1 | ||
| aP07 = -4.260980e-2 | ||
| aP08 = -3.976305e-2 | ||
| aP09 = -3.180179e-3 | ||
| aP10 = 2.799369e-3 | ||
| aP11 = 6.892223e-4 | ||
| aP12 = 2.614385e-6 | ||
| aP13 = -1.416178e-5 | ||
| aP14 = -1.191124e-6 | ||
|
|
||
| return np.where((D > 1e-4) & (D < 300), | ||
| 10**(aP00 | ||
| + aP01 * np.log10(D)**1 | ||
| + aP02 * np.log10(D)**2 | ||
| + aP03 * np.log10(D)**3 | ||
| + aP04 * np.log10(D)**4 | ||
| + aP05 * np.log10(D)**5 | ||
| + aP06 * np.log10(D)**6 | ||
| + aP07 * np.log10(D)**7 | ||
| + aP08 * np.log10(D)**8 | ||
| + aP09 * np.log10(D)**9 | ||
| + aP10 * np.log10(D)**10 | ||
| + aP11 * np.log10(D)**11 | ||
| + aP12 * np.log10(D)**12 | ||
| + aP13 * np.log10(D)**13 | ||
| + aP14 * np.log10(D)**14),float('nan')) | ||
|
|
||
| def N1mars(T): | ||
| # Mars crater SFD | ||
| # Ivanov (2001) SSR v. 96 pp. 87-104 | ||
| return 2.68e-14 * (np.exp(6.93 * T) - 1) + 4.13e-4 * T | ||
|
|
||
| def Nmars(D): | ||
| aM00 = -3.384 | ||
| aM01 = -3.197 | ||
| aM02 = 1.257 | ||
| aM03 = 0.7915 | ||
| aM04 = -0.4861 | ||
| aM05 = -0.3630 | ||
| aM06 = 0.1016 | ||
| aM07 = 6.756e-2 | ||
| aM08 = -1.181e-2 | ||
| aM09 = -4.753e-3 | ||
| aM10 = 6.233e-4 | ||
| aM11 = 5.805e-5 | ||
|
|
||
| return np.where((D > 0.01) & (D < 1000.), | ||
| 10**(aM00 | ||
| + aM01 * np.log10(D)**1 | ||
| + aM02 * np.log10(D)**2 | ||
| + aM03 * np.log10(D)**3 | ||
| + aM04 * np.log10(D)**4 | ||
| + aM05 * np.log10(D)**5 | ||
| + aM06 * np.log10(D)**6 | ||
| + aM07 * np.log10(D)**7 | ||
| + aM08 * np.log10(D)**8 | ||
| + aM09 * np.log10(D)**9 | ||
| + aM10 * np.log10(D)**10 | ||
| + aM11 * np.log10(D)**11), | ||
| np.full_like(D, np.nan)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,22 +1,22 @@ | ||
| 1) Install a distribution of Python 2.x to your machine. This source code | ||
| has been tested on Anaconda Python 4.1.1. | ||
| 2) Insure required modules are installed: | ||
| numpy | ||
| os | ||
| scipy | ||
| shutil | ||
| subprocess | ||
| 3) Place the .py files in this directory into the directory you wish | ||
| to execute from, with the required initialization files. For this, | ||
| the IDL directory may be copied, and ctem.in replaced by the one found | ||
| in this directory. | ||
| 4) Inside Anaconda Python, the program can be run through the Spyder2 GUI. | ||
| Outside of Anaconda, the progam can be begun by configuring the ctem.in | ||
| file, then typing | ||
| python < ctem_driver.py | ||
| at the command line. | ||
| 1) Install a distribution of Python 2.x to your machine. This source code | ||
| has been tested on Anaconda Python 4.1.1. | ||
|
|
||
| 2) Insure required modules are installed: | ||
| numpy | ||
| os | ||
| scipy | ||
| shutil | ||
| subprocess | ||
|
|
||
| 3) Place the .py files in this directory into the directory you wish | ||
| to execute from, with the required initialization files. For this, | ||
| the IDL directory may be copied, and ctem.in replaced by the one found | ||
| in this directory. | ||
|
|
||
| 4) Inside Anaconda Python, the program can be run through the Spyder2 GUI. | ||
| Outside of Anaconda, the progam can be begun by configuring the ctem.in | ||
| file, then typing | ||
|
|
||
| python < ctem_driver.py | ||
|
|
||
| at the command line. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters