Galaxies that are missing from Simard+2011

Summary

  • A total of 44 galaxies are not in galfit sample
  • 31/44 are not in the SDSS catalog, so these would not have been targeted by Simard+2011
  • this is not true because simard drew from phot catalog. Need to check all.
  • 1 arcmin cutouts show: 5 have a bright star overlapping or nearby the galaxy, 2 have a close companion.
  • 69538 has problem with NSA coords
  • 68342 - not in DR7 for some reason

By galaxy:

  • NSAID 70630 (202.306824, 11.275839)

    • STATIONARY BAD_MOVING_FIT BINNED1 INTERP COSMIC_RAY CHILD
    • r = 13.87 (too bright)
  • NSAID 70685 (202.269455, 12.238585)

    • DEBLENDED_AT_EDGE STATIONARY MOVED BINNED1 DEBLENDED_AS_PSF INTERP CHILD,
    • affected by point source that is offset from center of galaxy. might a foreground star.
    • (blended)
  • NSAID 43712 (244.129181, 35.708172)

    • BINNED1 INTERP COSMIC_RAY CHILD
    • r = 13.66 (too bright)
  • NSAID 69538 (244.060699, 34.258434)

    • NSA has problem with coords, chose nearby pt source rather than galaxy
    • STATIONARY BINNED1 INTERP COSMIC_RAY CHILD
    • r = 18.83 (too faint)
  • NSAID 18158 (219.578888, 3.639615)

    • PSF_FLUX_INTERP INTERP_CENTER BAD_MOVING_FIT BINNED1 NOTCHECKED SATURATED INTERP COSMIC_RAY CHILD
    • r = 15.31, ext_r = 0.11
    • (not sure)
  • NSAID 68283 (242.047577, 24.507439)

    • not in dr7?
  • NSAID 68286 (241.749313, 24.160772)

    • STATIONARY MOVED BINNED1 INTERP COSMIC_RAY NOPETRO NODEBLEND CHILD BLENDED PrimTarget
    • r = 17.66, ext_r = 0.2 (too faint)
  • NSAID 68299 (240.918945, 24.602676)

    • STATIONARY BINNED1 INTERP COSMIC_RAY CHILD
    • r = 15.4, ext_r = 0.2
    • (not sure) why this is not in simard
  • NSAID 68342 (241.297867, 24.960102)

    • does not come up under dr7 search. get nearby object instead
  • NSAID 113068 (175.995667, 20.077011)

    • STATIONARY MOVED BINNED1 INTERP COSMIC_RAY CHILD
    • r = 13.74, ext_r = 0.06 (too bright)
  • NSAID 72631 (230.999481, 8.508963)

    • MAYBE_CR BAD_MOVING_FIT MOVED BINNED1 INTERP CHILD
    • Type probably not 3
    • r = 16.98, ext_r = 0.1
  • NSAID 103927 (194.490204, 27.443319)

    • STATIONARY BINNED1 INTERP CHILD
    • r = 17.64, ext_r = 0.02 (maybe petro r is too faint?)
    • (too faint?)
  • NSAID 103966 (194.025421, 27.677467)

    • DEBLEND_DEGENERATE BAD_MOVING_FIT MOVED BINNED1 INTERP COSMIC_RAY NODEBLEND CHILD BLENDED
    • r = 15.13, ext_r = 0.02
    • (not sure) why this isn't in simard

In [178]:
%run ~/Dropbox/pythonCode/LCSanalyzeblue.py


normalizing by radius of disk
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%

 prefix = 
