|
368 | 368 | "del query, results" |
369 | 369 | ] |
370 | 370 | }, |
371 | | - { |
372 | | - "cell_type": "markdown", |
373 | | - "id": "8463597f-8c70-479e-8187-9cbd046db21c", |
374 | | - "metadata": {}, |
375 | | - "source": [ |
376 | | - "### 2.1. The IVOA schema\n", |
377 | | - "\n", |
378 | | - "IVOA stands for [International Virtual Observatory Alliance](https://ivoa.net/), and they work towards defining standards\n", |
379 | | - "for astronomical data storage that enable wide data sharing.\n", |
380 | | - "The LSST Science Pipelines use IVOA standards.\n", |
381 | | - "\n", |
382 | | - "Retrieve all of the tables available in the `ivoa` schema and display them as a pandas table." |
383 | | - ] |
384 | | - }, |
385 | | - { |
386 | | - "cell_type": "code", |
387 | | - "execution_count": null, |
388 | | - "id": "951f4ae4-c0d4-4064-b10a-e2f1f8add499", |
389 | | - "metadata": {}, |
390 | | - "outputs": [], |
391 | | - "source": [ |
392 | | - "query = \"SELECT * \" \\\n", |
393 | | - " \"FROM tap_schema.tables \" \\\n", |
394 | | - " \"WHERE tap_schema.tables.schema_name = 'ivoa'\"\n", |
395 | | - "results = service.search(query)\n", |
396 | | - "results.to_table().to_pandas()" |
397 | | - ] |
398 | | - }, |
399 | | - { |
400 | | - "cell_type": "markdown", |
401 | | - "id": "35361f18-579a-40cc-8caf-af28201869a3", |
402 | | - "metadata": {}, |
403 | | - "source": [ |
404 | | - "There is only one `ivoa` table available for DP0: `ObsCore`." |
405 | | - ] |
406 | | - }, |
407 | | - { |
408 | | - "cell_type": "code", |
409 | | - "execution_count": null, |
410 | | - "id": "5738f062-0e63-43a4-a43e-e8032b4e2e59", |
411 | | - "metadata": {}, |
412 | | - "outputs": [], |
413 | | - "source": [ |
414 | | - "del query, results" |
415 | | - ] |
416 | | - }, |
417 | 371 | { |
418 | 372 | "cell_type": "markdown", |
419 | 373 | "id": "16d98269-9dba-468f-84dc-8c0548926728", |
420 | 374 | "metadata": {}, |
421 | 375 | "source": [ |
422 | | - "### 2.2. The ObsCore table\n", |
| 376 | + "### 2.1. The ObsCore table\n", |
| 377 | + "\n", |
| 378 | + "The `ObsCore` table schema conforms to the IVOA ([International Virtual Observatory Alliance](https://ivoa.net/)) standards.\n", |
423 | 379 | "\n", |
424 | 380 | "The LSST `ObsCore` table is essentially a view into the images\n", |
425 | 381 | "stored in the LSST's [data butler](https://pipelines.lsst.io/modules/lsst.daf.butler/index.html) registry (e.g., [DMTN-236](https://dmtn-236.lsst.io/)).\n", |
|
440 | 396 | "source": [ |
441 | 397 | "query = \"SELECT column_name, datatype, description, unit \" \\\n", |
442 | 398 | " \"FROM tap_schema.columns \" \\\n", |
443 | | - " \"WHERE table_name = 'ivoa.ObsCore'\"\n", |
| 399 | + " \"WHERE table_name = 'dp02_dc2_catalogs.ObsCore'\"\n", |
444 | 400 | "results = service.search(query)\n", |
445 | 401 | "results.to_table().to_pandas()" |
446 | 402 | ] |
|
483 | 439 | "metadata": {}, |
484 | 440 | "outputs": [], |
485 | 441 | "source": [ |
486 | | - "query = \"SELECT * FROM ivoa.ObsCore \"\\\n", |
| 442 | + "query = \"SELECT * FROM dp02_dc2_catalogs.ObsCore \"\\\n", |
487 | 443 | " \"WHERE CONTAINS(POINT('ICRS', \" + target_str_ra + \\\n", |
488 | 444 | " \", \" + target_str_dec + \"), s_region) = 1\"\n", |
489 | 445 | "print(query)" |
|
1196 | 1152 | "metadata": {}, |
1197 | 1153 | "outputs": [], |
1198 | 1154 | "source": [ |
1199 | | - "query = \"SELECT * FROM ivoa.ObsCore \"\\\n", |
| 1155 | + "query = \"SELECT * FROM dp02_dc2_catalogs.ObsCore \"\\\n", |
1200 | 1156 | " \"WHERE CONTAINS(POINT('ICRS', \" + \\\n", |
1201 | 1157 | " target_str_ra + \", \" + target_str_dec + \"), s_region) = 1 \"\\\n", |
1202 | 1158 | " \"AND lsst_band = 'i' \"\\\n", |
|
1901 | 1857 | "metadata": {}, |
1902 | 1858 | "outputs": [], |
1903 | 1859 | "source": [ |
1904 | | - "query = \"SELECT * FROM ivoa.ObsCore \"\\\n", |
| 1860 | + "query = \"SELECT * FROM dp02_dc2_catalogs.ObsCore \"\\\n", |
1905 | 1861 | " \"WHERE CONTAINS(POINT('ICRS', \" + \\\n", |
1906 | 1862 | " target_str_ra + \", \" + target_str_dec + \"), s_region) = 1 \"\\\n", |
1907 | 1863 | " \"AND lsst_band = 'i' \"\\\n", |
|
0 commit comments