{ "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 (SWIRE and SPUDS) I will split the XID+ run into two different runs." ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [ "Sel_func=pymoc.MOC()\n", "Sel_func.read('../../dmu4/dmu4_sm_xFLS/data/holes_xFLS_irac_i1_O16_20190114_MOC.fits')\n", "DF_MOC=pymoc.MOC()\n", "DF_MOC.read('../../dmu0/dmu0_DataFusion-Spitzer/data/Datafusion-xFLS_MOC.fits')\n", "Final=Sel_func.intersection(DF_MOC)\n" ] }, { "cell_type": "code", "execution_count": 4, "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": 5, "metadata": {}, "outputs": [], "source": [ "XID_MIPS=Table.read('../dmu26_XID+MIPS_xFLS/data/dmu26_XID+MIPS_xFLS_cat_20190122.fits')" ] }, { "cell_type": "code", "execution_count": 6, "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_J172157.292+582747.401 | 260.48871547709 | 58.4631669127439 | 36.047565 | 50.33046 | 22.906105 | -0.006020973 | 4.9903842e-06 | 1.000451 | 2000.0 | 1.0 | True |
HELP_J172149.959+582648.312 | 260.45816376109 | 58.4467533677439 | 9.310755 | 18.464592 | 2.7519283 | -0.006020973 | 4.9903842e-06 | nan | 2000.0 | 1.0 | True |
HELP_J172156.521+582733.179 | 260.48550221309 | 58.4592162607439 | 83.74838 | 96.388016 | 70.7704 | -0.006020973 | 4.9903842e-06 | nan | 2000.0 | 1.0 | True |
HELP_J172150.002+582652.059 | 260.45834254009 | 58.4477941787439 | 3.4517977 | 8.208153 | 0.8952491 | -0.006020973 | 4.9903842e-06 | nan | 2000.0 | 1.0 | True |
HELP_J172158.112+582657.669 | 260.49213396009 | 58.4493524757439 | 41.592514 | 55.158154 | 28.037321 | -0.006020973 | 4.9903842e-06 | nan | 2000.0 | 1.0 | True |
HELP_J172154.937+582622.555 | 260.47890287109 | 58.4395985157439 | 236.1334 | 250.01031 | 221.65387 | -0.006020973 | 4.9903842e-06 | nan | 2000.0 | 1.0 | True |
HELP_J172152.074+582702.845 | 260.46697353308997 | 58.4507903867439 | 3.3220572 | 8.644255 | 0.922599 | -0.006020973 | 4.9903842e-06 | nan | 2000.0 | 1.0 | True |
HELP_J172153.735+582618.703 | 260.47389745309 | 58.4385287057439 | 70.92072 | 85.27206 | 56.804512 | -0.006020973 | 4.9903842e-06 | 1.0009941 | 2000.0 | 1.0 | True |
HELP_J172154.582+582658.374 | 260.47742300008997 | 58.4495484467439 | 19.3271 | 32.967743 | 7.3597827 | -0.006020973 | 4.9903842e-06 | 1.0046115 | 2000.0 | 1.0 | True |
HELP_J172138.960+582706.132 | 260.41233390709 | 58.4517033537439 | 3.3813016 | 8.502518 | 0.97529036 | -0.0012401526 | 4.8903657e-06 | nan | 2000.0 | 1.0 | True |