all
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:382: RuntimeWarning: invalid value encountered in divide
  self.AGNSTASIN=self.s['AGNSTASIN']& (self.s.HAEW > 0.)
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:382: RuntimeWarning: invalid value encountered in log10
  self.AGNSTASIN=self.s['AGNSTASIN']& (self.s.HAEW > 0.)
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:382: RuntimeWarning: invalid value encountered in greater
  self.AGNSTASIN=self.s['AGNSTASIN']& (self.s.HAEW > 0.)
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:384: RuntimeWarning: invalid value encountered in divide
  self.fcnumerical_error_flag24=self.s['fcnumerical_error_flag24']
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:384: RuntimeWarning: invalid value encountered in log10
  self.fcnumerical_error_flag24=self.s['fcnumerical_error_flag24']
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:384: RuntimeWarning: invalid value encountered in greater
  self.fcnumerical_error_flag24=self.s['fcnumerical_error_flag24']
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:409: RuntimeWarning: divide by zero encountered in log10
  #
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:409: RuntimeWarning: invalid value encountered in log10
  #
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:428: RuntimeWarning: invalid value encountered in greater
  self.emissionflag=((self.s.HAFLUX != 0.) & (self.s.HAFLUX != -9999.) & (self.s.N2FLUX != 0.)) | self.sdssspecflag
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:463: RuntimeWarning: invalid value encountered in greater
  self.zone2=(self.s.DR_R200 > .5) & (self.s.DR_R200 < 1) & (abs(self.dv) < 3.)
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:469: RuntimeWarning: invalid value encountered in sqrt
  self.da=zeros(len(self.s.ZDIST),'f')
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:474: RuntimeWarning: divide by zero encountered in log10
  #self.isorad.NSA=self.isorad.NSA*cos(self.incl)
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:476: RuntimeWarning: divide by zero encountered in log10
  
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:503: RuntimeWarning: divide by zero encountered in log10
  
1800 1800
PREFIX =  all
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%

 prefix = 
no_coma
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:540: RuntimeWarning: divide by zero encountered in divide
  self.galfit_override = [70588,70696,43791,69673,146875,82170, 82182, 82188, 82198, 99058, 99660, 99675, 146636, 146638, 146659, 113092, 113095, 72623,72631,72659, 72749, 72778, 79779, 146121, 146130, 166167, 79417, 79591, 79608, 79706, 80769, 80873, 146003, 166044,166083, 89101, 89108,103613,162792,162838, 89063]
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:540: RuntimeWarning: invalid value encountered in divide
  self.galfit_override = [70588,70696,43791,69673,146875,82170, 82182, 82188, 82198, 99058, 99660, 99675, 146636, 146638, 146659, 113092, 113095, 72623,72631,72659, 72749, 72778, 79779, 146121, 146130, 166167, 79417, 79591, 79608, 79706, 80769, 80873, 146003, 166044,166083, 89101, 89108,103613,162792,162838, 89063]
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:540: RuntimeWarning: invalid value encountered in greater
  self.galfit_override = [70588,70696,43791,69673,146875,82170, 82182, 82188, 82198, 99058, 99660, 99675, 146636, 146638, 146659, 113092, 113095, 72623,72631,72659, 72749, 72778, 79779, 146121, 146130, 166167, 79417, 79591, 79608, 79706, 80769, 80873, 146003, 166044,166083, 89101, 89108,103613,162792,162838, 89063]
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:580: RuntimeWarning: divide by zero encountered in divide
  self.truncflag=(self.sizeratio < 0.7) & self.sampleflag  & ~self.agnflag
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:580: RuntimeWarning: invalid value encountered in divide
  self.truncflag=(self.sizeratio < 0.7) & self.sampleflag  & ~self.agnflag
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:582: RuntimeWarning: invalid value encountered in less
  self.distmod=25.+5.*log10(self.dL)
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:590: RuntimeWarning: invalid value encountered in divide
  self.sigma_ir=np.zeros(len(self.LIR_BEST),'d')
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:591: RuntimeWarning: divide by zero encountered in log10
  self.sigma_irerr=np.zeros(len(self.LIR_BEST),'d')
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:599: RuntimeWarning: invalid value encountered in divide
  
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:599: RuntimeWarning: invalid value encountered in log10
  
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:600: RuntimeWarning: invalid value encountered in divide
  flag=(self.sampleflag & self.dvflag & self.gim2dflag & (self.s.B_T_r == self.s.B_T_r) & (n2ha == n2ha) & (o3hb == o3hb) & (self.sizeratio < 4.) & (self.sizeratioERR < 0.3)) & ~self.agnflag & self.sdssspecflag & self.zooflag #& self.HIflag
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:600: RuntimeWarning: invalid value encountered in log10
  flag=(self.sampleflag & self.dvflag & self.gim2dflag & (self.s.B_T_r == self.s.B_T_r) & (n2ha == n2ha) & (o3hb == o3hb) & (self.sizeratio < 4.) & (self.sizeratioERR < 0.3)) & ~self.agnflag & self.sdssspecflag & self.zooflag #& self.HIflag
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:602: RuntimeWarning: invalid value encountered in less
  
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:651: RuntimeWarning: divide by zero encountered in log10
  pcaoutput[:,9]=self.s.CLUSTER_SIGMA[flag]/(self.s.DR_R200[flag]**2)
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:716: RuntimeWarning: divide by zero encountered in divide
  
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:716: RuntimeWarning: invalid value encountered in divide
  
