We are selecting a sample of clusters for the phase-space analysis. One set of criteria is that the clusters have to be in the SDSS and ALFALFA surveys. A rough cut for the spring sky is
8h < RA < 16h
0 < DEC < 30 deg
We also cut the sample based on recession velocity and X-ray luminosity.
(dat.cz > 6000.) & (dat.logLX > 42.3)
There is some confusion with A2063 vs. NRGs341. The Mahdavi catalog says they are the same, but the
According to NED, here are the position and recession velocity for Abell 2063:
Abell 2063 15h23m01.8s +08d38m22s GClstr 10474 0.034937 230.7578 8.6394
The NED output for RASSCALS NRGs 341 is
WBL 566 15h23m07.0s +08d36m35s GGroup 10840 0.036160
After running this code, run
getNSAcats
getAGCcats
biweight-center-scale.ipynb
In [1]:
from astropy.io import fits
from matplotlib import pyplot as plt
from astropy.table import Table
from astropy.io import ascii
%matplotlib inline
datafile='/Users/rfinn/Dropbox/Research/PhaseSpace/mahdavi2000.fits'
dat = fits.getdata(datafile)
In [2]:
dat.columns
Out[2]:
Here is the code to select the clusters/groups that are in the right RA and Dec range. They are shown with the red squares in the plot below.
In [3]:
keepflag=(dat.DEJ2000 > 0.) & (dat.DEJ2000 < 30.) & (dat.RAJ2000 > 8.5*15) & (dat.RAJ2000 < 15.5*15)
plt.figure(1)
plt.plot(dat.RAJ2000,dat.DEJ2000,'bo',label='RASSCALS')
plt.plot(dat.RAJ2000[keepflag],dat.DEJ2000[keepflag],'rs',label='SDSS+ALFALFA')
plt.xlabel('RA (Deg)')
plt.ylabel('Dec (Deg)')
plt.legend(numpoints=1,loc='lower right')
Out[3]:
Now let's look at the redshift and the X-ray luminosity for the groups/clusters that make the RA/Dec cut.
In [4]:
plt.figure(2)
plt.plot(dat.cz[keepflag],dat.logLX[keepflag],'g^',label='SDSS+ALFALFA')
plt.xlabel('Recession Velocity')
plt.ylabel('log(Lx)')
plt.legend(loc='upper left',numpoints=1)
plt.axhline(y=42.5,ls='--',color='k')
plt.axvline(x=6000,ls=':',color='b')
Out[4]:
We want to apply 2 additional selection criteria. First, we want to eliminate clusters with recession velocities less than 6000 km/s using the following cut:$$ v_r < 6000 \ \rm km/s$$ This is because the SDSS photometry can be unreliable for the nearest galaxies - the automatic reduction software sometimes divides big galaxies into several sources.
Second, we want to select the most X-ray luminous clusters. These will be the most massive clusters and will have the best chance of showing a well-defined phase-space diagram. As a result, we apply the following cut: $$ log_{10}(L_X) > 42.5 $$ The luminosity that we are using is a bit arbitrary at this point and was selected so that we would end up with $\sim 10$ clusters.
In [5]:
sampleflag = keepflag & (dat.cz > 6000.) & (dat.logLX > 42.3)
To find out how many clusters make the RA, Dec, cz and logLX cut, we sum sampleflag. We find that 12 clusters remain from the Mahdavi & Geller 2000 sample. The names and RASSCALS ids of the clusters are listed below.
In [6]:
sum(sampleflag)
Out[6]:
In [7]:
names=dat.Names[sampleflag]
rnames = dat.RASSCALS[sampleflag]
RA=dat.RAJ2000[sampleflag]
Dec=dat.DEJ2000[sampleflag]
vr=dat.cz[sampleflag]
lx=dat.logLX[sampleflag]
for i in range(len(names)):
print '%11s %11s %5.2f'%(names[i],rnames[i],lx[i])
To search for a particular cluster using NED or SDSS Navigator, you must specify the cluster name as:
RASSCALS NRBb 155
Here is one way to write out your data directly into a latex table.
In [8]:
sampledat=dat[sampleflag]
# rename column names that have '_' because latex thinks these should be in math mode
ascii.write(sampledat,output='RASSCALS.tex', Writer=ascii.Latex,latexdict=ascii.latex.latexdicts['AA'],caption='RASSCALS Sub-Sample for Phase Space Analysis',include_names=['RASSCALS','Names','RAJ2000','DEJ2000','N','cz','logsigmap','logLX'],formats={'RAJ2000':'%12.4f','DEJ2000':'%12.4f'})
In [12]:
outfile=open('sample.dat','w')
for i in range(len(rnames)):
if rnames[i] == 'NRGs341':
outfile.write('%11s %12.8f %12.8f %5.4f \n'%('Abell2063',230.7578,8.6394,10410))
else:
outfile.write('%11s %12.8f %12.8f %5.4f \n'%(rnames[i],RA[i],Dec[i],vr[i]))
outfile.close()
In [ ]: