File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 33import numpy as np
44import math
55
6- def get_thets (wlen , save = True ):
6+ def get_thets (wlen , save = True , returnbins = False , verbose = False ):
77 """
88 Determine the values of theta for RHT output. These are determined by the window length (wlen)
99 by Equation 2 in Clark+ 2014.
1010 """
1111
1212 ntheta = math .ceil ((np .pi * np .sqrt (2 )* ((wlen - 1 )/ 2.0 )))
13- print ('ntheta is {}' .format (ntheta ))
13+ if verbose :
14+ print ('ntheta is {}' .format (ntheta ))
1415 dtheta = np .pi / ntheta
1516
1617 #Thetas for binning
@@ -23,7 +24,10 @@ def get_thets(wlen, save = True):
2324 if save == True :
2425 np .save ('thets_w' + str (wlen )+ '.npy' , thets )
2526
26- return thets
27+ if returnbins :
28+ return thets , thetbins
29+ else :
30+ return thets
2731
2832def get_RHT_data (xyt_filename = "filename.fits" ):
2933 """
You can’t perform that action at this time.
0 commit comments