/Users/rfinn/Dropbox/pythonCode/LCSanalyzeblue.py:338: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; dimension is 7912 but corresponding boolean dimension is 1800
  
//anaconda/lib/python2.7/site-packages/numpy/core/records.py:499: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; dimension is 465 but corresponding boolean dimension is 1800
  obj = super(recarray, self).__getitem__(indx)
WARNING: problem matching to moustakas MSTAR_50 - probably ok
1147 1147
ids not relevant for nc
ids not relevant for nc
ids not relevant for nc
ids not relevant for nc
ids not relevant for nc
PREFIX =  no_coma

In [185]:
t = s.galfitflag & s.lirflag & s.sizeflag & ~s.agnflag & s.sbflag
galfitnogim = t & ~s.gim2dflag

In [186]:
sum(galfitnogim)


Out[186]:
28

Galaxies not in SDSS phot catalog


In [181]:
s.s.ISDSS[galfitnogim]
print sum(s.s.ISDSS[galfitnogim] == -1)


18

Galaxies in SDSS but no B/T fit


In [7]:
galfitsdssnogim = galfitnogim & (s.s.ISDSS != -1)
sum(galfitsdssnogim)


Out[7]:
13

In [8]:
s.s.NSAID[galfitsdssnogim]


Out[8]:
array([ 70630,  70685,  43712,  69538,  18158,  68283,  68286,  68299,
        68342, 113068,  72631, 103927, 103966], dtype=int32)

Download SDSS Images


In [11]:
from astropy import units as u
from astropy.coordinates import SkyCoord
from astropy.table import Table
try:
    # Python 3.x
    from urllib.parse import urlencode
    from urllib.request import urlretrieve
except ImportError:
    # Python 2.x
    from urllib import urlencode
    from urllib import urlretrieve
import IPython.display

In [188]:
r = 22.5 - 2.5*log10(s.s.NMGY[:,4])
flag = galfitnogim & (r >= 14.) & (r <= 18.)
print sum(flag)


11
/anaconda/lib/python2.7/site-packages/ipykernel/__main__.py:1: RuntimeWarning: invalid value encountered in log10
  if __name__ == '__main__':
/anaconda/lib/python2.7/site-packages/ipykernel/__main__.py:2: RuntimeWarning: invalid value encountered in greater_equal
  from ipykernel import kernelapp as app
/anaconda/lib/python2.7/site-packages/ipykernel/__main__.py:2: RuntimeWarning: invalid value encountered in less_equal
  from ipykernel import kernelapp as app

In [189]:
ra = s.s.RA[flag]
dec = s.s.DEC[flag]
ids = s.s.NSAID[flag]
coords = SkyCoord(ra*u.deg, dec*u.deg, frame='icrs')

testcoord = coords[0]

In [183]:
impix = 100
imsize = 1*u.arcmin
cutoutbaseurl = 'http://skyservice.pha.jhu.edu/DR12/ImgCutout/getjpeg.aspx'
for i in range(len(coords.ra)):
    query_string = urlencode(dict(ra=coords[i].ra.deg, 
                                     dec=coords[i].dec.deg, 
                                     width=impix, height=impix, 
                                     scale=imsize.to(u.arcsec).value/impix))
    url = cutoutbaseurl + '?' + query_string

    # this downloads the image to your disk
    urlretrieve(url, 'images/'+str(ids[i])+'_SDSS_cutout.jpg')
    print 'NSAID %i (%10.6f, %10.6f)'%(ids[i],ra[i],dec[i])    
    t = IPython.display.Image('images/'+str(ids[i])+'_SDSS_cutout.jpg')
    IPython.display.display(t)


