generated from erosita/uds
setup
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# Arches cluster, a search for non-thermal emission
|
# Arches cluster
|
||||||
|
|
||||||
Содержит код для обработки данных XMM-Newton для звездного скопления Арки (Arches cluster).
|
Содержит код для обработки данных XMM-Newton для звездного скопления Арки (Arches cluster).
|
||||||
|
|
||||||
|
22
arches/pyproject.toml
Normal file
22
arches/pyproject.toml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
[project]
|
||||||
|
name = "arches"
|
||||||
|
description = "Arches cluster"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = [
|
||||||
|
{ name = "Roman Krivonos", email = "krivonos@cosmos.ru" }
|
||||||
|
]
|
||||||
|
dependencies = [
|
||||||
|
"pandas",
|
||||||
|
"numpy"
|
||||||
|
]
|
||||||
|
|
||||||
|
[project.optional-dependencies]
|
||||||
|
dev = [
|
||||||
|
"tox",
|
||||||
|
"pre-commit",
|
||||||
|
"bump2version"
|
||||||
|
]
|
||||||
|
|
||||||
|
[flitbuild-system]
|
||||||
|
build-backend = "flit_core.buildapi"
|
||||||
|
requires = ["flit_core >=3.2,<4"]
|
@@ -1,8 +1,8 @@
|
|||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
|
|
||||||
setup(name="uds",
|
setup(name="arches",
|
||||||
version="0.1",
|
version="0.1",
|
||||||
description='eROSITA UDS field analysis',
|
description='XMM data analysis for Arches cluster',
|
||||||
author='Roman Krivonos',
|
author='Roman Krivonos',
|
||||||
author_email='krivonos@cosmos.ru',
|
author_email='krivonos@cosmos.ru',
|
||||||
url='https://www.srg.cosmos.ru',
|
url='https://www.srg.cosmos.ru',
|
38
scripts/01_init_events.py
Executable file
38
scripts/01_init_events.py
Executable file
@@ -0,0 +1,38 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
from pysas.wrapper import Wrapper as w
|
||||||
|
import os, sys
|
||||||
|
|
||||||
|
from arches.utils import *
|
||||||
|
from arches.config import *
|
||||||
|
|
||||||
|
root_path=dirname(dirname(dirname(inspect.getfile(arches))))
|
||||||
|
print("Arches root path: {}".format(root_path))
|
||||||
|
|
||||||
|
sys.exit()
|
||||||
|
|
||||||
|
root='/data/xmm'
|
||||||
|
|
||||||
|
inargs = ['--version']
|
||||||
|
t = w('sasver', inargs)
|
||||||
|
t.run()
|
||||||
|
|
||||||
|
obsid='0862470501'
|
||||||
|
local_ccf=f'{root}/work/{obsid}/ccf.cif'
|
||||||
|
work_dir=f'{root}/work/{obsid}'
|
||||||
|
|
||||||
|
os.environ['SAS_ODF'] = f'{root}/arc/{obsid}/odf/'
|
||||||
|
|
||||||
|
if not os.path.exists(work_dir):
|
||||||
|
os.makedirs(work_dir)
|
||||||
|
|
||||||
|
os.chdir(work_dir)
|
||||||
|
|
||||||
|
if not os.path.exists(local_ccf):
|
||||||
|
w('cifbuild', []).run()
|
||||||
|
else:
|
||||||
|
print("Skip cifbuild, SAS_CCF = {}".format(local_ccf))
|
||||||
|
|
||||||
|
os.environ['SAS_CCF'] = local_ccf
|
||||||
|
|
||||||
|
print(os.environ['SAS_CCF'])
|
Reference in New Issue
Block a user