{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Spitzer Matching Survey of the Ultra-VISTA Deep Stripes (SMUVS)\n",
"\n",
"Converting table format."
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"This notebook was run with herschelhelp_internal version: \n",
"017bb1e (Mon Jun 18 14:58:59 2018 +0100) [with local modifications]\n",
"This notebook was executed on: \n",
"2018-10-23 12:11:31.380643\n"
]
}
],
"source": [
"from herschelhelp_internal import git_version\n",
"print(\"This notebook was run with herschelhelp_internal version: \\n{}\".format(git_version()))\n",
"import datetime\n",
"print(\"This notebook was executed on: \\n{}\".format(datetime.datetime.now()))"
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [],
"source": [
"\n",
"from astropy.table import Table, Column\n",
"from astropy.io import ascii\n",
"\n",
"import numpy as np\n",
"\n",
"import yaml\n",
"\n",
"import os\n",
"\n",
"from pymoc import MOC\n",
"\n",
"from herschelhelp_internal.utils import inMoc"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"smuvs = ascii.read('./data/spitzer.smuvs10589.tbl')"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"Table masked=True length=355913\n",
"
\n",
"survey | object | ra | dec | mag1_psf | mag1_24 | mag1_36 | mag1_48 | mag1_60 | mag1_72 | mag1_120 | mag1_err | cov1 | flag1 | mag2_psf | mag2_24 | mag2_36 | mag2_48 | mag2_60 | mag2_72 | mag2_120 | mag2_err | cov2 | flag2 |
\n",
" | | deg | deg | mag | mag | mag | mag | mag | mag | mag | mag | hs | | mag | mag | mag | mag | mag | mag | mag | mag | hs | |
\n",
"str5 | str19 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | int64 | int64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | int64 | int64 |
\n",
"SMUVS | J100059.87+021342.6 | 150.24947 | 2.22851 | 24.74 | 25.07 | 25.43 | 26.75 | -99.0 | -99.0 | -99.0 | 0.25 | 152 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0 |
\n",
"SMUVS | J100058.17+015800.5 | 150.24238 | 1.96681 | 24.74 | 24.95 | 24.98 | 25.02 | 25.27 | 25.87 | -99.0 | 0.25 | 220 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0 |
\n",
"SMUVS | J095957.96+022431.7 | 149.99151 | 2.4088 | 24.74 | 25.09 | 25.55 | 26.71 | -99.0 | -99.0 | 22.98 | 0.25 | 35 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0 |
\n",
"SMUVS | J100050.92+021311.4 | 150.21218 | 2.21984 | 24.74 | 24.86 | 24.9 | 25.05 | 25.25 | 25.5 | -99.0 | 0.25 | 1013 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0 |
\n",
"SMUVS | J100038.49+023815.0 | 150.16037 | 2.6375 | 24.74 | 24.88 | 24.94 | 25.1 | 25.39 | 25.94 | -99.0 | 0.25 | 442 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0 |
\n",
"SMUVS | J100004.74+020347.2 | 150.01977 | 2.06312 | 24.74 | 24.9 | 25.02 | 25.18 | 25.49 | 25.89 | -99.0 | 0.25 | 445 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0 |
\n",
"SMUVS | J100057.99+022858.0 | 150.24162 | 2.48278 | 24.74 | 26.02 | -99.0 | -99.0 | -99.0 | -99.0 | -99.0 | 0.25 | 252 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0 |
\n",
"SMUVS | J100050.58+023756.6 | 150.21073 | 2.63238 | 24.74 | 25.97 | 29.12 | -99.0 | -99.0 | -99.0 | -99.0 | 0.25 | 368 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0 |
\n",
"SMUVS | J095953.03+021037.7 | 149.97095 | 2.17714 | 24.74 | 24.86 | 24.88 | 24.99 | 25.32 | 25.42 | -99.0 | 0.25 | 100 | 3 | -- | -- | -- | -- | -- | -- | -- | -- | -- | 0 |
\n",
"... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
\n",
"SMUVS | J100132.15+022517.8 | 150.38396 | 2.4216 | 20.95 | 20.78 | 20.68 | 20.58 | 20.43 | 20.3 | 19.9 | 0.09 | 758 | 0 | 20.98 | 20.87 | 20.8 | 20.71 | 20.58 | 20.49 | 20.05 | 0.09 | 902 | 0 |
\n",
"SMUVS | J100116.64+021647.1 | 150.31934 | 2.27976 | 20.95 | 20.81 | 20.72 | 20.62 | 20.5 | 20.39 | 19.94 | 0.09 | 171 | 0 | 21.13 | 21.12 | 21.09 | 21.05 | 21.01 | 20.97 | 20.84 | 0.1 | 205 | 0 |
\n",
"SMUVS | J100226.57+014458.3 | 150.6107 | 1.74952 | 20.95 | 20.95 | 20.95 | 20.95 | 20.95 | 20.95 | 20.98 | 0.09 | 216 | 0 | 21.03 | 21.01 | 20.98 | 20.94 | 20.92 | 20.91 | 20.92 | 0.1 | 217 | 0 |
\n",
"SMUVS | J100220.64+021150.0 | 150.58599 | 2.19724 | 20.95 | 20.94 | 20.94 | 20.93 | 20.91 | 20.9 | 20.89 | 0.09 | 491 | 0 | 21.51 | 21.0 | 21.02 | 20.98 | 20.89 | 20.84 | 20.8 | 0.1 | 394 | 0 |
\n",
"SMUVS | J100143.37+022821.3 | 150.43069 | 2.47259 | 20.95 | 20.95 | 20.95 | 20.95 | 20.94 | 20.94 | 20.87 | 0.09 | 1529 | 0 | 21.37 | 21.37 | 21.37 | 21.36 | 21.35 | 21.34 | 21.24 | 0.1 | 1364 | 0 |
\n",
"SMUVS | J100135.17+020925.5 | 150.39653 | 2.15708 | 20.95 | 20.87 | 20.81 | 20.77 | 20.72 | 20.68 | 20.54 | 0.09 | 430 | 0 | 20.91 | 20.86 | 20.83 | 20.79 | 20.76 | 20.73 | 20.65 | 0.09 | 515 | 0 |
\n",
"SMUVS | J100208.92+021443.3 | 150.53716 | 2.24536 | 20.95 | 20.92 | 20.87 | 20.84 | 20.81 | 20.79 | 20.5 | 0.09 | 850 | 0 | 21.16 | 21.14 | 21.1 | 21.07 | 21.06 | 21.06 | 20.85 | 0.1 | 744 | 0 |
\n",
"SMUVS | J100212.93+020529.9 | 150.55387 | 2.09163 | 20.95 | 20.91 | 20.9 | 20.88 | 20.82 | 20.78 | 20.71 | 0.09 | 1128 | 0 | 20.82 | 20.74 | 20.62 | 20.54 | 20.47 | 20.43 | 20.41 | 0.09 | 892 | 0 |
\n",
"SMUVS | J100130.34+020538.1 | 150.3764 | 2.09391 | 20.95 | 20.97 | 21.0 | 21.03 | 21.05 | 21.07 | 21.12 | 0.09 | 709 | 0 | 21.06 | 21.06 | 21.07 | 21.06 | 21.06 | 21.06 | 21.04 | 0.1 | 698 | 0 |
\n",
"SMUVS | J100148.69+021019.1 | 150.45287 | 2.17196 | 20.95 | 20.9 | 20.82 | 20.76 | 20.72 | 20.71 | 20.73 | 0.09 | 1736 | 0 | 21.43 | 21.37 | 21.27 | 21.21 | 21.17 | 21.15 | 21.18 | 0.1 | 1688 | 0 |
\n",
"
"
],
"text/plain": [
"\n",
"survey object ra dec ... mag2_120 mag2_err cov2 flag2\n",
" deg deg ... mag mag hs \n",
" str5 str19 float64 float64 ... float64 float64 int64 int64\n",
"------ ------------------- --------- ------- ... -------- -------- ----- -----\n",
" SMUVS J100059.87+021342.6 150.24947 2.22851 ... -- -- -- 0\n",
" SMUVS J100058.17+015800.5 150.24238 1.96681 ... -- -- -- 0\n",
" SMUVS J095957.96+022431.7 149.99151 2.4088 ... -- -- -- 0\n",
" SMUVS J100050.92+021311.4 150.21218 2.21984 ... -- -- -- 0\n",
" SMUVS J100038.49+023815.0 150.16037 2.6375 ... -- -- -- 0\n",
" SMUVS J100004.74+020347.2 150.01977 2.06312 ... -- -- -- 0\n",
" SMUVS J100057.99+022858.0 150.24162 2.48278 ... -- -- -- 0\n",
" SMUVS J100050.58+023756.6 150.21073 2.63238 ... -- -- -- 0\n",
" SMUVS J095953.03+021037.7 149.97095 2.17714 ... -- -- -- 0\n",
" ... ... ... ... ... ... ... ... ...\n",
" SMUVS J100132.15+022517.8 150.38396 2.4216 ... 20.05 0.09 902 0\n",
" SMUVS J100116.64+021647.1 150.31934 2.27976 ... 20.84 0.1 205 0\n",
" SMUVS J100226.57+014458.3 150.6107 1.74952 ... 20.92 0.1 217 0\n",
" SMUVS J100220.64+021150.0 150.58599 2.19724 ... 20.8 0.1 394 0\n",
" SMUVS J100143.37+022821.3 150.43069 2.47259 ... 21.24 0.1 1364 0\n",
" SMUVS J100135.17+020925.5 150.39653 2.15708 ... 20.65 0.09 515 0\n",
" SMUVS J100208.92+021443.3 150.53716 2.24536 ... 20.85 0.1 744 0\n",
" SMUVS J100212.93+020529.9 150.55387 2.09163 ... 20.41 0.09 892 0\n",
" SMUVS J100130.34+020538.1 150.3764 2.09391 ... 21.04 0.1 698 0\n",
" SMUVS J100148.69+021019.1 150.45287 2.17196 ... 21.18 0.1 1688 0"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"smuvs"
]
},
{
"cell_type": "code",
"execution_count": 12,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"Table length=355913\n",
"\n",
"survey | object | ra | dec | mag1_psf | mag1_24 | mag1_36 | mag1_48 | mag1_60 | mag1_72 | mag1_120 | mag1_err | cov1 | flag1 | mag2_psf | mag2_24 | mag2_36 | mag2_48 | mag2_60 | mag2_72 | mag2_120 | mag2_err | cov2 | flag2 |
\n",
" | | deg | deg | mag | mag | mag | mag | mag | mag | mag | mag | hs | | mag | mag | mag | mag | mag | mag | mag | mag | hs | |
\n",
"str5 | str19 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | int64 | int64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | int64 | int64 |
\n",
"SMUVS | J100059.87+021342.6 | 150.24947 | 2.22851 | 24.74 | 25.07 | 25.43 | 26.75 | -99.0 | -99.0 | -99.0 | 0.25 | 152 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 |
\n",
"SMUVS | J100058.17+015800.5 | 150.24238 | 1.96681 | 24.74 | 24.95 | 24.98 | 25.02 | 25.27 | 25.87 | -99.0 | 0.25 | 220 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 |
\n",
"SMUVS | J095957.96+022431.7 | 149.99151 | 2.4088 | 24.74 | 25.09 | 25.55 | 26.71 | -99.0 | -99.0 | 22.98 | 0.25 | 35 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 |
\n",
"SMUVS | J100050.92+021311.4 | 150.21218 | 2.21984 | 24.74 | 24.86 | 24.9 | 25.05 | 25.25 | 25.5 | -99.0 | 0.25 | 1013 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 |
\n",
"SMUVS | J100038.49+023815.0 | 150.16037 | 2.6375 | 24.74 | 24.88 | 24.94 | 25.1 | 25.39 | 25.94 | -99.0 | 0.25 | 442 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 |
\n",
"SMUVS | J100004.74+020347.2 | 150.01977 | 2.06312 | 24.74 | 24.9 | 25.02 | 25.18 | 25.49 | 25.89 | -99.0 | 0.25 | 445 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 |
\n",
"SMUVS | J100057.99+022858.0 | 150.24162 | 2.48278 | 24.74 | 26.02 | -99.0 | -99.0 | -99.0 | -99.0 | -99.0 | 0.25 | 252 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 |
\n",
"SMUVS | J100050.58+023756.6 | 150.21073 | 2.63238 | 24.74 | 25.97 | 29.12 | -99.0 | -99.0 | -99.0 | -99.0 | 0.25 | 368 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 |
\n",
"SMUVS | J095953.03+021037.7 | 149.97095 | 2.17714 | 24.74 | 24.86 | 24.88 | 24.99 | 25.32 | 25.42 | -99.0 | 0.25 | 100 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 |
\n",
"... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
\n",
"SMUVS | J100132.15+022517.8 | 150.38396 | 2.4216 | 20.95 | 20.78 | 20.68 | 20.58 | 20.43 | 20.3 | 19.9 | 0.09 | 758 | 0 | 20.98 | 20.87 | 20.8 | 20.71 | 20.58 | 20.49 | 20.05 | 0.09 | 902 | 0 |
\n",
"SMUVS | J100116.64+021647.1 | 150.31934 | 2.27976 | 20.95 | 20.81 | 20.72 | 20.62 | 20.5 | 20.39 | 19.94 | 0.09 | 171 | 0 | 21.13 | 21.12 | 21.09 | 21.05 | 21.01 | 20.97 | 20.84 | 0.1 | 205 | 0 |
\n",
"SMUVS | J100226.57+014458.3 | 150.6107 | 1.74952 | 20.95 | 20.95 | 20.95 | 20.95 | 20.95 | 20.95 | 20.98 | 0.09 | 216 | 0 | 21.03 | 21.01 | 20.98 | 20.94 | 20.92 | 20.91 | 20.92 | 0.1 | 217 | 0 |
\n",
"SMUVS | J100220.64+021150.0 | 150.58599 | 2.19724 | 20.95 | 20.94 | 20.94 | 20.93 | 20.91 | 20.9 | 20.89 | 0.09 | 491 | 0 | 21.51 | 21.0 | 21.02 | 20.98 | 20.89 | 20.84 | 20.8 | 0.1 | 394 | 0 |
\n",
"SMUVS | J100143.37+022821.3 | 150.43069 | 2.47259 | 20.95 | 20.95 | 20.95 | 20.95 | 20.94 | 20.94 | 20.87 | 0.09 | 1529 | 0 | 21.37 | 21.37 | 21.37 | 21.36 | 21.35 | 21.34 | 21.24 | 0.1 | 1364 | 0 |
\n",
"SMUVS | J100135.17+020925.5 | 150.39653 | 2.15708 | 20.95 | 20.87 | 20.81 | 20.77 | 20.72 | 20.68 | 20.54 | 0.09 | 430 | 0 | 20.91 | 20.86 | 20.83 | 20.79 | 20.76 | 20.73 | 20.65 | 0.09 | 515 | 0 |
\n",
"SMUVS | J100208.92+021443.3 | 150.53716 | 2.24536 | 20.95 | 20.92 | 20.87 | 20.84 | 20.81 | 20.79 | 20.5 | 0.09 | 850 | 0 | 21.16 | 21.14 | 21.1 | 21.07 | 21.06 | 21.06 | 20.85 | 0.1 | 744 | 0 |
\n",
"SMUVS | J100212.93+020529.9 | 150.55387 | 2.09163 | 20.95 | 20.91 | 20.9 | 20.88 | 20.82 | 20.78 | 20.71 | 0.09 | 1128 | 0 | 20.82 | 20.74 | 20.62 | 20.54 | 20.47 | 20.43 | 20.41 | 0.09 | 892 | 0 |
\n",
"SMUVS | J100130.34+020538.1 | 150.3764 | 2.09391 | 20.95 | 20.97 | 21.0 | 21.03 | 21.05 | 21.07 | 21.12 | 0.09 | 709 | 0 | 21.06 | 21.06 | 21.07 | 21.06 | 21.06 | 21.06 | 21.04 | 0.1 | 698 | 0 |
\n",
"SMUVS | J100148.69+021019.1 | 150.45287 | 2.17196 | 20.95 | 20.9 | 20.82 | 20.76 | 20.72 | 20.71 | 20.73 | 0.09 | 1736 | 0 | 21.43 | 21.37 | 21.27 | 21.21 | 21.17 | 21.15 | 21.18 | 0.1 | 1688 | 0 |
\n",
"
"
],
"text/plain": [
"\n",
"survey object ra dec ... mag2_120 mag2_err cov2 flag2\n",
" deg deg ... mag mag hs \n",
" str5 str19 float64 float64 ... float64 float64 int64 int64\n",
"------ ------------------- --------- ------- ... -------- -------- ----- -----\n",
" SMUVS J100059.87+021342.6 150.24947 2.22851 ... nan nan -1 0\n",
" SMUVS J100058.17+015800.5 150.24238 1.96681 ... nan nan -1 0\n",
" SMUVS J095957.96+022431.7 149.99151 2.4088 ... nan nan -1 0\n",
" SMUVS J100050.92+021311.4 150.21218 2.21984 ... nan nan -1 0\n",
" SMUVS J100038.49+023815.0 150.16037 2.6375 ... nan nan -1 0\n",
" SMUVS J100004.74+020347.2 150.01977 2.06312 ... nan nan -1 0\n",
" SMUVS J100057.99+022858.0 150.24162 2.48278 ... nan nan -1 0\n",
" SMUVS J100050.58+023756.6 150.21073 2.63238 ... nan nan -1 0\n",
" SMUVS J095953.03+021037.7 149.97095 2.17714 ... nan nan -1 0\n",
" ... ... ... ... ... ... ... ... ...\n",
" SMUVS J100132.15+022517.8 150.38396 2.4216 ... 20.05 0.09 902 0\n",
" SMUVS J100116.64+021647.1 150.31934 2.27976 ... 20.84 0.1 205 0\n",
" SMUVS J100226.57+014458.3 150.6107 1.74952 ... 20.92 0.1 217 0\n",
" SMUVS J100220.64+021150.0 150.58599 2.19724 ... 20.8 0.1 394 0\n",
" SMUVS J100143.37+022821.3 150.43069 2.47259 ... 21.24 0.1 1364 0\n",
" SMUVS J100135.17+020925.5 150.39653 2.15708 ... 20.65 0.09 515 0\n",
" SMUVS J100208.92+021443.3 150.53716 2.24536 ... 20.85 0.1 744 0\n",
" SMUVS J100212.93+020529.9 150.55387 2.09163 ... 20.41 0.09 892 0\n",
" SMUVS J100130.34+020538.1 150.3764 2.09391 ... 21.04 0.1 698 0\n",
" SMUVS J100148.69+021019.1 150.45287 2.17196 ... 21.18 0.1 1688 0"
]
},
"execution_count": 12,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"for col in smuvs.colnames:\n",
" if (smuvs[col].dtype == 'float64'): \n",
" smuvs[col].fill_value = np.nan\n",
" if (smuvs[col].dtype == 'int64'):\n",
" smuvs[col].fill_value = -1\n",
" \n",
"smuvs = smuvs.filled()\n",
"\n",
"smuvs"
]
},
{
"cell_type": "code",
"execution_count": 45,
"metadata": {},
"outputs": [],
"source": [
"def cut_to_help(cat, fields_yml, ra_col='ra', dec_col='dec' ):\n",
" catalogue = cat.copy()\n",
" try:\n",
" catalogue.add_column(Column(data=np.full(len(catalogue), '') , dtype='S18', name = 'field'))\n",
" except ValueError:\n",
" print('field column already exists, flushing column')\n",
" catalogue['field'] = np.full(len(catalogue), '')\n",
" catalogue['field'] = catalogue['field'].astype('S18')\n",
" for field in fields_yml['fields']:\n",
" field_moc = MOC(filename= os.getcwd().split('dmu_products')[0] + field['region'] )\n",
" in_field = inMoc(catalogue[ra_col], catalogue[dec_col], field_moc)\n",
" catalogue['field'][in_field] = field['name']\n",
" \n",
" catalogue = catalogue[catalogue['field'] != '']\n",
" \n",
" return catalogue"
]
},
{
"cell_type": "code",
"execution_count": 46,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"field column already exists, flushing column\n"
]
}
],
"source": [
"fields_yml = yaml.load(open(\"../../dmu2/meta_main.yml\", 'r'))\n",
"smuvs = cut_to_help(smuvs, fields_yml)"
]
},
{
"cell_type": "code",
"execution_count": 47,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<Column name='field' dtype='bytes18' length=1>\n",
""
],
"text/plain": [
"\n",
"COSMOS"
]
},
"execution_count": 47,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.unique(smuvs['field'])"
]
},
{
"cell_type": "code",
"execution_count": 48,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"Table length=355913\n",
"\n",
"survey | object | ra | dec | mag1_psf | mag1_24 | mag1_36 | mag1_48 | mag1_60 | mag1_72 | mag1_120 | mag1_err | cov1 | flag1 | mag2_psf | mag2_24 | mag2_36 | mag2_48 | mag2_60 | mag2_72 | mag2_120 | mag2_err | cov2 | flag2 | field |
\n",
" | | deg | deg | mag | mag | mag | mag | mag | mag | mag | mag | hs | | mag | mag | mag | mag | mag | mag | mag | mag | hs | | |
\n",
"str5 | str19 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | int64 | int64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | float64 | int64 | int64 | bytes18 |
\n",
"SMUVS | J100059.87+021342.6 | 150.24947 | 2.22851 | 24.74 | 25.07 | 25.43 | 26.75 | -99.0 | -99.0 | -99.0 | 0.25 | 152 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 | COSMOS |
\n",
"SMUVS | J100058.17+015800.5 | 150.24238 | 1.96681 | 24.74 | 24.95 | 24.98 | 25.02 | 25.27 | 25.87 | -99.0 | 0.25 | 220 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 | COSMOS |
\n",
"SMUVS | J095957.96+022431.7 | 149.99151 | 2.4088 | 24.74 | 25.09 | 25.55 | 26.71 | -99.0 | -99.0 | 22.98 | 0.25 | 35 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 | COSMOS |
\n",
"SMUVS | J100050.92+021311.4 | 150.21218 | 2.21984 | 24.74 | 24.86 | 24.9 | 25.05 | 25.25 | 25.5 | -99.0 | 0.25 | 1013 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 | COSMOS |
\n",
"SMUVS | J100038.49+023815.0 | 150.16037 | 2.6375 | 24.74 | 24.88 | 24.94 | 25.1 | 25.39 | 25.94 | -99.0 | 0.25 | 442 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 | COSMOS |
\n",
"SMUVS | J100004.74+020347.2 | 150.01977 | 2.06312 | 24.74 | 24.9 | 25.02 | 25.18 | 25.49 | 25.89 | -99.0 | 0.25 | 445 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 | COSMOS |
\n",
"SMUVS | J100057.99+022858.0 | 150.24162 | 2.48278 | 24.74 | 26.02 | -99.0 | -99.0 | -99.0 | -99.0 | -99.0 | 0.25 | 252 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 | COSMOS |
\n",
"SMUVS | J100050.58+023756.6 | 150.21073 | 2.63238 | 24.74 | 25.97 | 29.12 | -99.0 | -99.0 | -99.0 | -99.0 | 0.25 | 368 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 | COSMOS |
\n",
"SMUVS | J095953.03+021037.7 | 149.97095 | 2.17714 | 24.74 | 24.86 | 24.88 | 24.99 | 25.32 | 25.42 | -99.0 | 0.25 | 100 | 3 | nan | nan | nan | nan | nan | nan | nan | nan | -1 | 0 | COSMOS |
\n",
"... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
\n",
"SMUVS | J100132.15+022517.8 | 150.38396 | 2.4216 | 20.95 | 20.78 | 20.68 | 20.58 | 20.43 | 20.3 | 19.9 | 0.09 | 758 | 0 | 20.98 | 20.87 | 20.8 | 20.71 | 20.58 | 20.49 | 20.05 | 0.09 | 902 | 0 | COSMOS |
\n",
"SMUVS | J100116.64+021647.1 | 150.31934 | 2.27976 | 20.95 | 20.81 | 20.72 | 20.62 | 20.5 | 20.39 | 19.94 | 0.09 | 171 | 0 | 21.13 | 21.12 | 21.09 | 21.05 | 21.01 | 20.97 | 20.84 | 0.1 | 205 | 0 | COSMOS |
\n",
"SMUVS | J100226.57+014458.3 | 150.6107 | 1.74952 | 20.95 | 20.95 | 20.95 | 20.95 | 20.95 | 20.95 | 20.98 | 0.09 | 216 | 0 | 21.03 | 21.01 | 20.98 | 20.94 | 20.92 | 20.91 | 20.92 | 0.1 | 217 | 0 | COSMOS |
\n",
"SMUVS | J100220.64+021150.0 | 150.58599 | 2.19724 | 20.95 | 20.94 | 20.94 | 20.93 | 20.91 | 20.9 | 20.89 | 0.09 | 491 | 0 | 21.51 | 21.0 | 21.02 | 20.98 | 20.89 | 20.84 | 20.8 | 0.1 | 394 | 0 | COSMOS |
\n",
"SMUVS | J100143.37+022821.3 | 150.43069 | 2.47259 | 20.95 | 20.95 | 20.95 | 20.95 | 20.94 | 20.94 | 20.87 | 0.09 | 1529 | 0 | 21.37 | 21.37 | 21.37 | 21.36 | 21.35 | 21.34 | 21.24 | 0.1 | 1364 | 0 | COSMOS |
\n",
"SMUVS | J100135.17+020925.5 | 150.39653 | 2.15708 | 20.95 | 20.87 | 20.81 | 20.77 | 20.72 | 20.68 | 20.54 | 0.09 | 430 | 0 | 20.91 | 20.86 | 20.83 | 20.79 | 20.76 | 20.73 | 20.65 | 0.09 | 515 | 0 | COSMOS |
\n",
"SMUVS | J100208.92+021443.3 | 150.53716 | 2.24536 | 20.95 | 20.92 | 20.87 | 20.84 | 20.81 | 20.79 | 20.5 | 0.09 | 850 | 0 | 21.16 | 21.14 | 21.1 | 21.07 | 21.06 | 21.06 | 20.85 | 0.1 | 744 | 0 | COSMOS |
\n",
"SMUVS | J100212.93+020529.9 | 150.55387 | 2.09163 | 20.95 | 20.91 | 20.9 | 20.88 | 20.82 | 20.78 | 20.71 | 0.09 | 1128 | 0 | 20.82 | 20.74 | 20.62 | 20.54 | 20.47 | 20.43 | 20.41 | 0.09 | 892 | 0 | COSMOS |
\n",
"SMUVS | J100130.34+020538.1 | 150.3764 | 2.09391 | 20.95 | 20.97 | 21.0 | 21.03 | 21.05 | 21.07 | 21.12 | 0.09 | 709 | 0 | 21.06 | 21.06 | 21.07 | 21.06 | 21.06 | 21.06 | 21.04 | 0.1 | 698 | 0 | COSMOS |
\n",
"SMUVS | J100148.69+021019.1 | 150.45287 | 2.17196 | 20.95 | 20.9 | 20.82 | 20.76 | 20.72 | 20.71 | 20.73 | 0.09 | 1736 | 0 | 21.43 | 21.37 | 21.27 | 21.21 | 21.17 | 21.15 | 21.18 | 0.1 | 1688 | 0 | COSMOS |
\n",
"
"
],
"text/plain": [
"\n",
"survey object ra dec ... mag2_err cov2 flag2 field \n",
" deg deg ... mag hs \n",
" str5 str19 float64 float64 ... float64 int64 int64 bytes18\n",
"------ ------------------- --------- ------- ... -------- ----- ----- -------\n",
" SMUVS J100059.87+021342.6 150.24947 2.22851 ... nan -1 0 COSMOS\n",
" SMUVS J100058.17+015800.5 150.24238 1.96681 ... nan -1 0 COSMOS\n",
" SMUVS J095957.96+022431.7 149.99151 2.4088 ... nan -1 0 COSMOS\n",
" SMUVS J100050.92+021311.4 150.21218 2.21984 ... nan -1 0 COSMOS\n",
" SMUVS J100038.49+023815.0 150.16037 2.6375 ... nan -1 0 COSMOS\n",
" SMUVS J100004.74+020347.2 150.01977 2.06312 ... nan -1 0 COSMOS\n",
" SMUVS J100057.99+022858.0 150.24162 2.48278 ... nan -1 0 COSMOS\n",
" SMUVS J100050.58+023756.6 150.21073 2.63238 ... nan -1 0 COSMOS\n",
" SMUVS J095953.03+021037.7 149.97095 2.17714 ... nan -1 0 COSMOS\n",
" ... ... ... ... ... ... ... ... ...\n",
" SMUVS J100132.15+022517.8 150.38396 2.4216 ... 0.09 902 0 COSMOS\n",
" SMUVS J100116.64+021647.1 150.31934 2.27976 ... 0.1 205 0 COSMOS\n",
" SMUVS J100226.57+014458.3 150.6107 1.74952 ... 0.1 217 0 COSMOS\n",
" SMUVS J100220.64+021150.0 150.58599 2.19724 ... 0.1 394 0 COSMOS\n",
" SMUVS J100143.37+022821.3 150.43069 2.47259 ... 0.1 1364 0 COSMOS\n",
" SMUVS J100135.17+020925.5 150.39653 2.15708 ... 0.09 515 0 COSMOS\n",
" SMUVS J100208.92+021443.3 150.53716 2.24536 ... 0.1 744 0 COSMOS\n",
" SMUVS J100212.93+020529.9 150.55387 2.09163 ... 0.09 892 0 COSMOS\n",
" SMUVS J100130.34+020538.1 150.3764 2.09391 ... 0.1 698 0 COSMOS\n",
" SMUVS J100148.69+021019.1 150.45287 2.17196 ... 0.1 1688 0 COSMOS"
]
},
"execution_count": 48,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"smuvs"
]
},
{
"cell_type": "code",
"execution_count": 49,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: Attribute `keywords` of type cannot be added to FITS Header - skipping [astropy.io.fits.convenience]\n"
]
}
],
"source": [
"smuvs.write('./data/SMUVS_COSMOS.fits', overwrite=True)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python (herschelhelp_internal)",
"language": "python",
"name": "helpint"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
}
},
"nbformat": 4,
"nbformat_minor": 2
}