-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpoint_source_limit.pro
executable file
·71 lines (57 loc) · 1.73 KB
/
point_source_limit.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
;; Name: point_soure_limit.pro
;;
;; Date: 2015-03-23
;; Author: Kari A. Frank
;;
;; Purpose: Iteratively add point source until the lobes-only fit
;; is worse at the 90% (or other) level to determine
;; upper limit on point source flux
;;
;;
;; Calling Sequence:
;; point_source_limit,smoothed_image,exptime=exptime,fparsfile=fparsfile
;;
;; Input:
;;
;; smoothed_image -- standard smoothed image created by process.pro
;;
;; exptime -- optionally include observation (filtered) exposure
;; used for the initial count range.
;;
;; fparsfile -- if not given, expects to find this file in the
;; relevant lobes/ directory with the default name
;;
;;
;; Output:
;;
;; outimage -- copy of smoothed_image with a point source added at
;; the upper flux limit. named <smoothed_image>.ptsrclimit
;;
;; outtext -- text file with the quantitative results
;;
;; Usage Notes:
;;
;;
;;
;; Example:
;;
;;
PRO point_source_limit,smoothed_image,exptime=exptime,fparsfile=fparsfile
;;FUNCTION template, arg1, arg2, key1=key1
;-------------------------------------------
; Parse Arguments and Set Defaults
;-------------------------------------------
modeldir='lobes/'
IF NOT KEYWORD_SET(exptime) THEN exptime=48000
IF NOT KEYWORD_SET(fparsfile) THEN fparsfile=modeldir+smoothed_image+'_lobes_fpars.fits'
;-------------------------------------------
; Set Up File Paths
;-------------------------------------------
outimage = modeldir+smoothed_image+'.ptsrclimit'
outtext = modeldir+smoothed_image+'.ptsrclimit.txt'
;-------------------------------------------
;
;-------------------------------------------
;----Subsection 1----
;-Subsubsection 1-
END