{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": true }, "outputs": [], "source": [ "import pylab\n", "import pymoc\n", "import xidplus\n", "import numpy as np\n", "%matplotlib inline\n", "from astropy.table import Table" ] }, { "cell_type": "code", "execution_count": 8, "metadata": { "collapsed": true }, "outputs": [], "source": [ "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('../data/ELAIS_N1/MOCs/holes_ELAIS-N1_irac1_O16_MOC.fits')\n", "SERVS_MOC=pymoc.MOC()\n", "SERVS_MOC.read('../data/ELAIS_N1/MOCs/DF-SERVS_ELAIS-N1_MOC.fits')\n", "SWIRE_MOC=pymoc.MOC()\n", "SWIRE_MOC.read('../data/ELAIS_N1/MOCs/DF-SWIRE_ELAIS-N1_MOC.fits')\n", "Final=Sel_func.intersection(SERVS_MOC)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": { "collapsed": true }, "outputs": [], "source": [ "Final=Sel_func.intersection(SWIRE_MOC)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": true }, "outputs": [], "source": [ "Final=Final-SERVS_MOC\n" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Read in XID+MIPS catalogue" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "collapsed": false }, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "WARNING: UnitsWarning: 'degrees' did not parse as fits unit: At col 0, Unit 'degrees' not supported by the FITS standard. [astropy.units.core]\n", "WARNING: UnitsWarning: 'muJy' did not parse as fits unit: At col 0, Unit 'muJy' not supported by the FITS standard. Did you mean MJy, mJy or uJy? [astropy.units.core]\n" ] } ], "source": [ "XID_MIPS=Table.read('../data/ELAIS_N1/MIPS/dmu26_XID+MIPS_ELAIS-N1_SWIRE_cat_20170725.fits')" ] }, { "cell_type": "code", "execution_count": 6, "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_mips24 | flag_mips_24 |
---|---|---|---|---|---|---|---|---|---|---|---|---|
degrees | degrees | muJy | muJy | muJy | MJy / sr | MJy / sr | ||||||
str100 | float64 | float64 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | float32 | bool | bool |
HELP_J160000.316+542000.690 | 240.001318675 | 54.3335249815 | 1928.47 | 1943.4 | 1913.42 | -0.000955198 | 4.74435e-06 | nan | 1196.0 | 1.0 | True | True |
HELP_J161145.788+525236.929 | 242.94078253 | 52.8769246635 | 244.531 | 531.299 | 80.7009 | 0.011866 | 5.16518e-06 | 1.00054 | 1760.0 | 0.0 | False | False |
HELP_J161138.168+525244.570 | 242.909032282 | 52.8790472905 | 239.355 | 531.635 | 65.6535 | 0.011866 | 5.16518e-06 | 1.00149 | 2000.0 | 0.0 | False | False |
HELP_J161143.750+525251.314 | 242.93229323 | 52.8809206325 | 242.255 | 516.11 | 71.3392 | 0.011866 | 5.16518e-06 | 1.00016 | 2000.0 | 0.0 | False | False |
HELP_J161131.547+525241.333 | 242.881447116 | 52.8781479465 | 262.442 | 560.661 | 81.3861 | -0.00204203 | 4.91504e-06 | 1.00381 | 2000.0 | 0.0 | False | False |
HELP_J161128.756+525312.827 | 242.869815896 | 52.8868964635 | 256.02 | 554.574 | 68.8019 | -0.00204203 | 4.91504e-06 | 1.00221 | 1068.0 | 0.0 | False | False |
HELP_J161132.773+525325.277 | 242.886553205 | 52.8903547935 | 68.2279 | 171.721 | 16.9382 | 0.377187 | 4.94219e-06 | nan | 2000.0 | 0.0 | False | False |
HELP_J161138.691+525423.576 | 242.911211156 | 52.9065487865 | 67.2236 | 176.488 | 18.5074 | 0.377187 | 4.94219e-06 | nan | 2000.0 | 0.0 | False | False |
HELP_J161138.467+525405.234 | 242.910280018 | 52.9014539065 | 65.6982 | 167.994 | 17.4561 | 0.377187 | 4.94219e-06 | nan | 2000.0 | 0.0 | False | False |
HELP_J161137.367+525312.879 | 242.905696275 | 52.8869108555 | 65.1079 | 157.618 | 17.9052 | 0.377187 | 4.94219e-06 | nan | 2000.0 | 0.0 | False | False |