Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ages work in CTEM as intended, so I've added age analysis routines to analyze_single_run
  • Loading branch information
Austin Blevins committed Jul 3, 2023
1 parent 363f84f commit 0e17987
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
3 changes: 3 additions & 0 deletions python/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions python/analyze_single_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ def aggregate_ages(x,y,depth,n,rego,age,log=False,apollo=False):
for j in range(-n,n+1):
agedist.append(np.zeros(nage))
qmcarray.append(np.zeros(nage))
o,localage,qmcage = find_all_ages(x,y,depth)
o,localage,qmcage = find_all_ages(x+i,y+j,depth,rego,age)
agedist[k] = localage
qmcarray[k] = qmcage
k += 1
Expand Down Expand Up @@ -385,8 +385,8 @@ def aggregate_ages(x,y,depth,n,rego,age,log=False,apollo=False):
#path = '/Users/owner/Desktop/debug/mftest/'
#gridsize = 500
#pix = 12.32e3
gridsize = 100
pix = 61.6e3
gridsize = 500
pix = 12.32e3
pixkm = pix / 1000

apollo_x, apollo_y = find_apollo_coords(gridsize,pix)
Expand All @@ -397,8 +397,8 @@ def aggregate_ages(x,y,depth,n,rego,age,log=False,apollo=False):
rego = ctem.util.read_linked_list_binary(path + '/surface_rego.dat', gridsize)
melt = ctem.util.read_linked_list_binary(path + '/surface_melt.dat', gridsize)
stack = ctem.util.read_unformatted_binary(path + '/surface_stacknum.dat', gridsize, kind='I4B')
meltdist = ctem.util.read_linked_list_binary(path + '/surface_meltdist.dat', gridsize, kind='DP')
age = ctem.util.read_linked_list_binary(path + '/surface_age.dat', gridsize, kind='DP')
meltdist = ctem.util.read_linked_list_binary(path + '/surface_meltdist.dat', gridsize, kind='SP')
age = ctem.util.read_linked_list_binary(path + '/surface_age.dat', gridsize, kind='SP')


surfimg = path + '/surf/surf000001.png'
Expand Down Expand Up @@ -431,4 +431,4 @@ def aggregate_ages(x,y,depth,n,rego,age,log=False,apollo=False):
# craters = ['South Pole-Aitken','Serenitatis','Nectaris','Crisium','Imbrium','Orientale','Iridum','Local']

#aggregate(apollo_x[2],apollo_y[2],5,0,rego,melt,meltdist)
aggregate_ages(apollo_x[2],apollo_y[2],5,0,rego,age,log=False,apollo=True)
aggregate_ages(apollo_x[0],apollo_y[0],5,1,rego,age,log=False,apollo=True)

0 comments on commit 0e17987

Please sign in to comment.