{ "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 provies 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.io import fits\n", "from astropy import wcs\n", "from astropy.table import Table\n", "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": 2, "metadata": { "collapsed": true }, "outputs": [], "source": [ "Sel_func=pymoc.MOC()\n", "Sel_func.read('../../dmu4/dmu4_sm_ELAIS-N2/data/holes_ELAIS-N2_irac_i1_O16_20180921_MOC.fits')\n", "SWIRE_MOC=pymoc.MOC()\n", "SWIRE_MOC.read('../../dmu0/dmu0_DataFusion-Spitzer/data/DF-SWIRE_ELAIS-N2_MOC.fits')\n", "Final=Sel_func.intersection(SWIRE_MOC)\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Read in XID+MIPS catalogue" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "XID_MIPS=Table.read('../dmu26_XID+MIPS_ELAIS-N2/data/dmu26_XID+MIPS_ELAIS-N2_SWIRE_cat_20181108.fits')" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "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_J163346.992+394243.420 | 248.445799537607 | 39.712061083265695 | 14.360089 | 28.563936 | 5.267528 | -0.00041493773 | 5.2701807e-06 | nan | 801.0 | 0.0 | True |
HELP_J163354.120+394351.612 | 248.475501874607 | 39.7310033402657 | 25.430574 | 40.34344 | 11.7319975 | 0.0006374985 | 5.1512056e-06 | nan | 2000.0 | 0.0 | False |
HELP_J163352.386+394403.444 | 248.468276218376 | 39.7342898946138 | 125.43618 | 140.12993 | 109.88434 | 0.0006374985 | 5.1512056e-06 | 1.0011711 | 2000.0 | 0.0 | False |
HELP_J163352.492+394246.993 | 248.468716218376 | 39.7130536946138 | 262.72702 | 276.2755 | 247.86346 | 0.0006374985 | 5.1512056e-06 | 0.9981907 | 2000.0 | 0.0 | False |
HELP_J163352.915+394257.838 | 248.470479318376 | 39.7160660946138 | 71.052124 | 83.45411 | 59.446747 | 0.0006374985 | 5.1512056e-06 | nan | 2000.0 | 0.0 | False |
HELP_J163350.599+394301.108 | 248.460827683607 | 39.71697437126569 | 117.74637 | 131.73906 | 103.897964 | 0.0006374985 | 5.1512056e-06 | 0.9987709 | 2000.0 | 0.0 | False |
HELP_J163353.384+394244.961 | 248.472431358607 | 39.712489031265704 | 3.9729717 | 9.538257 | 1.1805742 | 0.0006374985 | 5.1512056e-06 | nan | 2000.0 | 0.0 | True |
HELP_J163353.119+394332.116 | 248.47133095060698 | 39.7255878742657 | 141.08069 | 156.3033 | 126.02507 | 0.0006374985 | 5.1512056e-06 | nan | 2000.0 | 0.0 | False |
HELP_J163352.514+394240.707 | 248.468809963607 | 39.71130763026569 | 139.11339 | 153.15056 | 124.75665 | 0.0006374985 | 5.1512056e-06 | nan | 2000.0 | 0.0 | False |
HELP_J163352.582+394323.793 | 248.469093346607 | 39.7232758642657 | 6.942023 | 15.529887 | 1.9808115 | 0.0006374985 | 5.1512056e-06 | nan | 2000.0 | 0.0 | True |