{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# XID+ prior model for blind catalogues\n", "\n", "![HELP LOGO](https://avatars1.githubusercontent.com/u/7880370?s=100&v=4>)\n", "\n", "\n", "The final processing stage requires:\n", "1. Create xid+ prior files for all fields\n", "2. Description on runnning xid+\n" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "/Users/Steven/anaconda/envs/herschelhelp_internal/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", "\n", "import numpy as np\n", "%matplotlib inline\n", "from astropy.table import Table\n", "import os\n", "import seaborn as sns" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "This notebook uses all the raw data from the Blind SPIRE catalogue to create XID+ prior object and relevant tiling scheme" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "## Read in XID+SPIRE catalogue" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "SA13_SPIRE\n" ] } ], "source": [ "name_field= ['AKARI-SEP_SPIRE','EGS_SPIRE','ELAIS-S1_SPIRE','SA13_SPIRE','XMM-13hr_SPIRE',\\\n", " 'COSMOS_SPIRE','ELAIS-N2_SPIRE','HDF-N_SPIRE','SPIRE-NEP_SPIRE','xFLS_SPIRE','ELAIS-N1_SPIRE',\\\n", " 'XMM-LSS_SPIRE','Lockman-SWIRE_SPIRE','CDFS-SWIRE_SPIRE', 'GAMA-09_SPIRE','GAMA-12_SPIRE',\\\n", " 'GAMA-15_SPIRE','SSDF_SPIRE','Bootes_SPIRE','HATLAS-NGP_SPIRE','HATLAS-SGP_SPIRE','AKARI-NEP_SPIRE']\n", "which_field = 3\n", "name_field = name_field[which_field] # select a field, in this case SA13\n", "print(name_field)\n", "loc = 'dmu22_'+name_field[0:-6]+'/data/'\n", "XID_table=Table.read(loc+name_field+'_all.fits')" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/html": [ "Table length=10\n", "
RA | Dec | F_BLIND_MF_SPIRE_250 | FErr_BLIND_MF_SPIRE_250 | F_BLIND_MF_SPIRE_350 | FErr_BLIND_MF_SPIRE_350 | F_BLIND_MF_SPIRE_500 | FErr_BLIND_MF_SPIRE_500 | r | P | RA_pix | Dec_pix | F_BLIND_pix_SPIRE | FErr_BLIND_pix_SPIRE | flag |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
deg | deg | Jy | Jy | Jy | Jy | Jy | Jy | deg | deg | Jy | Jy | |||
float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 |
198.06337961 | 42.777285694 | 0.174921463062 | 0.00411698069274 | 0.0848341568104 | 0.00383701629864 | 0.0266220019538 | 0.00442267945767 | 0.880306019381 | 1.0 | 198.0622444 | 42.7781191216 | 0.152322496208 | 0.00403260597164 | 0.0 |
198.329407543 | 42.773343072 | 0.118975870006 | 0.00540319640865 | 0.0545838147223 | 0.00565900507626 | 0.0175428012507 | 0.005563266414 | 0.784632010795 | 1.0 | 198.330169333 | 42.7744523474 | 0.130994825707 | 0.00605067733462 | 0.0 |
198.00639904 | 42.5592214774 | 0.113273783798 | 0.00406633884128 | 0.0793237587566 | 0.00410391673076 | 0.0444053602442 | 0.0042688952543 | 0.911868542159 | 1.0 | 198.005644381 | 42.5597767196 | 0.111921783735 | 0.00398707240269 | 0.0 |
197.991791843 | 42.8397695835 | 0.0896780758099 | 0.00397924498275 | 0.0572663233901 | 0.00389896981598 | 0.0351235968433 | 0.00473998490223 | 0.847715305286 | 1.0 | 197.991791843 | 42.8397695835 | 0.0893860583827 | 0.00390532763268 | 0.0 |
198.342598377 | 42.5996998443 | 0.0762023576227 | 0.0056582987614 | 0.0380412504912 | 0.00685315010816 | 0.0217257330937 | 0.00652934354966 | 0.809571876268 | 1.0 | 198.342974438 | 42.5994211208 | 0.0873410027586 | 0.00555015594339 | 0.0 |
198.267161768 | 42.8293089882 | 0.0817752615638 | 0.00531935198585 | 0.0223310562285 | 0.00582153019135 | 0.00308796638223 | 0.00617319054322 | 0.692136338787 | 1.0 | 198.266783968 | 42.8295874676 | 0.079489839312 | 0.00521785795632 | 0.0 |
198.025152372 | 42.7870049436 | 0.0755291999502 | 0.00382864826869 | 0.044233146678 | 0.00374377864238 | 0.0174650290569 | 0.00392739300945 | 0.83672750294 | 1.0 | 198.025909623 | 42.786449571 | 0.0741238667737 | 0.00375610547806 | 0.0 |
197.855149993 | 42.5671160212 | 0.0685685028067 | 0.0051566457393 | 0.0608390412102 | 0.00574253314892 | 0.0544541463514 | 0.00663157706565 | 0.893320880645 | 1.0 | 197.85401584 | 42.5679473904 | 0.073739195298 | 0.005056220699 | 0.0 |
198.264733413 | 42.894590782 | 0.0755286542811 | 0.00753808422757 | 0.0204314174933 | 0.00760585287313 | 0.00389119355737 | 0.00673442064752 | 0.707805667434 | 1.0 | 198.264733413 | 42.894590782 | 0.0718701487337 | 0.00736886940102 | 0.0 |
197.938720886 | 42.6538959062 | 0.0747532915357 | 0.00388832995903 | 0.0240716569564 | 0.00376750336467 | 0.00374643173661 | 0.00404092810127 | 0.717660739207 | 1.0 | 197.937586262 | 42.6547281036 | 0.0717401624925 | 0.00381652826373 | 0.0 |