Spaces:
Runtime error
Runtime error
Commit
·
f313d2c
1
Parent(s):
ca6b4b2
update notebook
Browse files- notebooks/Colourspace.py +7 -3
notebooks/Colourspace.py
CHANGED
@@ -94,6 +94,8 @@ def plot_som_map(som_data, plot_arg = 'z', vmin=0, vmax=1):
|
|
94 |
#define here the directory containing the photometric catalogues
|
95 |
parent_dir = Path('/data/astro/scratch/lcabayol/insight/data/Euclid_EXT_MER_PHZ_DC2_v1.5')
|
96 |
modules_dir = Path('../data/models/')
|
|
|
|
|
97 |
|
98 |
# +
|
99 |
filename_valid='euclid_cosmos_DC2_S1_v2.1_valid_matched.fits'
|
@@ -113,9 +115,11 @@ ID = cat['ID']
|
|
113 |
VISmag = cat['MAG_VIS']
|
114 |
zsflag = cat['reliable_S15']
|
115 |
|
116 |
-
photoz_archive = Archive(
|
117 |
-
|
118 |
-
|
|
|
|
|
119 |
|
120 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
121 |
|
|
|
94 |
#define here the directory containing the photometric catalogues
|
95 |
parent_dir = Path('/data/astro/scratch/lcabayol/insight/data/Euclid_EXT_MER_PHZ_DC2_v1.5')
|
96 |
modules_dir = Path('../data/models/')
|
97 |
+
filename_calib = 'euclid_cosmos_DC2_S1_v2.1_calib_clean.fits'
|
98 |
+
filename_valid = 'euclid_cosmos_DC2_S1_v2.1_valid_matched.fits'
|
99 |
|
100 |
# +
|
101 |
filename_valid='euclid_cosmos_DC2_S1_v2.1_valid_matched.fits'
|
|
|
115 |
VISmag = cat['MAG_VIS']
|
116 |
zsflag = cat['reliable_S15']
|
117 |
|
118 |
+
photoz_archive = Archive(path_calib = parent_dir/filename_calib,
|
119 |
+
path_valid = parent_dir/filename_valid,
|
120 |
+
only_zspec=False)
|
121 |
+
f = photoz_archive._extract_fluxes(catalogue= cat)
|
122 |
+
col = photoz_archive._to_colors(f)
|
123 |
|
124 |
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
125 |
|