Skip to content

Commit

Permalink
Added HTRUDeep
Browse files Browse the repository at this point in the history
Also minor change to the _powerlaw function
  • Loading branch information
samb8s committed Mar 26, 2014
1 parent 472bf64 commit f53a3c2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
3 changes: 1 addition & 2 deletions lib/python/populate.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,9 @@ def _powerlaw( minval, maxval, power):
c = -1.0 * logmax * power
nmax = 10.0**(power*logmin + c)

# Dunc's code uses a goto statement
# slightly worried about inf loops here...
while True:
log = logmin + (logmax-logmin)*random.random()
log = random.uniform(logmin, logmax)
n = 10.0**(power*log + c)

if nmax*random.random() <= n:
Expand Down
23 changes: 23 additions & 0 deletions lib/surveys/HTRUD
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
###############################################################################
# model of the hitrun-high multibeam survey - main parameters
###############################################################################
1.0 ! survey degradation factor
0.6 ! antenna gain (K/Jy)
4320. ! integration time (s)
0.064 ! sampling time (ms)
23. ! system temperature (K)
1390 ! centre frequency (MHz)
340 ! bandwidth (MHz)
0.039 ! channel bandwidth (MHz)
2 ! number of polarizations
14. ! full-width half maximum (arcmin)
0. ! minimum RA (deg)
360. ! maximum RA (deg)
-90. ! minimum DEC (deg)
10. ! maximum DEC (deg)
-80 ! minimum Galactic longitude (deg)
30. ! maximum Galactic longitude (deg)
0. ! minimum abs(Galactic latitude) (deg)
3.5 ! maximum abs(Galactic latitude) (deg)
.35 ! fractional survey coverage (0-1)
9.0 ! signal-to-noise ratio

0 comments on commit f53a3c2

Please sign in to comment.