forked from EmmaAlexander/EMU-Zoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.py
109 lines (96 loc) · 4.97 KB
/
settings.py
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# -*- coding: utf-8 -*-
"""
Created on Mon Feb 5 14:30:20 2024
Initialise directories for testing among other variable components.
@author: Soheb Mandhai
"""
# =============================================================================
# Field Settings
# =============================================================================
SB_dic = {
"9287":"106",
"9325":"76",
"9351":"78",
"9410":"82",
"9434":"90",
"9437":"88",
"9442":"86",
"9501":"92",
"10083":"98",
"10635":"108"
}
SB="10635"#9351"#'9442'
component_number = SB_dic[SB]#"78"#86
cat_type="component_new"#"component_new"#"island"#True#True
# =============================================================================
# Directories
# =============================================================================
#INPUTS
prefix= "../sample_data/des/"#"/mnt/shared/"
dataloc=prefix+"askap_data/"#'/mnt/shared/des/askap_data/' #askap data location
WISEfiles_dir=prefix+'WISEtiles/*.fits' #WISE raw data tiles location
DESfiles_dir=prefix + 'DEStiles/' #WISE raw data tiles location
if cat_type=='island':
cat_sub = "catalogue/AS101_Continuum_Island_Catalogue_{}.csv"#'catalogues/AS101_Continuum_Component_Catalogue_{}_78.csv'
elif cat_type=='catwise':
cat_sub= "catalogue/emu_with_catwise2020_desdr1_scos_desi_nocutoff.csv"
elif cat_type== "component":
cat_sub = "catalogue/AS101_Continuum_Component_Catalogue_{}_{}.csv"#'catalogues/AS101_Continuum_Component_Catalogue_{}_78.csv'
elif cat_type== "component_new":
cat_sub = "catalogues/AS101_Continuum_Component_Catalogue_{}_{}.csv"#'catalogues/AS101_Continuum_Component_Catalogue_{}_78.csv'
else:
print("Valid catalogue filetype not specified in settings.")
WISEtiles= 'WISE_tiles.txt'
DEStiles= 'DES_tiles_dims.txt'
#OUTPUT
radio_output=prefix+'phase1_radio_cutouts/SB'
overlayloc = prefix+'phase1_radio_cutouts/SB'
"For excluded sources"
exclusion_list = prefix+"excluded_sources.csv"
exclusion_dir = prefix+"excluded_radio_cutouts/"
# =============================================================================
# Source Settings
# =============================================================================
use_file= False# If True, set override_src to the file name of the source list
override_src = ["J202710-530638"]#["J202715-553043","J202505-540405","J210240-552627","J202710-530638","J202254-540537"]#"J202505-540405"#'J202254-540537' #Default =None
override_src = ["J220702-520942"]
override_src = ["J203954-503625"]
override_src = ["J203948-500114"]
override_src=["J214008-514841"]
override_src= ["J221738-521627"] #Broken Wise source
#override_src= ["J222549-513937"]
#override_src = prefix+'beta_test_subject_ids.txt'
#override_src = None
#override_src= "J203605-532105"#"J202710-530638"# "J203638-532628"#"J210102-582918"
#Note: If you are using a file, ensure the source names are in the first column
# override_src= ["J211525-531726","J211547-532405",]#"J211507-501139"##9434
# override_src= ["J204554-510432","J204221-494947","J210524-531430","J204539-505452","J205505-502604","J211447-510910"]#"J211507-501139"##9287
# override_src= ["J210337-490023","J204310-510020","J210951-531001","J210957-531003","J211536-485429"]#"J211507-501139"##9287
# override_src = "duplicate_sources.dat" #<- Validation for duplicates
# override_src = prefix + "complexity_sources/SB{}_subject_list_PhaseI_RGZ-EMU_cpx_ab4000_majax_ab20.csv".format(SB)
# override_src = "J210920-623103"#"J205308-535913"#"J205913-481721"
#override_src = prefix + "complexity_sources/subject_list_PhaseI_RGZ-EMU_cpx_ab4000_majax_ab20.csv".format(SB)
# =============================================================================
# Contour Settings
# =============================================================================
cont_limit = 8
# =============================================================================
# Additional Options
# =============================================================================
remove_single_contours = True #Remove single contours outside of target?
create_cutout = True #Create cutout of default view?
export_fits_cutout=True #Create fits cutout?
cutout_dir = prefix+'phase1_radio_cutouts_6x6/'
use_cross = True #Put a cross_hair on 6x6 cutout sources
skip_plotting = False#True #Default: False
skip_cutout_plotting = False #Default: False
mask_value = 100#100 #Masked value
duplicate_sources = "duplicate_sources.dat"
selavy_convention = True#Uses the selavy lettering convention BUT needs to have this in the catalogue file, column before component names
extract_contours = True #Extracat contours from radio source
extract_contours_dir = prefix+"contours/" #Directory to save contours in
# =============================================================================
# ADVANCED OPTIONS - DO NOT CHANGE UNLESS YOU KNOW WHAT YOU'RE DOING
# =============================================================================
field_ref = 'SB' #Reference to field
overwrite = True #Overwrite existing files, default=False