forked from erosita/uds
upd
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -1,19 +0,0 @@
|
||||
from astropy.io import fits
|
||||
import sys
|
||||
|
||||
#filename='4XMM_DR12cat_slim_v1.0_UDS.fits.catalog'
|
||||
filename='4XMM_slim_DR13cat_v1.0_DEMO.fits'
|
||||
fout=filename.replace(".fits.catalog", ".names.reg")
|
||||
|
||||
hdul = fits.open(filename)
|
||||
#hdul.info()
|
||||
|
||||
tbdata = hdul[1].data
|
||||
hdul.close()
|
||||
|
||||
|
||||
#with open("./{}".format(fout), 'w') as writer:
|
||||
for rec in tbdata:
|
||||
print("fk5;circle({}, {}, 0.008)".format(rec['sc_ra'],rec['sc_dec']))
|
||||
#writer.write("fk5;circle({}, {}, {}) # text={{{}}}\n".format(rec['sc_ra'],rec['sc_dec'],rec['sc_poserr']/3600,rec['IAUNAME']))
|
||||
|
@@ -5,7 +5,8 @@
|
||||
Для вырезки источников для работы с полем UDS была использована эта команда:
|
||||
|
||||
```
|
||||
ftselect '4XMM_DR12cat_slim_v1.0.fits[1]' 4XMM_DR12cat_slim_v1.0_UDS.fits 'SC_RA > 32.75 && SC_RA < 36.31 && SC_DEC > -6.55 && SC_DEC < -3.0' clobber=yes
|
||||
ftselect '4XMM_slim_DR14cat_v1.0.fits[1]' 4XMM_slim_DR14cat_v1.0_Coma.fits 'SC_RA > 185 && SC_RA < 205 && SC_DEC > 20 && SC_DEC < 34.0' clobber=yes
|
||||
|
||||
ftselect '4XMM_DR12cat_v1.0.fits[1]' 4XMM_DR12cat_v1.0_UDS.fits 'SC_RA > 32.75 && SC_RA < 36.31 && SC_DEC > -6.55 && SC_DEC < -3.0' clobber=yes
|
||||
|
||||
Demo with DR13:
|
269
data/4XMM/mosa_all_tm0_attcorr.bck
Normal file
269
data/4XMM/mosa_all_tm0_attcorr.bck
Normal file
File diff suppressed because one or more lines are too long
19
data/4XMM/print_ds9reg.py
Executable file
19
data/4XMM/print_ds9reg.py
Executable file
@@ -0,0 +1,19 @@
|
||||
from astropy.io import fits
|
||||
import sys
|
||||
|
||||
#filename='4XMM_DR12cat_slim_v1.0_UDS.fits.catalog'
|
||||
filename='4XMM_slim_DR14cat_v1.0_Coma.fits'
|
||||
fout=filename.replace(".fits", ".names.reg")
|
||||
|
||||
hdul = fits.open(filename)
|
||||
#hdul.info()
|
||||
|
||||
tbdata = hdul[1].data
|
||||
hdul.close()
|
||||
|
||||
|
||||
with open("./{}".format(fout), 'w') as writer:
|
||||
for rec in tbdata:
|
||||
print("fk5;circle({}, {}, 0.008)".format(rec['sc_ra'],rec['sc_dec']))
|
||||
writer.write("fk5;circle({}, {}, {}) # text={{{}}}\n".format(rec['sc_ra'],rec['sc_dec'],rec['sc_poserr']/3600,rec['IAUNAME']))
|
||||
|
17226
data/Gaia_unWISE/Gaia_unWISE_Coma.fits.catalog
Normal file
17226
data/Gaia_unWISE/Gaia_unWISE_Coma.fits.catalog
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -2,9 +2,9 @@
|
||||
|
||||
Каталог был получен с этого ресурса: https://zenodo.org/record/6837642#.ZAcufYBByRR
|
||||
|
||||
Для вырезки источников для работы с полем UDS была использована эта команда:
|
||||
Для вырезки источников для работы с полем Coma была использована эта команда:
|
||||
|
||||
```
|
||||
ftselect 'Gaia_unWISE_AGNs.fits[1]' Gaia_unWISE_UDS.fits 'RA > 32.75 && RA < 36.31 && DEC > -6.55 && DEC < -3.0' clobber=yes
|
||||
ftselect 'Gaia_unWISE_AGNs.fits[1]' Gaia_unWISE_Coma.fits 'RA > 185 && RA < 205 && DEC > 20 && DEC < 34.0' clobber=yes
|
||||
```
|
||||
|
||||
|
269
data/Gaia_unWISE/mosa_all_tm0_attcorr.bck
Normal file
269
data/Gaia_unWISE/mosa_all_tm0_attcorr.bck
Normal file
File diff suppressed because one or more lines are too long
18
data/Gaia_unWISE/print_ds9reg.py
Executable file
18
data/Gaia_unWISE/print_ds9reg.py
Executable file
@@ -0,0 +1,18 @@
|
||||
from astropy.io import fits
|
||||
import sys
|
||||
|
||||
filename='Gaia_unWISE_Coma.fits.catalog'
|
||||
fout=filename.replace(".fits.catalog", ".reg")
|
||||
|
||||
hdul = fits.open(filename)
|
||||
#hdul.info()
|
||||
|
||||
tbdata = hdul[1].data
|
||||
hdul.close()
|
||||
|
||||
|
||||
with open("./{}".format(fout), 'w') as writer:
|
||||
for rec in tbdata:
|
||||
print("fk5;circle({}, {}, 0.008)".format(rec['RA'],rec['DEC']))
|
||||
writer.write("fk5;circle({}, {}, {})\n".format(rec['RA'],rec['DEC'],0.0080000))
|
||||
|
96
data/eRASS1/print_ds9reg.py
Executable file
96
data/eRASS1/print_ds9reg.py
Executable file
@@ -0,0 +1,96 @@
|
||||
from astropy.io import fits
|
||||
import sys, math
|
||||
|
||||
from astropy_healpix import HEALPix
|
||||
from astropy.coordinates import SkyCoord # High-level coordinates
|
||||
from astropy.coordinates import ICRS, Galactic, FK4, FK5 # Low-level frames
|
||||
from astropy.coordinates import Angle, Latitude, Longitude # Angles
|
||||
import astropy.units as u
|
||||
|
||||
from coma.config import *
|
||||
|
||||
def load_erass1_fits(filename, names=False):
|
||||
|
||||
cen_crd = SkyCoord(ra_cen, de_cen, frame=FK5(), unit="deg")
|
||||
rmax=7.0 # deg
|
||||
|
||||
#filename="erass1-m.fits.gz"
|
||||
|
||||
if(names==True):
|
||||
fout=filename.replace(".fits.gz", ".names.reg")
|
||||
else:
|
||||
fout=filename.replace(".fits.gz", ".reg")
|
||||
|
||||
with open("./{}".format(fout), 'w') as writer:
|
||||
with fits.open(filename, memmap=True) as hdul:
|
||||
hdul.info()
|
||||
|
||||
data = hdul[1].data
|
||||
header = hdul[1].header
|
||||
cols = hdul[1].columns
|
||||
|
||||
|
||||
|
||||
print(cols)
|
||||
#sys.exit()
|
||||
for r in data:
|
||||
#IdCluster = int(r['IdCluster'])
|
||||
#UID = int(r['UId'])
|
||||
#UIDhard = int(r['UIdHard'])
|
||||
#RADEC_ERR = float(r['RADEErr'])
|
||||
#EXT = float(r['EXT'])
|
||||
#s_EXT = r['s_EXT']
|
||||
#EXT_LIKE = r['EXTLike']
|
||||
#DET_LIKE = r['DetLike0']
|
||||
#ML_CTS = r['MLcts1']
|
||||
#s_ML_CTS = r['s_MLcts1']
|
||||
#ML_RATE = r['MLRate1']
|
||||
#s_ML_RATE = r['s_MLRate1']
|
||||
#ML_FLUX = r['MLFlux1']
|
||||
#s_ML_FLUX = r['s_MLFlux1']
|
||||
#ML_EXP = r['MLExp1']
|
||||
name=r['IAUName']
|
||||
poserr=float(r['posErr']) # 1-sigma positional uncertainty
|
||||
ra=float(r['RAdeg'])
|
||||
dec=float(r['DEdeg'])
|
||||
|
||||
P=0.98
|
||||
koeff=math.sqrt(-2*math.log(1-P))
|
||||
|
||||
crd = SkyCoord(ra, dec, frame=FK5(), unit="deg")
|
||||
sep=crd.separation(cen_crd).deg
|
||||
if(sep < rmax):
|
||||
print(ra,dec,sep)
|
||||
if(names==True):
|
||||
writer.write("fk5;circle({}, {}, {}) # text={{{}}}\n".format(ra,dec,poserr/60/60, name))
|
||||
else:
|
||||
writer.write("fk5;circle({}, {}, {})\n".format(ra,dec,poserr/60/60))
|
||||
|
||||
load_erass1_fits("erass1-m.fits.gz")
|
||||
load_erass1_fits("erass1-s.fits.gz")
|
||||
load_erass1_fits("erass1-h.fits.gz")
|
||||
|
||||
load_erass1_fits("erass1-m.fits.gz", names=True)
|
||||
load_erass1_fits("erass1-s.fits.gz", names=True)
|
||||
load_erass1_fits("erass1-h.fits.gz", names=True)
|
||||
|
||||
|
||||
|
||||
"""
|
||||
#filename='4XMM_DR12cat_slim_v1.0_UDS.fits.catalog'
|
||||
filename='4XMM_slim_DR14cat_v1.0_Coma.fits'
|
||||
fout=filename.replace(".fits", ".names.reg")
|
||||
|
||||
hdul = fits.open(filename)
|
||||
#hdul.info()
|
||||
|
||||
tbdata = hdul[1].data
|
||||
hdul.close()
|
||||
|
||||
|
||||
with open("./{}".format(fout), 'w') as writer:
|
||||
for rec in tbdata:
|
||||
print("fk5;circle({}, {}, 0.008)".format(rec['sc_ra'],rec['sc_dec']))
|
||||
writer.write("fk5;circle({}, {}, {}) # text={{{}}}\n".format(rec['sc_ra'],rec['sc_dec'],rec['sc_poserr']/3600,rec['IAUNAME']))
|
||||
|
||||
"""
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user