-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuvfit2txt.map
45 lines (37 loc) · 1.63 KB
/
uvfit2txt.map
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
!----- AUTHOR:
! Chentao Yang, [email protected].
!
!----- FUNCTION:
! Extract spectrum from UVFIT file. The noise is
! calculated based on the UV-fitting procedure.
!
!----- INPUT (prompt, interactive):
! filename, polygon
!
!----- OUTPUT:
! "name".dat;
!
!----- USAGE:
! 1. Select the source 'name'.
! 2. Carefully choose the polygon for the integrated
! region from go view.
!---------------------------------------------------------
!** DEFINE THE VARIABLE 'sou1' AND THE FILENAME
! 'name'.uvfit
say 'name'
say "please check the name before using this scripts"
say "***********************************************"
!** INPUT THE var(sou1) NAME BELOW **
define image sou1 'name'.uvfit read
!*************************************
!** BELOW...FOR ON COMPONENT POINT SOURCE FITTING ONLY...
sic dele 'name'.dat
sic out 'name'.dat
for i 1 to sou1%dim[1]
say 'i' 'sou1[i,4]' 'sou1[i,12]' 'sou1[i,13]'
next
!** OR FOR TWO POINT COMPONENTS, BEFORE USING, UNCOMMENT IT
! for i 1 to sou1%dim[1]
! say 'i' 'sou1[i,4]' 'sou1[i,12]' 'sou1[i,13]' 'sou1[i,29]' 'sou1[i,30]'
! next
sic out