This commit is contained in:
2023-02-16 19:36:16 +03:00
parent d8e7eb9408
commit 182ede9d0a
3 changed files with 54 additions and 21 deletions

View File

@@ -23,8 +23,9 @@ outkey="mosa_tm0"
root_path=dirname(dirname(dirname(inspect.getfile(uds))))
print("UDS root path: {}".format(root_path))
outfile_subdir=root_path+'/products/'
create_folder(outfile_subdir)
infile_dir=root_path+'/data/processed'
outfile_dir=root_path+'/products'
create_folder(outfile_dir)
index=4
@@ -33,17 +34,19 @@ for tmkey in keylist_tm.keys():
print("TM{} in work... init events".format(tmkey))
for datakey in keylist_tm[tmkey]:
print("--> {}".format(datakey))
""" Подготавливаем списки событий индивидуальных наблюдений """
events.append(init_events(key=datakey, eband_index=eband[index],
subdir=outfile_subdir,
infile_dir=infile_dir,
outfile_dir=outfile_dir,
do_obsmode=True,
do_center=True,
do_evtool=False,
do_evtool=True,
do_expmap=False,
ra_cen=ra_cen, de_cen=de_cen,
emin_kev=emin_kev[index],
emax_kev=emax_kev[index]))
sys.exit()
outfile_evtool="{}_EventList_en{}.fits".format(os.path.join(outfile_subdir,outkey), eband[index])
do_evtool_esass(events=events, outfile=outfile_evtool)
""" Собираем общий список событий """
outfile_evtool="{}_EventList_en{}.fits".format(os.path.join(outfile_dir,outkey), eband[index])
do_evtool_esass(events=events, outfile=outfile_evtool)

View File

@@ -3,4 +3,10 @@
Создает начальные списки событий и помещает их в ```uds/data/processed```
Оригинальные файлы со списками событий задаются в файлах ```uds/data/evtlists/*.txt```
### 02_merge_events.py
Создает объедененный список событий и помещает его в ```uds/products```. Этот список событий нужен, в основном для извлечения спектров с помощью ```srctool```.
Попутно этот скрипт унифицирует оригинальные списки событий для последующей обработки. А именно, корректируются слова OBS_MODE=POINING/SURVEY в зависимости от типа наблюдения и производится центрирование на одни и те же координаты.