Skip to content

Commit

Permalink
Fixed a bunch of typos
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Feb 22, 2022
1 parent cee9866 commit c5c6c74
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions examples/global-lunar-bombardment/ctem.in
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ runtype single ! Run type: options are normal /

! CTEM required inputs
seed 76535 ! Random number generator seed
gridsize 2000 ! Size of grid in pixels
gridsize 200 ! Size of grid in pixels
numlayers 10 ! Number of perched layers
pix 3.08e3 ! Pixel size (m)
pix 3.08e4 ! Pixel size (m)
mat rock ! Material (rock or ice)
! Bedrock scaling parameters
mu_b 0.55e0 ! Experimentally derived parameter for bedrock crater scaling law
Expand Down
6 changes: 3 additions & 3 deletions python/ctem/ctem/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def __init__(self, param_file="ctem.in"):
self.user['ncount'] = 1

# Write ctem.dat file
io.write_datfile(self.user, self.seedarr)
io.write_datfile(self.user, self.output_filenames['dat'], self.seedarr)
else:
self.user['ncount'] = 0

Expand Down Expand Up @@ -212,10 +212,10 @@ def process_interval(self, isnew=True):
self.pdist = io.read_formatted_ascii(self.output_filenames['pdist'], skip_lines=1)

# Read impact mass from file
impact_mass = io.read_impact_mass(self.output_filenames['massfile'])
impact_mass = io.read_impact_mass(self.output_filenames['impmass'])

# Read ctem.dat file
io.read_ctemdat(self.user, self.seedarr)
io.read_datfile(self.user, self.output_filenames['dat'], self.seedarr)

# Save copy of crater distribution files
if isnew:
Expand Down
5 changes: 2 additions & 3 deletions python/ctem/ctem/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,12 +228,11 @@ def image_shaded_relief(user, DEM):
return user


def read_datfile(user, seedarr):
def read_datfile(user, datfile, seedarr):
# Read and parse ctem.dat file
datfile = user['workingdir'] + 'ctem.dat'

# Read ctem.dat file
print('Reading input file ' + user['datfile'])
print('Reading input file ' + datfile)
fp = open(datfile, 'r')
lines = fp.readlines()
fp.close()
Expand Down

0 comments on commit c5c6c74

Please sign in to comment.