Browse Source

Minor text updates and changesto Vizier search cell

master
Ilse van Bemmel 2 months ago
parent
commit
61294486a3
  1. 15
      EVN PyVO 3CRR.ipynb

15
EVN PyVO 3CRR.ipynb

@ -74,7 +74,7 @@
"#### 3. Search for a table and obtain its content\n",
"All VO tables come with a description, which can be very helpful, but not all authors are aware how this is used in the VO environment. E.g. the example below searches for a table of double-double radio galaxies observed with LOFAR. The table description does not contain either of the keywords you would expect, but luckily the name of the first author is added. \n",
"\n",
"The search is done with an ADQL query, the text between brackets, and explicitly written to a new table called `ddrg_search`. The keywords `tables`, `table_name` and `description` are standard keywords for querying Vizier. Note the specific way a text is quoted. "
"The search is done with an ADQL query, the text between brackets, and explicitly written to a new table called `my_search`. The keywords `tables`, `table_name` and `description` are standard keywords for querying Vizier. Note the specific way a text is quoted. "
]
},
{
@ -112,13 +112,16 @@
"source": [
"# Identify the table needed and select all records\n",
"# Note that the name of the table requires the 'list' part \n",
"my_table = tap_vizier.search(\"SELECT * FROM \\\"J/ApJS/164/307/catalog\\\" \").to_table()\n",
"\n",
"#my_table = tap_vizier.search(\"SELECT Name,_RA,_DE FROM \\\"J/MNRAS/440/269/3CRR\\\" \").to_table()\n",
"#my_table = tap_vizier.search(\"SELECT 3CR,RA1950,DE1950 FROM \\\"J/PASP/97/932/3cr\\\" \").to_table()\n",
"my_table = tap_vizier.search(\"SELECT RAJ2000,DEJ2000,NAME FROM \\\"J/MNRAS/404/1719/tablea2\\\" \").to_table()\n",
"#my_table = tap_vizier.search(\"SELECT RAJ2000,DEJ2000,NAME FROM \\\"J/MNRAS/404/1719/tablea2\\\" \").to_table()\n",
"\n",
"#my_table = tap_vizier.search(\"SELECT 3C as Name,RAJ2000,DEJ2000 FROM \\\"J/ApJS/164/307/catalog\\\" \").to_table()\n",
"\n",
"# Figure out the full length of the table\n",
"print(\"Number of table entries: \" + str(len(my_table.columns['Name'])))\n",
"#print(\"Number of table entries: \" + str(len(my_table.columns['RAJ2000'])))\n",
"\n",
"# Print the first 10 records of the table\n",
"my_table[0:10]"
@ -187,7 +190,7 @@
" FROM ivoa.obscore AS db\n",
" JOIN TAP_UPLOAD.my_table AS mine\n",
" ON 1=CONTAINS(POINT('ICRS',mine.RAJ2000, mine.DEJ2000),\n",
" CIRCLE('ICRS',db.s_ra, db.s_dec, 1.0))\n",
" CIRCLE('ICRS',db.s_ra, db.s_dec, 0.1))\n",
"\"\"\"\n",
"# Note that using the FOV in the circle definition does not work well for EVN, as the FOV is extremely small. \n",
"# Therefore it is better to set it to a numeric value, in this cae 0.01 degrees, which may be too large."
@ -247,7 +250,7 @@
"# and the results will be listed there.\n",
"# WARNINGS given as output are usually benign\n",
"\n",
"#evn_search.broadcast_samp(\"topcat\")"
"evn_search.broadcast_samp(\"topcat\")"
]
},
{
@ -292,7 +295,7 @@
},
{
"cell_type": "raw",
"id": "superior-cause",
"id": "prime-alberta",
"metadata": {
"scrolled": false
},

Loading…
Cancel
Save