NSAID 70630 (202.306824,  11.275839)
NSAID 70685 (202.269455,  12.238585)
NSAID 43712 (244.129181,  35.708172)
NSAID 69538 (244.060699,  34.258434)
NSAID 18158 (219.578888,   3.639615)
NSAID 68283 (242.047577,  24.507439)
NSAID 68286 (241.749313,  24.160772)
NSAID 68299 (240.918945,  24.602676)
NSAID 68342 (241.297867,  24.960102)
NSAID 113068 (175.995667,  20.077011)
NSAID 72631 (230.999481,   8.508963)
NSAID 103927 (194.490204,  27.443319)
NSAID 103966 (194.025421,  27.677467)

In [200]:
for i in range(10,len(ids)):
    print '* NSAID %i (%10.6f, %10.6f)'%(ids[i],ra[i],dec[i])  
    print 'http://cas.sdss.org/dr7/en/tools/explore/obj.asp?ra=%.5f&dec=%.5f'%(ra[i],dec[i])


* NSAID 142819 (195.169479,  28.519848)
http://cas.sdss.org/dr7/en/tools/explore/obj.asp?ra=195.16948&dec=28.51985

In [41]:
for i in range(len(coords.ra)):
    query_string = urlencode(dict(ra=coords[i].ra.deg, 
                                     dec=coords[i].dec.deg, 
                                     width=impix, height=impix, 
                                     scale=imsize.to(u.arcsec).value/impix))
    url = cutoutbaseurl + '?' + query_string

    # this downloads the image to your disk
    urlretrieve(url, 'images/'+str(nsaids[i])+'_SDSS_cutout.jpg')
    print i, nsaids[i],coords[i].ra,coords[i].dec
    print 'NSAID %i (%10.6f, %10.6f)'%(nsaids[i],coords[i].ra.deg,coords[i].dec)    
    t = IPython.display.Image('images/'+str(nsaids[i])+'_SDSS_cutout.jpg')
    IPython.display.display(t)


0 143514 202d09m47.8235s 11d23m13.3754s
NSAID 143514 (202.163284,  11.387049)
1 163615 202d41m50.4858s 11d12m02.7528s
NSAID 163615 (202.697357,  11.200765)
2 146832 243d31m35.9656s 34d52m14.3445s
NSAID 146832 (243.526657,  34.870651)
3 146875 244d17m19.6912s 34d52m44.0213s
NSAID 146875 (244.288803,  34.878895)
4 165409 220d14m08.3643s 3d31m39.0623s
NSAID 165409 (220.235657,   3.527517)
5 166699 241d30m00.824s 22d38m28.049s
NSAID 166699 (241.500229,  22.641125)
6 146638 241d17m14.9121s 17d43m47.655s
NSAID 146638 (241.287476,  17.729904)
7 146659 241d24m59.9084s 18d03m20.7271s
NSAID 146659 (241.416641,  18.055758)
8 146664 241d26m08.7378s 17d42m56.0605s
NSAID 146664 (241.435760,  17.715572)
9 140139 175d57m16.3037s 19d58m06.2434s
NSAID 140139 (175.954529,  19.968401)
10 140160 176d04m18.1787s 20d13m23.8628s
NSAID 140160 (176.071716,  20.223295)
11 140174 176d12m17.5122s 19d47m42.1651s
NSAID 140174 (176.204865,  19.795046)
12 140175 176d11m45.5969s 20d07m30.3021s
NSAID 140175 (176.195999,  20.125084)
13 140187 176d13m41.1731s 20d01m01.7157s
NSAID 140187 (176.228104,  20.017143)
14 146094 230d27m07.6794s 8d24m36.7101s
NSAID 146094 (230.452133,   8.410197)
15 146121 230d45m02.9663s 8d27m55.7103s
NSAID 146121 (230.750824,   8.465475)
16 146127 230d47m08.9246s 8d20m04.4724s
NSAID 146127 (230.785812,   8.334576)
17 146130 230d48m03.5815s 8d32m59.5166s
NSAID 146130 (230.800995,   8.549866)
18 145965 228d44m59.1211s 6d48m16.8081s
NSAID 145965 (228.749756,   6.804669)
19 145984 229d04m35.8118s 6d48m12.9766s
NSAID 145984 (229.076614,   6.803605)
20 145998 229d11m07.3096s 7d01m17.8536s
NSAID 145998 (229.185364,   7.021626)
21 145999 229d11m16.0986s 7d03m20.3889s
NSAID 145999 (229.187805,   7.055664)
22 146012 229d17m42.6526s 6d56m30.4615s
NSAID 146012 (229.295181,   6.941795)
23 146041 229d42m49.7021s 6d26m09.1961s
NSAID 146041 (229.713806,   6.435888)
24 166042 228d54m39.2542s 8d18m08.6284s
NSAID 166042 (228.910904,   8.302397)
25 166044 228d56m13.0225s 6d57m31.3292s
NSAID 166044 (228.936951,   6.958703)
26 166083 229d13m04.6436s 6d32m20.8928s
NSAID 166083 (229.217957,   6.539137)
27 142797 195d04m25.155s 27d57m18.9885s
NSAID 142797 (195.073654,  27.955275)
28 142819 195d10m10.1257s 28d31m11.4523s
NSAID 142819 (195.169479,  28.519848)
29 142833 195d12m53.1079s 28d02m34.351s
NSAID 142833 (195.214752,  28.042875)
30 162838 195d16m50.4126s 28d07m17.7296s
NSAID 162838 (195.280670,  28.121592)

