{ "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 SPUDS 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')" ] }, { "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_XMM-LSS/data/dmu26_XID+MIPS_XMM-LSS_SPUDS_cat_20181210.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_J021748.384-055853.332 | 34.4515999475648 | -5.9814811582976155 | 305.31146 | 323.17114 | 287.40622 | -0.007987332 | 5.0641715e-06 | 1.0000608 | 1343.0 | 0.0 | False |
HELP_J021747.552-055909.435 | 34.4481319475648 | -5.985954158297615 | 61.64442 | 83.24991 | 39.762577 | -0.007987332 | 5.0641715e-06 | 1.0007377 | 1146.0 | 0.0 | False |
HELP_J021751.319-055843.666 | 34.4638289475648 | -5.978796158297614 | 40.07564 | 60.321735 | 21.23005 | -0.011716769 | 5.1117663e-06 | 0.99953556 | 2000.0 | 0.0 | False |
HELP_J021751.808-055827.121 | 34.465864947564796 | -5.974200158297615 | 14.507545 | 27.912325 | 4.470504 | -0.011716769 | 5.1117663e-06 | 1.0026258 | 2000.0 | 0.0 | False |
HELP_J021752.105-055836.873 | 34.4671040222776 | -5.97690909477323 | 329.24072 | 347.7774 | 309.96005 | -0.011716769 | 5.1117663e-06 | nan | 2000.0 | 0.0 | False |
HELP_J021756.415-055812.803 | 34.4850609475648 | -5.970223158297616 | 68.94973 | 96.15068 | 39.50831 | -0.011716769 | 5.1117663e-06 | 1.0022622 | 865.0 | 0.0 | False |
HELP_J021755.590-055800.544 | 34.4816249822776 | -5.96681790477323 | 256.0221 | 272.37762 | 240.00948 | -0.011716769 | 5.1117663e-06 | nan | 2000.0 | 0.0 | False |
HELP_J021754.691-055807.994 | 34.4778793322776 | -5.96888729477323 | 87.04866 | 103.543526 | 70.45882 | -0.011716769 | 5.1117663e-06 | 1.0004507 | 2000.0 | 0.0 | False |
HELP_J021753.142-055808.510 | 34.4714244322776 | -5.96903052477323 | 4.630757 | 11.176104 | 1.2804906 | -0.011716769 | 5.1117663e-06 | nan | 2000.0 | 0.0 | True |
HELP_J021801.185-055721.111 | 34.5049369475648 | -5.955864158297615 | 61.69538 | 79.60493 | 42.87912 | -0.015876269 | 4.941601e-06 | 1.00648 | 2000.0 | 0.0 | False |