{ "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.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" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": true }, "outputs": [], "source": [ "Sel_func=pymoc.MOC()\n", "Sel_func.read('../../dmu4/dmu4_sm_AKARI-NEP/data/holes_AKARI-NEP_O16_MOC.fits')\n", "Final=Sel_func" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "Final.write('./data/testMoc.fits', overwrite=True)" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Read in XID+MIPS catalogue" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "XID_MIPS=Table.read('../dmu26_XID+MIPS_AKARI-NEP/data/output/dmu26_XID+MIPS_AKARI-NEP_cat_20190227.fits')" ] }, { "cell_type": "code", "execution_count": 5, "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_J175829.957+674411.814 | 269.624819491287 | 67.7366149121774 | 1997.6537 | 2380.3079 | 1614.5526 | 2.6259131 | 4.9987325e-06 | 0.99922097 | 2000.0 | 1.0 | True |
HELP_J175829.766+674450.347 | 269.624022961287 | 67.7473187221774 | 193.13997 | 353.85355 | 65.70404 | 2.6259131 | 4.9987325e-06 | 0.9982076 | 2000.0 | 0.0 | False |
HELP_J175830.739+674353.400 | 269.628077981287 | 67.7315000221774 | 724.35333 | 1188.5247 | 328.34164 | 2.6259131 | 4.9987325e-06 | 0.999674 | 2000.0 | 0.472 | False |
HELP_J175830.735+674407.055 | 269.628061601287 | 67.7352931421774 | 20127.553 | 20399.662 | 19847.482 | 2.6259131 | 4.9987325e-06 | 0.99934864 | 2000.0 | 1.0 | True |
HELP_J175828.773+674447.916 | 269.619887161287 | 67.7466434721774 | 247.64766 | 405.6701 | 102.820724 | 2.6259131 | 4.9987325e-06 | 0.9995552 | 1565.0 | 0.0 | False |
HELP_J175829.684+674351.164 | 269.623681971287 | 67.7308788121774 | 161.71916 | 453.20523 | 39.714386 | 2.6259131 | 4.9987325e-06 | 0.99848735 | 2000.0 | 0.997 | True |
HELP_J175849.967+674301.378 | 269.708195311287 | 67.7170494421774 | 307.49048 | 525.7779 | 125.87972 | 2.573787 | 4.9735554e-06 | 1.0016507 | 1346.0 | 0.0 | False |
HELP_J175849.328+674312.833 | 269.705535321287 | 67.7202313021774 | 160.94751 | 326.27 | 51.191174 | 2.573787 | 4.9735554e-06 | 1.0032624 | 1759.0 | 0.001 | False |
HELP_J175847.866+674214.611 | 269.699440651287 | 67.70405870217739 | 257.85413 | 675.2611 | 59.86859 | 2.573787 | 4.9735554e-06 | 0.9994329 | 2000.0 | 0.717 | True |
HELP_J175848.302+674227.514 | 269.701258091287 | 67.7076426721774 | 112.35762 | 263.5934 | 32.62332 | 2.573787 | 4.9735554e-06 | 0.9985128 | 2000.0 | 0.0 | False |