-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaper_all.py
More file actions
29 lines (24 loc) · 1.1 KB
/
aper_all.py
File metadata and controls
29 lines (24 loc) · 1.1 KB
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
from os.path import exists
from aper_one_filter import aper_one_filter
if __name__ == '__main__':
# types = ["HotStars", "SolarAnalogs", "ADwarfs"]
types = ["ADwarfs"]
imagefilters = ["F560W", "F770W", "F1000W", "F1130W", "F1280W", "F1500W",
"F1800W", "F2100W", "F2550W", "FND"]
coronfilters = ["F2300C", "F1550C", "F1140C", "F1065C"]
# coronfilters = []
# filters = ["F770W"]
for ctype in types:
for cfilter in imagefilters:
if exists(f"{ctype}/{cfilter}/"):
print(f"{ctype}/{cfilter}/")
aper_one_filter(ctype, cfilter)
if cfilter != "FND":
aper_one_filter(ctype, cfilter, bkgsub=True)
#aper_one_filter(ctype, cfilter, indivcals=True)
#aper_one_filter(ctype, cfilter, indivcals=True, bkgsub=True)
#aper_one_filter(ctype, cfilter, indivmos=True)
for cfilter in coronfilters:
if exists(f"{ctype}/{cfilter}/"):
print(f"{ctype}/{cfilter}/")
aper_one_filter(ctype, cfilter, bkgsub=True)