In [32]:
for i in range(len(coords.ra)):
    print 'NSAID %i (%10.6f, %10.6f)'%(ids[i],ra[i],dec[i])


NSAID 70630 (202.306824,  11.275839)
NSAID 70685 (202.269455,  12.238585)
NSAID 43712 (244.129181,  35.708172)
NSAID 69538 (244.060699,  34.258434)
NSAID 18158 (219.578888,   3.639615)
NSAID 68283 (242.047577,  24.507439)
NSAID 68286 (241.749313,  24.160772)
NSAID 68299 (240.918945,  24.602676)
NSAID 68342 (241.297867,  24.960102)
NSAID 113068 (175.995667,  20.077011)
NSAID 72631 (230.999481,   8.508963)
NSAID 103927 (194.490204,  27.443319)
NSAID 103966 (194.025421,  27.677467)

In [34]:
ids = where(galfitnogim & (s.s.ISDSS == -1))
print ids


(array([  84,   93,  240,  242,  382,  489,  594,  597,  599,  682,  690,
        694,  695,  701,  880,  889,  893,  895, 1084, 1089, 1094, 1095,
       1100, 1107, 1110, 1111, 1122, 1704, 1719, 1728, 1786]),)
  • NSAID 143514 (202.163284, 11.387049)
    • (too bright)
  • NSAID 163615 (202.697357, 11.200765)
    • (too bright)
  • NSAID 146832 (243.526657, 34.870651)
    • BINNED1 SATURATED INTERP COSMIC_RAY CHILD
    • (saturated)
  • NSAID 146875 (244.288803, 34.878895)
    • DEBLENDED_AT_EDGE BINNED1 NOTCHECKED INTERP CHILD EDGE
    • r = 13.92
    • (too bright)
  • NSAID 165409 (220.235657, 3.527517)
    • DEBLEND_NOPEAK INTERP_CENTER BINNED1 DEBLENDED_AS_PSF INTERP CHILD
    • r = 18.82
    • (deblended and too faint)
  • NSAID 166699 (241.500229, 22.641125)
    • BAD_MOVING_FIT MOVED BINNED1 INTERP COSMIC_RAY CHILD
    • r = 15.01, ext_r = 0.18
    • (not sure)
  • NSAID 146638 (241.287476, 17.729904)
    • STATIONARY BINNED1 SATURATED INTERP COSMIC_RAY CHILD
    • r = 13.57, ext_r = .13
    • (too bright, saturated)
  • NSAID 146659 (241.416641, 18.055758)

    • STATIONARY BINNED1 INTERP COSMIC_RAY CHILD
    • r = 14.52, ext_r = 0.14
    • (not sure)
  • NSAID 146664 (241.435760, 17.715572)

    • STATIONARY MOVED BINNED1 INTERP COSMIC_RAY CHILD
    • r = 14.65, ext_r = 0.13
    • (not sure)
    • not in simard
  • NSAID 140139 (175.954529, 19.968401)

    • DEBLEND_DEGENERATE PSF_FLUX_INTERP DEBLENDED_AT_EDGE BAD_MOVING_FIT MOVED BINNED1 INTERP COSMIC_RAY NODEBLEND CHILD BLENDED
    • r = 13.78, ext_r = 0.06
    • (too bright)
  • NSAID 140160 (176.071716, 20.223295)

    • STATIONARY BINNED1 INTERP COSMIC_RAY CHILD
    • r = 13.90, ext_r = 0.06
    • (too bright)
  • NSAID 140174 (176.204865, 19.795046)

    • STATIONARY BINNED1 INTERP COSMIC_RAY CHILD
    • r = 13.18, ext_r = 0.07
    • (too bright)
  • NSAID 140175 (176.195999, 20.125084)

    • STATIONARY BINNED1 INTERP COSMIC_RAY CHILD
    • r = 13.38, ext_r = 0.07
    • not in simard
  • NSAID 140187 (176.228104, 20.017143)

    • STATIONARY BINNED1 INTERP CHILD
    • r = 16.19, ext_r = 0.08
    • (not sure)
    • not in simard
  • NSAID 146094 (230.452133, 8.410197)

    • STATIONARY BINNED1 CHILD
    • r = 15.86, ext_r = 0.10
    • (not sure)
    • IN SIMARD!!!
  • NSAID 146121 (230.750824, 8.465475)

    • MOVED BINNED1 INTERP COSMIC_RAY CHILD
    • r = 15.80, ext_r = 0.09
  • NSAID 146127 (230.785812, 8.334576)

    • PSF_FLUX_INTERP INTERP_CENTER STATIONARY BINNED1 INTERP NOPETRO NODEBLEND CHILD BLENDED
    • r = 17.20, ext_r = 0.09
    • (blended?)
  • NSAID 146130 (230.800995, 8.549866)

    • BINNED1 INTERP COSMIC_RAY CHILD
    • r = 15.36, ext_r = 0.09
    • (not sure, maybe blended?)
  • NSAID 145965 (228.749756, 6.804669)

    • STATIONARY MOVED BINNED1 INTERP COSMIC_RAY NOPETRO CHILD
    • r = 16.70, ext_r = 0.10
    • (no petro)
  • NSAID 145984 (229.076614, 6.803605)

    • BINNED1 INTERP COSMIC_RAY CHILD
    • r = 15.72, ext_r = 0.1
    • (not sure)
  • NSAID 145998 (229.185364, 7.021626)

  • NSAID 145999 (229.187805, 7.055664)

  • NSAID 146012 (229.295181, 6.941795)

  • NSAID 146041 (229.713806, 6.435888)

  • NSAID 166042 (228.910904, 8.302397)

  • NSAID 166044 (228.936951, 6.958703)

  • NSAID 166083 (229.217957, 6.539137)

  • NSAID 142797 (195.073654, 27.955275)

  • NSAID 142819 (195.169479, 28.519848)

  • NSAID 142833 (195.214752, 28.042875)

  • NSAID 162838 (195.280670, 28.121592)

