From 2a51b1adb560f6f900c477228b118d1112c8ed9e Mon Sep 17 00:00:00 2001 From: David A Minton Date: Thu, 25 Apr 2024 14:10:35 -0400 Subject: [PATCH] Updated the regolith image generator to use a the magma color map instead of spectral. Also updated the ray generation initial conditions to make a higher resolution example. --- ctem/util.py | 2 +- examples/ray-generation-test-environment/ctem.in | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ctem/util.py b/ctem/util.py index 00922421..0597c9a4 100644 --- a/ctem/util.py +++ b/ctem/util.py @@ -136,7 +136,7 @@ def image_regolith(user, regolith): height = user['gridsize'] / dpi width = height fig = plt.figure(figsize=(width, height), dpi=dpi) - fig.figimage(regolith_scaled, cmap=cm.nipy_spectral, origin='lower') + fig.figimage(regolith_scaled, cmap=cm.magma, origin='lower') plt.savefig(filename) plt.close() diff --git a/examples/ray-generation-test-environment/ctem.in b/examples/ray-generation-test-environment/ctem.in index 48d1a8f5..c297424a 100644 --- a/examples/ray-generation-test-environment/ctem.in +++ b/examples/ray-generation-test-environment/ctem.in @@ -20,9 +20,9 @@ runtype single ! Run type: options are normal / ! CTEM required inputs seed 1108267 ! Random number generator seed -gridsize 1000 ! Size of grid in pixels +gridsize 2000 ! Size of grid in pixels numlayers 10 ! Number of perched layers -pix 6.16e3 ! Pixel size (m) +pix 10.0 ! Pixel size (m) mat rock ! Material (rock or ice) ! Bedrock scaling parameters mu_b 0.41d0 ! Experimentally derived parameter for bedrock crater scaling law @@ -73,11 +73,11 @@ Kd1 0.00312669649143281 psi 2.000 fe 10.0 dorays T -ejecta_truncation 50.0 +ejecta_truncation 60.0 ! Testing input. These are used to perform non-Monte Carlo tests. testflag T ! Set to T to create a single crater with user-defined impactor properties -testimp 15e3 ! Diameter of test impactor (m) +testimp 15.0 ! Diameter of test impactor (m) testvel 18.3e3 ! Velocity of test crater (m/s) testang 90.0 ! Impact angle of test crater (deg) - Default 90.0 testxoffset 0.0d0 ! x-axis offset of crater center from grid center (m) - Default 0.0