Skip to content

Commit

Permalink
Updated the regolith image generator to use a the magma color map ins…
Browse files Browse the repository at this point in the history
…tead of spectral. Also updated the ray generation initial conditions to make a higher resolution example.
  • Loading branch information
daminton committed Apr 25, 2024
1 parent 0bdaa68 commit 2a51b1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ctem/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
8 changes: 4 additions & 4 deletions examples/ray-generation-test-environment/ctem.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2a51b1a

Please sign in to comment.