Oh No!

seems like galaxies that are in simard are not in my catalog :(

  • Going to read in my catalog
  • read in simard catalog
  • match them
  • and then see what's going on

In [50]:
lcs = fits.getdata('/Users/rfinn/research/LocalClusters/NSAmastertables/LCS_all_size.fits')

In [52]:
gim = fits.getdata('/Users/rfinn/research/SimardSDSS2011/table1.fits')virgocat = SkyCoord(vdat.RA*u.degree,vdat.DEC*u.degree,frame='icrs')

In [118]:
from astropy.coordinates import SkyCoord
from astropy import units as u
%matplotlib inline

In [56]:
lcat = SkyCoord(lcs.RA*u.degree,lcs.DEC*u.degree,frame='icrs')
gcat = SkyCoord(gim._RAJ2000*u.degree,gim._DEJ2000*u.degree,frame='icrs')

index,dist2d,dist3d = lcat.match_to_catalog_sky(gcat)

In [113]:
plt.figure()
plt.plot


Out[113]:
<matplotlib.figure.Figure at 0x11bf9a350>

In [169]:
# only keep matches with matched RA and Dec w/in 1 arcsec
matchflag = dist2d.degree < 3./3600

matchedarray1=np.zeros(len(lcat),dtype=gim.dtype)
matchedarray1[matchflag] = gim[index[matchflag]]
print 'percent of LCS galaxies matched = %.1f'%(sum(matchflag)*1./len(matchflag)*100.)


percent of LCS galaxies matched = 84.2

In [170]:
# get rid of names that start with __
# these cause trouble in the analysis program
t = []
for a in matchedarray1.dtype.names:
    t.append(a)
for i in range(len(t)):
    if t[i].startswith('__'):
        t[i] = t[i][2:]
t = tuple(t)
#print t

In [171]:
matchedarray1.dtype.names = t

In [172]:
outfile = '/Users/rfinn/research/LocalClusters/NSAmastertables/LCS_all.gim2d.tab1.fits'
fits.writeto(outfile,matchedarray1,overwrite=True)

In [174]:
diff = (lcs.B_T_r - matchedarray1['B_T_r'])
bad_matches = (abs(diff) > .01) & matchflag
print 'number of bad matches = ',sum(bad_matches)


number of bad matches =  47
/anaconda/lib/python2.7/site-packages/ipykernel/__main__.py:2: RuntimeWarning: invalid value encountered in greater
  from ipykernel import kernelapp as app

In [175]:
s.s.NSAID[bad_matches]


Out[175]:
array([146872, 166835, 166860,  18263,  82194, 166699, 146639, 146659,
       146660, 113059, 113484, 140160, 140191,  72631, 146082, 146085,
       146094, 146121, 146127, 146130, 166154, 145965, 145982, 145984,
       145999, 166044, 166083, 103927, 142589, 142605, 142609, 142628,
       142638, 142658, 142678, 142729, 142741, 142748, 142756, 142767,
       142787, 142832, 142836, 142837, 142850, 142872, 162838], dtype=int32)

In [176]:
plt.figure()
plt.plot(lcs.RA[bad_matches],lcs.DEC[bad_matches],'ko')
print lcs.CLUSTER[bad_matches]
print sum(s.galfitflag[bad_matches])


['NGC6107' 'NGC6107' 'NGC6107' 'MKW8' 'AWM4' 'AWM4' 'Hercules' 'Hercules'
 'Hercules' 'A1367' 'A1367' 'A1367' 'A1367' 'A2063' 'A2063' 'A2063' 'A2063'
 'A2063' 'A2063' 'A2063' 'A2063' 'A2052' 'A2052' 'A2052' 'A2052' 'A2052'
 'A2052' 'Coma' 'Coma' 'Coma' 'Coma' 'Coma' 'Coma' 'Coma' 'Coma' 'Coma'
 'Coma' 'Coma' 'Coma' 'Coma' 'Coma' 'Coma' 'Coma' 'Coma' 'Coma' 'Coma'
 'Coma']
16

In [177]:
print sum(diff < 0.)


48
/anaconda/lib/python2.7/site-packages/ipykernel/__main__.py:1: RuntimeWarning: invalid value encountered in less
  if __name__ == '__main__':

In [134]:
outfile = '/Users/rfinn/research/LocalClusters/NSAmastertables/LCS_all.gim2d.tab1.fits'
gdat = fits.getdata(outfile)

In [135]:
gdat.__B_T_r


Out[135]:
array([ 0.47      ,  0.50999999,  0.38      , ...,  0.49000001,
        0.64999998,  0.34      ], dtype=float32)

In [ ]: