This repository contains notebooks based on the Virtual Observatory example Python scripts from https://github.com/hendhd/hyantis/pysrc/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

646 lines
24 KiB

{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# VO tools: try to port a PyVO script into a notebook\n",
"Based on the hyantis/pysrc examples from Hendrik Heinl\n",
"(see cloned repository in the ~/Science/ESCAPE/VOschool/ directory"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Import the necessary stuff"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"import pyvo\n",
"from astropy.table import Table"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Define the ADQL query:\n",
"- `SELECT` is a default SQL statement and does what it says, selecting anything that matches the selection criteria \n",
"- `TOP 3` is a selection criterion, select the first 3 rows \n",
"- `*` is a selection criterion to select every element in the row \n",
"- `FROM` defines the table to select from and `AS` names the database containing the selection \n",
"- `JOIN TAP_UPLOAD.lt AS mine`: this takes the intersection of the tables `lt` and `db` using the conditional statement from the line below. The `TAP_UPLOAD.lt` table is defined in the call where the QUERY is run \n",
"- `ON 1 =` defines a conditional statement, in this case a position in database `db` (`POINT`) to be in a circular area (`CIRCLE`) in database `mine` (note the naming is not `lt`). It uses the keys in the database to define RA, DEC and radius.\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"# Define the ADQL query\n",
"\n",
"QUERY=\"\"\"\n",
"SELECT\n",
" TOP 3\n",
" *\n",
" FROM ivoa.obscore AS db\n",
" JOIN TAP_UPLOAD.lt AS mine\n",
" ON 1=CONTAINS(POINT('ICRS', db.s_ra, db.s_dec),\n",
" CIRCLE('ICRS', mine.RA, mine.Decl, mine.Beta))\n",
"\"\"\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Define a task that queries the TAP services for each row in the VOtable"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"# Define a function to search the services for every row in the list\n",
"# The keyboard interrupt doesn't really work for a Notebook, is there \n",
"def search_obscsvc(services, lt):\n",
" for row in services:\n",
" try:\n",
"\n",
" print (\"Querying {url}\".format(url=row.access_url))\n",
"\n",
" service=pyvo.dal.TAPService(row.access_url)\n",
" \n",
" result=service.run_async(query=QUERY, uploads={\"lt\":lt})\n",
" \n",
" result.broadcast_samp(\"topcat\")\n",
"\n",
" except KeyboardInterrupt:\n",
" # someone lost their patience with a service. Query next.\n",
" pass\n",
" except Exception as msg:\n",
" # some service is broken; you *should* complain, but\n",
" # then let's be lazy here\n",
" print(\" Broken: {} ({})\\n\".format(row.access_url, msg))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This cell runs all the stuff, used to be the 'main' function. The warnings issued by this are completely benign and can be ignored."
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"scrolled": false
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
" distCol MJD Beta Nhit RA Decl ID \n",
" deg \n",
"----------------- ---------- ---- ---- ---- ---- -------\n",
"0.836538409016823 55592.169 0.3 48 43.3 35.8 ANT3412\n",
" 1.94262592664262 57258.5917 0.3 35 43.5 36.9 ANT7402\n",
" 2.52776479777075 55756.7405 0.5 33 44.5 32.8 ANT3846\n",
" 2.73187906659559 54500.0934 0.5 64 43.5 32.3 ANT0366\n",
" 3.96133210142454 55863.6208 0.6 62 44.4 38.8 ANT4182\n",
" 4.5511536846343 55093.5404 0.9 26 45.8 31.1 ANT1900\n",
" 4.92196570561664 54484.285 0.4 21 48.7 36.7 ANT0322\n",
" 4.97512680458205 56778.1264 0.6 34 48.1 32.4 ANT6495\n",
" 5.03439383746033 56608.4006 0.5 36 39.2 31.1 ANT5971\n",
" 5.52304047229027 55079.6981 0.8 38 38.1 31.3 ANT1851\n",
" ... ... ... ... ... ... ...\n",
" 34.6207387998358 56493.9506 0.3 79 72.1 12.5 ANT5731\n",
" 34.6406125136452 55520.1664 0.4 21 12.0 14.4 ANT2981\n",
" 34.7116530612214 56562.5924 0.5 37 22.3 6.0 ANT5855\n",
" 34.7337273122684 55154.3934 0.4 41 2.5 28.7 ANT2075\n",
" 34.7426631836307 55444.3994 0.5 30 17.4 9.3 ANT2737\n",
" 34.8344510197767 56531.4729 0.3 51 0.0 35.5 ANT5781\n",
" 34.8701916935376 57102.2104 0.4 44 52.2 1.2 ANT7147\n",
" 34.8995766504493 56692.1379 0.4 23 69.6 9.9 ANT6252\n",
" 34.9273312176467 54639.9044 0.5 41 55.3 2.0 ANT0840\n",
" 34.9573792251953 55554.3776 0.2 38 69.2 9.5 ANT3182\n",
"Length = 397 rows\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: UnknownElementWarning: None:3:1106: UnknownElementWarning: Unknown element mirrorURL [pyvo.utils.xml.elements]\n",
"WARNING: UnknownElementWarning: None:100:4268: UnknownElementWarning: Unknown element mirrorURL [pyvo.utils.xml.elements]\n",
"WARNING: UnknownElementWarning: None:100:4585: UnknownElementWarning: Unknown element mirrorURL [pyvo.utils.xml.elements]\n",
"WARNING: UnknownElementWarning: None:100:4897: UnknownElementWarning: Unknown element mirrorURL [pyvo.utils.xml.elements]\n",
"WARNING: UnknownElementWarning: None:100:5197: UnknownElementWarning: Unknown element mirrorURL [pyvo.utils.xml.elements]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying http://gavo.aip.de/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: UnknownElementWarning: None:9:247: UnknownElementWarning: Unknown element errorSummary [pyvo.utils.xml.elements]\n",
"WARNING: UnknownElementWarning: None:9:296: UnknownElementWarning: Unknown element message [pyvo.utils.xml.elements]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" Broken: http://gavo.aip.de/tap (Query Error)\n",
"\n",
"Querying http://vao.stsci.edu/CAOMTAP/TapService.aspx\n",
"Querying http://astroweb.projects.phys.ucl.ac.uk:8000/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying https://vo.astron.nl/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying http://vos2.asu.cas.cz/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying https://atoavo.atnf.csiro.au/tap\n",
" Broken: https://atoavo.atnf.csiro.au/tap (Cannot parse datetime 2021-04-21T23:08:59.767+1000)\n",
"\n",
"Querying https://casda.csiro.au/casda_vo_tools/tap\n",
" Broken: https://casda.csiro.au/casda_vo_tools/tap (Cannot parse datetime 2021-04-21T21:09:06.225+0800)\n",
"\n",
"Querying http://arvo-registry.sci.am/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/argus\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: UnknownElementWarning: None:26:2: UnknownElementWarning: Unknown element errorSummary [pyvo.utils.xml.elements]\n",
"WARNING: UnknownElementWarning: None:27:4: UnknownElementWarning: Unknown element message [pyvo.utils.xml.elements]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" Broken: https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/argus (Query Error)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/tap/jplus-dr1?\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: UnknownElementWarning: None:29:2: UnknownElementWarning: Unknown element errorSummary [pyvo.utils.xml.elements]\n",
"WARNING: UnknownElementWarning: None:30:2: UnknownElementWarning: Unknown element message [pyvo.utils.xml.elements]\n",
"WARNING: UnknownElementWarning: None:32:2: UnknownElementWarning: Unknown element jobInfo [pyvo.utils.xml.elements]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" Broken: https://archive.cefca.es/catalogues/vo/tap/jplus-dr1? (Query Error)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/siap/jplus-dr1?\n",
" Broken: https://archive.cefca.es/catalogues/vo/siap/jplus-dr1? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/jplus-dr1/JPLUS.MAGABDUALOBJ?\n",
" Broken: https://archive.cefca.es/catalogues/vo/cone/jplus-dr1/JPLUS.MAGABDUALOBJ? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/jplus-dr1/JPLUS.MAGABSINGLEOBJ?\n",
" Broken: https://archive.cefca.es/catalogues/vo/cone/jplus-dr1/JPLUS.MAGABSINGLEOBJ? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/jplus-dr1/JPLUS.TILEIMAGE?\n",
" Broken: https://archive.cefca.es/catalogues/vo/cone/jplus-dr1/JPLUS.TILEIMAGE? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/tap/jplus-dr2?\n",
" Broken: https://archive.cefca.es/catalogues/vo/tap/jplus-dr2? (Query Error)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/siap/jplus-dr2?\n",
" Broken: https://archive.cefca.es/catalogues/vo/siap/jplus-dr2? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/siap/jplus-dr2/reduced?\n",
" Broken: https://archive.cefca.es/catalogues/vo/siap/jplus-dr2/reduced? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/jplus-dr2/JPLUS.MAGABDUALOBJ?\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/jplus-dr2/JPLUS.TILEIMAGEWITHFLAG?\n",
" Broken: https://archive.cefca.es/catalogues/vo/cone/jplus-dr2/JPLUS.TILEIMAGEWITHFLAG? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/jplus-dr2/JPLUS.XMATCH_MINIJPAS_PDR201912?\n",
" Broken: https://archive.cefca.es/catalogues/vo/cone/jplus-dr2/JPLUS.XMATCH_MINIJPAS_PDR201912? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/jplus-dr2/JPLUS.XMATCH_JPLUS_DR1?\n",
" Broken: https://archive.cefca.es/catalogues/vo/cone/jplus-dr2/JPLUS.XMATCH_JPLUS_DR1? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/jplus-dr2/JPLUS.MAGABSINGLEOBJ?\n",
" Broken: https://archive.cefca.es/catalogues/vo/cone/jplus-dr2/JPLUS.MAGABSINGLEOBJ? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/jplus-dr2/JPLUS.REDUCEDINDIVIDUALFRAME?\n",
" Broken: https://archive.cefca.es/catalogues/vo/cone/jplus-dr2/JPLUS.REDUCEDINDIVIDUALFRAME? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/jplus-dr2/JPLUS.TILEIMAGE?\n",
" Broken: https://archive.cefca.es/catalogues/vo/cone/jplus-dr2/JPLUS.TILEIMAGE? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/tap/minijpas-pdr201912\n",
" Broken: https://archive.cefca.es/catalogues/vo/tap/minijpas-pdr201912 (Query Error)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/siap/minijpas-pdr201912?\n",
" Broken: https://archive.cefca.es/catalogues/vo/siap/minijpas-pdr201912? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/minijpas-pdr201912/MINIJPAS.XMATCH_JPLUS_DR1?\n",
" Broken: https://archive.cefca.es/catalogues/vo/cone/minijpas-pdr201912/MINIJPAS.XMATCH_JPLUS_DR1? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/minijpas-pdr201912/MINIJPAS.MAGABDUALOBJ?\n",
" Broken: https://archive.cefca.es/catalogues/vo/cone/minijpas-pdr201912/MINIJPAS.MAGABDUALOBJ? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/minijpas-pdr201912/MINIJPAS.TILEIMAGE?\n",
" Broken: https://archive.cefca.es/catalogues/vo/cone/minijpas-pdr201912/MINIJPAS.TILEIMAGE? (123:2: mismatched tag)\n",
"\n",
"Querying https://archive.cefca.es/catalogues/vo/cone/minijpas-pdr201912/MINIJPAS.MAGABSINGLEOBJ?\n",
" Broken: https://archive.cefca.es/catalogues/vo/cone/minijpas-pdr201912/MINIJPAS.MAGABSINGLEOBJ? (123:2: mismatched tag)\n",
"\n",
"Querying https://vo.chivo.cl/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying http://archive.eso.org/tap_obs\n",
" Broken: http://archive.eso.org/tap_obs (404 Client Error: for url: http://archive.eso.org/tap_obs/async/phase)\n",
"\n",
"Querying http://dachs.planet.fu-berlin.de/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying http://ia2-tap.oats.inaf.it:8080/wgetap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: UnknownElementWarning: None:25:2: UnknownElementWarning: Unknown element errorSummary [pyvo.utils.xml.elements]\n",
"WARNING: UnknownElementWarning: None:26:4: UnknownElementWarning: Unknown element message [pyvo.utils.xml.elements]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" Broken: http://ia2-tap.oats.inaf.it:8080/wgetap (Query Error)\n",
"\n",
"Querying http://vo-node1.iaps.inaf.it/tap\n",
" Broken: http://vo-node1.iaps.inaf.it/tap (('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')))\n",
"\n",
"Querying http://dorotka.ufa.cas.cz/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: UnknownElementWarning: None:9:274: UnknownElementWarning: Unknown element errorSummary [pyvo.utils.xml.elements]\n",
"WARNING: UnknownElementWarning: None:9:323: UnknownElementWarning: Unknown element message [pyvo.utils.xml.elements]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" Broken: http://dorotka.ufa.cas.cz/tap (Query Error)\n",
"\n",
"Querying http://jvo.nao.ac.jp/skynode/do/tap/alma\n",
" Broken: http://jvo.nao.ac.jp/skynode/do/tap/alma (404 Client Error: for url: http://jvo.nao.ac.jp/skynode/do/tap/alma/async/phase)\n",
"\n",
"Querying http://jvo.nao.ac.jp/skynode/do/tap/halca\n",
" Broken: http://jvo.nao.ac.jp/skynode/do/tap/halca (404 Client Error: for url: http://jvo.nao.ac.jp/skynode/do/tap/halca/async/phase)\n",
"\n",
"Querying http://jvo.nao.ac.jp/skynode/do/tap/hitomi\n",
" Broken: http://jvo.nao.ac.jp/skynode/do/tap/hitomi (404 Client Error: for url: http://jvo.nao.ac.jp/skynode/do/tap/hitomi/async/phase)\n",
"\n",
"Querying http://jvo.nao.ac.jp/skynode/do/tap/nobeyama/\n",
" Broken: http://jvo.nao.ac.jp/skynode/do/tap/nobeyama/ (404 Client Error: for url: http://jvo.nao.ac.jp/skynode/do/tap/nobeyama//async/phase)\n",
"\n",
"Querying http://jvo.nao.ac.jp/skynode/do/tap/spcam\n",
" Broken: http://jvo.nao.ac.jp/skynode/do/tap/spcam (404 Client Error: for url: http://jvo.nao.ac.jp/skynode/do/tap/spcam/async/phase)\n",
"\n",
"Querying http://jvo.nao.ac.jp/skynode/do/siap/spcam/image_cutout/1.0?\n",
" Broken: http://jvo.nao.ac.jp/skynode/do/siap/spcam/image_cutout/1.0? (Cannot wait for job completion. Job is not active!)\n",
"\n",
"Querying http://jvo.nao.ac.jp/skynode/do/siap/spcam/image_nocut/1.0?\n",
" Broken: http://jvo.nao.ac.jp/skynode/do/siap/spcam/image_nocut/1.0? (Cannot wait for job completion. Job is not active!)\n",
"\n",
"Querying http://machotap.asvo.nci.org.au/ncitap/tap\n",
" Broken: http://machotap.asvo.nci.org.au/ncitap/tap (Cannot parse datetime 2021-04-17T23:11:38.165+1000)\n",
"\n",
"Querying http://api.skymapper.nci.org.au/public/tap\n",
" Broken: http://api.skymapper.nci.org.au/public/tap (Cannot parse datetime 2021-04-17T23:11:42.130+1000)\n",
"\n",
"Querying http://wiggleztap.asvo.nci.org.au/ncitap/tap\n",
" Broken: http://wiggleztap.asvo.nci.org.au/ncitap/tap (Cannot parse datetime 2021-04-17T23:11:45.485+1000)\n",
"\n",
"Querying http://dc.zah.uni-heidelberg.de/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying http://osug-vo.osug.fr:8080/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying http://voparis-rr.obspm.fr:80/tap\n",
" Broken: http://voparis-rr.obspm.fr:80/tap (404 Client Error: Not Found for url: http://voparis-rr.obspm.fr:80/tap/async/phase)\n",
"\n",
"Querying http://pvol2.ehu.eus:8083/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying http://spectrum.iaa.es/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying https://gaia.ari.uni-heidelberg.de/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying http://epn-tap.oeaw.ac.at/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying http://voparis-tap-astro.obspm.fr/__system__/tap/run/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying http://voparis-tap-maser.obspm.fr:80/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: UnknownElementWarning: None:9:265: UnknownElementWarning: Unknown element errorSummary [pyvo.utils.xml.elements]\n",
"WARNING: UnknownElementWarning: None:9:314: UnknownElementWarning: Unknown element message [pyvo.utils.xml.elements]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
" Broken: http://voparis-tap-maser.obspm.fr:80/tap (Query Error)\n",
"\n",
"Querying http://voparis-tap-voevent.obspm.fr:80/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying http://rcsed-vo.sai.msu.ru/tap\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: W48: ?:?:?: W48: Unknown attribute 'xtype' on FIELD [astropy.io.votable.tree]\n",
"WARNING: W28: ?:?:?: W28: 'xtype' on 'FIELD' added in VOTable 1.2 [astropy.io.votable.tree]\n"
]
},
{
"name": "stdout",
"output_type": "stream",
"text": [
"Querying http://xcatdb.unistra.fr/3xmmdr7/tap\n",
" Broken: http://xcatdb.unistra.fr/3xmmdr7/tap (Cannot parse datetime 2021-04-16T15:07:23.136+0200)\n",
"\n"
]
},
{
"name": "stderr",
"output_type": "stream",
"text": [
"WARNING: UnknownElementWarning: None:17:1: UnknownElementWarning: Unknown element errorSummary [pyvo.utils.xml.elements]\n"
]
}
],
"source": [
"# This is the original 'main' function\n",
"\n",
"# read a local VO-table\n",
"lt = Table.read('neutrinos.vot', format='votable')\n",
"print (lt)\n",
"\n",
"# create a VO-table for the list of services that needs to be searched\n",
"obsvc=pyvo.registry.search(datamodel=\"obscore\")\n",
"obsvc.votable.to_xml(\"obscore_services.vot\")\n",
"\n",
"# run the search command\n",
"search_obscsvc(obsvc, lt)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"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.8.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}