{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "f2372660-1a80-4092-8c93-228c39834d84", "metadata": {}, "outputs": [], "source": [ "\n", "\n", "# Fill in the SIMBAD-resolvable name of your target source:\n", "SOURCE = \"Westerlund 2\"\n", "\n", "# Leave this unchanged unless you're sure that you want something else:\n", "REFCAT = \"apass\"\n", "\n" ] }, { "cell_type": "code", "execution_count": 2, "id": "8e8cde2d-cb53-4826-a48e-59db2dd9ab60", "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", "
\n" ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/javascript": [ "'use strict';\n", "(function(root) {\n", " function now() {\n", " return new Date();\n", " }\n", "\n", " const force = true;\n", "\n", " if (typeof root._bokeh_onload_callbacks === \"undefined\" || force === true) {\n", " root._bokeh_onload_callbacks = [];\n", " root._bokeh_is_loading = undefined;\n", " }\n", "\n", "const JS_MIME_TYPE = 'application/javascript';\n", " const HTML_MIME_TYPE = 'text/html';\n", " const EXEC_MIME_TYPE = 'application/vnd.bokehjs_exec.v0+json';\n", " const CLASS_NAME = 'output_bokeh rendered_html';\n", "\n", " /**\n", " * Render data to the DOM node\n", " */\n", " function render(props, node) {\n", " const script = document.createElement(\"script\");\n", " node.appendChild(script);\n", " }\n", "\n", " /**\n", " * Handle when an output is cleared or removed\n", " */\n", " function handleClearOutput(event, handle) {\n", " function drop(id) {\n", " const view = Bokeh.index.get_by_id(id)\n", " if (view != null) {\n", " view.model.document.clear()\n", " Bokeh.index.delete(view)\n", " }\n", " }\n", "\n", " const cell = handle.cell;\n", "\n", " const id = cell.output_area._bokeh_element_id;\n", " const server_id = cell.output_area._bokeh_server_id;\n", "\n", " // Clean up Bokeh references\n", " if (id != null) {\n", " drop(id)\n", " }\n", "\n", " if (server_id !== undefined) {\n", " // Clean up Bokeh references\n", " const cmd_clean = \"from bokeh.io.state import curstate; print(curstate().uuid_to_server['\" + server_id + \"'].get_sessions()[0].document.roots[0]._id)\";\n", " cell.notebook.kernel.execute(cmd_clean, {\n", " iopub: {\n", " output: function(msg) {\n", " const id = msg.content.text.trim()\n", " drop(id)\n", " }\n", " }\n", " });\n", " // Destroy server and session\n", " const cmd_destroy = \"import bokeh.io.notebook as ion; ion.destroy_server('\" + server_id + \"')\";\n", " cell.notebook.kernel.execute(cmd_destroy);\n", " }\n", " }\n", "\n", " /**\n", " * Handle when a new output is added\n", " */\n", " function handleAddOutput(event, handle) {\n", " const output_area = handle.output_area;\n", " const output = handle.output;\n", "\n", " // limit handleAddOutput to display_data with EXEC_MIME_TYPE content only\n", " if ((output.output_type != \"display_data\") || (!Object.prototype.hasOwnProperty.call(output.data, EXEC_MIME_TYPE))) {\n", " return\n", " }\n", "\n", " const toinsert = output_area.element.find(\".\" + CLASS_NAME.split(' ')[0]);\n", "\n", " if (output.metadata[EXEC_MIME_TYPE][\"id\"] !== undefined) {\n", " toinsert[toinsert.length - 1].firstChild.textContent = output.data[JS_MIME_TYPE];\n", " // store reference to embed id on output_area\n", " output_area._bokeh_element_id = output.metadata[EXEC_MIME_TYPE][\"id\"];\n", " }\n", " if (output.metadata[EXEC_MIME_TYPE][\"server_id\"] !== undefined) {\n", " const bk_div = document.createElement(\"div\");\n", " bk_div.innerHTML = output.data[HTML_MIME_TYPE];\n", " const script_attrs = bk_div.children[0].attributes;\n", " for (let i = 0; i < script_attrs.length; i++) {\n", " toinsert[toinsert.length - 1].firstChild.setAttribute(script_attrs[i].name, script_attrs[i].value);\n", " toinsert[toinsert.length - 1].firstChild.textContent = bk_div.children[0].textContent\n", " }\n", " // store reference to server id on output_area\n", " output_area._bokeh_server_id = output.metadata[EXEC_MIME_TYPE][\"server_id\"];\n", " }\n", " }\n", "\n", " function register_renderer(events, OutputArea) {\n", "\n", " function append_mime(data, metadata, element) {\n", " // create a DOM node to render to\n", " const toinsert = this.create_output_subarea(\n", " metadata,\n", " CLASS_NAME,\n", " EXEC_MIME_TYPE\n", " );\n", " this.keyboard_manager.register_events(toinsert);\n", " // Render to node\n", " const props = {data: data, metadata: metadata[EXEC_MIME_TYPE]};\n", " render(props, toinsert[toinsert.length - 1]);\n", " element.append(toinsert);\n", " return toinsert\n", " }\n", "\n", " /* Handle when an output is cleared or removed */\n", " events.on('clear_output.CodeCell', handleClearOutput);\n", " events.on('delete.Cell', handleClearOutput);\n", "\n", " /* Handle when a new output is added */\n", " events.on('output_added.OutputArea', handleAddOutput);\n", "\n", " /**\n", " * Register the mime type and append_mime function with output_area\n", " */\n", " OutputArea.prototype.register_mime_type(EXEC_MIME_TYPE, append_mime, {\n", " /* Is output safe? */\n", " safe: true,\n", " /* Index of renderer in `output_area.display_order` */\n", " index: 0\n", " });\n", " }\n", "\n", " // register the mime type if in Jupyter Notebook environment and previously unregistered\n", " if (root.Jupyter !== undefined) {\n", " const events = require('base/js/events');\n", " const OutputArea = require('notebook/js/outputarea').OutputArea;\n", "\n", " if (OutputArea.prototype.mime_types().indexOf(EXEC_MIME_TYPE) == -1) {\n", " register_renderer(events, OutputArea);\n", " }\n", " }\n", " if (typeof (root._bokeh_timeout) === \"undefined\" || force === true) {\n", " root._bokeh_timeout = Date.now() + 5000;\n", " root._bokeh_failed_load = false;\n", " }\n", "\n", " const NB_LOAD_WARNING = {'data': {'text/html':\n", " \"\\n\"+\n", " \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n", " \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n", " \"
\\n\"+\n", " \"\\n\"+\n",
" \"from bokeh.resources import INLINE\\n\"+\n",
" \"output_notebook(resources=INLINE)\\n\"+\n",
" \"\\n\"+\n",
" \"\\n\"+\n \"BokehJS does not appear to have successfully loaded. If loading BokehJS from CDN, this \\n\"+\n \"may be due to a slow or bad network connection. Possible fixes:\\n\"+\n \"
\\n\"+\n \"\\n\"+\n \"from bokeh.resources import INLINE\\n\"+\n \"output_notebook(resources=INLINE)\\n\"+\n \"\\n\"+\n \"| ref_text | ref_number | gsc_bin_index | pos | dra | ddec | u_pm_ra_cosdec | u_pm_dec | stdmag | color | v_flag | mag_flag | class | num_matches | refcat | local_id |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| deg,deg | arcsec | arcsec | mas / yr | mas / yr | mag | mag | |||||||||
| str22 | uint64 | uint32 | SkyCoord | float32 | float32 | float32 | float32 | float32 | float32 | uint16 | uint16 | uint16 | uint32 | str5 | int64 |
| S111111026652 | 12111111026652 | 13025859 | 155.99173,-57.763591 | 0.6721013 | -0.0684 | 0.9 | 0.9 | 15.27 | 3.65 | 1 | 0 | 3 | 330 | apass | 0 |
| APASS_J102358.5-574545 | 410235852574545 | 13025859 | 155.993883,-57.762402 | -3.462339 | -4.3488 | 0.0 | 0.0 | 15.34 | 1.6 | 1 | 0 | 0 | 4 | apass | 1 |
| S111111026619 | 12111111026619 | 13025860 | 155.997364,-57.76453300000001 | -10.146677 | 3.3228 | 2.8 | 2.8 | 18.17 | 3.27 | 1 | 0 | 0 | 0 | apass | 2 |
| S111111026825 | 12111111026825 | 13025859 | 155.996645,-57.76119700000001 | -8.766412 | -8.6868 | 2.2 | 2.3 | 16.22 | 3.61 | 1 | 0 | 3 | 17 | apass | 3 |
| S111111026835 | 12111111026835 | 13025859 | 155.99042700000004,-57.75957 | 3.174415 | -14.544 | 0.0 | 0.0 | 18.93 | 3.93 | 1 | 0 | 3 | 1 | apass | 4 |
| S111111026827 | 12111111026827 | 13025860 | 156.001458,-57.76184400000001 | -18.008911 | -6.3576 | 1.9 | 1.9 | 17.45 | 2.56 | 1 | 0 | 0 | 11 | apass | 5 |
| S111111037981 | 12111111037981 | 13013571 | 155.992428,-57.769294 | -0.668208 | 20.4624 | 0.0 | 0.0 | 18.59 | 2.81 | 1 | 0 | 3 | 0 | apass | 6 |
| S111111026828 | 12111111026828 | 13025860 | 156.000784,-57.759066000000004 | -16.715246 | -16.3584 | 2.7 | 2.6 | 17.72 | 2.33 | 1 | 4 | 3 | 9 | apass | 7 |
| APASS_J102356.7-574528 | 410235672574528 | 13025859 | 155.986401,-57.757849 | 10.906191 | -20.7396 | 0.0 | 0.0 | 15.44 | 1.13 | 1 | 0 | 0 | 150 | apass | 8 |
| S111111026743 | 12111111026743 | 13025859 | 155.988218,-57.757329000000006 | 7.4168005 | -22.6116 | 29.9 | 29.9 | 18.84 | 3.74 | 1 | 0 | 3 | 11 | apass | 9 |
| S111111037976 | 12111111037976 | 13013571 | 156.00035,-57.768691 | -15.879673 | 18.2916 | 0.0 | 0.0 | -- | -- | 1 | 0 | 3 | 0 | apass | 10 |
| APASS_J102356.2-574530 | 410235622574530 | 13025859 | 155.984078,-57.758334 | 15.367274 | -18.9936 | 1.1 | 1.1 | 15.8 | 1.54 | 1 | 0 | 0 | 54 | apass | 11 |