{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/home/mc741/anaconda3/lib/python3.6/site-packages/mpl_toolkits/axes_grid/__init__.py:12: MatplotlibDeprecationWarning: \n", "The mpl_toolkits.axes_grid module was deprecated in Matplotlib 2.1 and will be removed two minor releases later. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist, which provide the same functionality instead.\n", " obj_type='module')\n" ] } ], "source": [ "import pylab\n", "import pymoc\n", "import xidplus\n", "import numpy as np\n", "%matplotlib inline\n", "from astropy.table import Table" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import seaborn as sns" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook uses all the raw data from the XID+MIPS catalogue, maps, PSF and relevant MOCs to create XID+ prior object and relevant tiling scheme" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Read in MOCs\n", "The selection functions required are the main MOC associated with the masterlist. As the prior for XID+ is based on IRAC detected sources coming from two different surveys at different depths (SERVS and SWIRE) I will split the XID+ run into two different runs. Here we use the SERVS depth." ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [ "Sel_func=pymoc.MOC()\n", "Sel_func.read('../../dmu4/dmu4_sm_EGS/data/holes_EGS_irac_i1_O16_20190201_WARNING-MADE-WITH-Lockman-SWIRE-PARAMS.fits')\n", "EGS_MOC=pymoc.MOC()\n", "EGS_MOC.read('../../dmu17/dmu17_HELP-SEIP-maps/EGS/data/70101880.70101880-0.MIPS.1.moc.fits')\n", "Final=Sel_func.intersection(EGS_MOC)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": true }, "outputs": [], "source": [ "Final.write('./data/testMoc.fits', overwrite=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Read in XID+MIPS catalogue" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "collapsed": false }, "outputs": [], "source": [ "XID_MIPS=Table.read('../dmu26_XID+MIPS_EGS/data/output/dmu26_XID+MIPS_EGS_cat_20190218.fits')" ] }, { "cell_type": "code", "execution_count": 6, "metadata": { "collapsed": false }, "outputs": [ { "data": { "text/html": [ "Table length=10\n", "
help_id | RA | Dec | F_MIPS_24 | FErr_MIPS_24_u | FErr_MIPS_24_l | Bkg_MIPS_24 | Sig_conf_MIPS_24 | Rhat_MIPS_24 | n_eff_MIPS_24 | Pval_res_24 | flag_mips_24 |
---|---|---|---|---|---|---|---|---|---|---|---|
degrees | degrees | muJy | muJy | muJy | MJy / sr | MJy / sr | |||||
bytes27 | float64 | float64 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | bool |
HELP_J141442.003+515539.339 | 213.67501162574598 | 51.9275942135701 | 29.379326 | 56.951485 | 9.969311 | 3.092588 | 4.955591e-06 | 0.9998127 | 2000.0 | 0.048 | False |
HELP_J141433.793+515648.049 | 213.640805625746 | 51.946680213570104 | 19.096447 | 43.921364 | 4.6105237 | 3.099133 | 5.0371236e-06 | 1.0013826 | 2000.0 | 0.001 | False |
HELP_J141434.323+515636.892 | 213.643012625746 | 51.9435812135701 | 13.950871 | 34.832256 | 3.908302 | 3.099133 | 5.0371236e-06 | 1.0012876 | 2000.0 | 0.0 | False |
HELP_J141433.496+515638.383 | 213.639566625746 | 51.9439952135701 | 16.95775 | 42.202263 | 4.5676594 | 3.099133 | 5.0371236e-06 | 1.000219 | 2000.0 | 0.0 | False |
HELP_J141435.953+515625.999 | 213.649803625746 | 51.9405552135701 | 14.537572 | 36.56044 | 4.1386776 | 3.099133 | 5.0371236e-06 | 1.0015448 | 2000.0 | 0.001 | False |
HELP_J141430.989+515703.982 | 213.629120625746 | 51.9511062135701 | 7.938608 | 19.72342 | 1.9038539 | 3.099133 | 5.0371236e-06 | 0.9982636 | 2000.0 | 0.001 | True |
HELP_J141435.396+515629.142 | 213.647481625746 | 51.9414282135701 | 8.554998 | 22.40626 | 2.3013062 | 3.099133 | 5.0371236e-06 | 1.0015571 | 2000.0 | 0.002 | True |
HELP_J141431.870+515653.960 | 213.632791625746 | 51.9483222135701 | 21.97139 | 44.578823 | 6.7749476 | 3.099133 | 5.0371236e-06 | 0.9985944 | 2000.0 | 0.0 | False |
HELP_J141433.284+515656.358 | 213.638681625746 | 51.948988213570104 | 11.722738 | 29.19391 | 3.1917698 | 3.099133 | 5.0371236e-06 | 0.99920607 | 2000.0 | 0.0 | False |
HELP_J141433.106+515655.022 | 213.637939625746 | 51.9486172135701 | 13.602199 | 31.648853 | 3.562061 | 3.099133 | 5.0371236e-06 | 0.99861896 | 2000.0 | 0.0 | False |