{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/cm/shared/apps/python/intel/intelpython3/3.5.3/envs/jupyterhub/lib/python3.6/site-packages/matplotlib/cbook/deprecation.py:107: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.\n", " warnings.warn(message, mplDeprecation, stacklevel=1)\n" ] } ], "source": [ "import pylab\n", "import pymoc\n", "import xidplus\n", "import numpy as np\n", "%matplotlib inline\n", "from astropy.table import Table\n", "from astropy.io import fits\n", "from astropy import wcs\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 (SPUDS and SWIRE) I will split the XID+ run into two different runs. Here we use the SWIRE depth." ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": true }, "outputs": [], "source": [ "Sel_func=pymoc.MOC()\n", "Sel_func.read('../../dmu4/dmu4_sm_XMM-LSS/data/holes_XMM-LSS_irac1_O16_20180420_MOC.fits')\n", "SWIRE_MOC=pymoc.MOC()\n", "SWIRE_MOC.read('../../dmu0/dmu0_DataFusion-Spitzer/data/Sub_wp4_xmm-lss_mips24_map_v1-1-_MOCmips_mosaic_MOC.fits')\n", "Final=Sel_func.intersection(SWIRE_MOC)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Read in XID+MIPS catalogue" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": false }, "outputs": [], "source": [ "XID_MIPS=Table.read('../dmu26_XID+MIPS_XMM-LSS/data/dmu26_XID+MIPS_XMM-LSS_SWIREnSPUDS_concat_20190106.fits')" ] }, { "cell_type": "code", "execution_count": 4, "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_J021846.087-062301.346 | 34.692030947564795 | -6.383707158297614 | 30.09487 | 46.226128 | 14.67685 | -0.0009270066 | 4.858147e-06 | nan | 1142.0 | 0.0 | False |
HELP_J021843.070-062345.559 | 34.6794586722776 | -6.39598871477323 | 4170.4424 | 4190.5127 | 4150.0 | -0.0009270066 | 4.858147e-06 | nan | 2000.0 | 0.373 | False |
HELP_J021852.610-062138.457 | 34.7192093322776 | -6.36068236477323 | 327.6509 | 346.8575 | 307.92105 | -0.0046012965 | 4.779417e-06 | nan | 1248.0 | 0.0 | False |
HELP_J021854.601-062151.326 | 34.7275025122776 | -6.36425716477323 | 65.46506 | 83.40683 | 47.538906 | -0.0046012965 | 4.779417e-06 | nan | 1179.0 | 0.398 | False |
HELP_J021851.714-062215.569 | 34.7154747122776 | -6.3709913347732305 | 3.1386747 | 7.2766647 | 0.9495287 | -0.0046012965 | 4.779417e-06 | nan | 1711.0 | 0.0 | True |
HELP_J021911.572-062135.966 | 34.7982186822776 | -6.359990434773231 | 554.56165 | 571.6919 | 537.1004 | -0.012682672 | 4.8390184e-06 | nan | 555.0 | 0.0 | False |
HELP_J021917.826-062026.091 | 34.8242763422776 | -6.34058070477323 | 963.8944 | 982.96875 | 944.89764 | -0.005463596 | 4.9658024e-06 | nan | 893.0 | 0.011 | False |
HELP_J021923.350-061946.651 | 34.8472902722776 | -6.32962525477323 | 2255.2812 | 2275.3945 | 2235.6658 | 0.0036527414 | 4.8568736e-06 | nan | 2000.0 | 0.0 | False |
HELP_J021926.399-061956.955 | 34.8599972322776 | -6.3324875447732305 | 215.53192 | 235.60165 | 196.8128 | 0.0036527414 | 4.8568736e-06 | 0.9989383 | 2000.0 | 0.0 | False |
HELP_J021922.877-062008.894 | 34.8453220422776 | -6.33580400477323 | 338.14105 | 355.7203 | 320.7381 | 0.0036527414 | 4.8568736e-06 | nan | 2000.0 | 0.0 | False |