|
99 | 99 | "\n", |
100 | 100 | "The TAP service uses a query language similar to SQL (Structured Query Langage) called ADQL (Astronomical Data Query Language). The <a href=\"http://www.ivoa.net/documents/latest/ADQL.html\">documentation for ADQL</a> includes more information about syntax and keywords.\n", |
101 | 101 | "\n", |
102 | | - "**Hazard Warning:** Not all ADQL functionality are supported yet in the DP0 RSP." |
| 102 | + "**Hazard Warning:** Not all ADQL functionality is supported yet in the DP0 RSP." |
103 | 103 | ] |
104 | 104 | }, |
105 | 105 | { |
|
111 | 111 | "# Import the Rubin TAP service utilities \n", |
112 | 112 | "from rubin_jupyter_utils.lab.notebook import get_tap_service, retrieve_query \n", |
113 | 113 | "\n", |
114 | | - "# Get an instance the TAP service \n", |
| 114 | + "# Get an instance of the TAP service \n", |
115 | 115 | "service = get_tap_service()\n", |
116 | 116 | "assert service is not None" |
117 | 117 | ] |
|
217 | 217 | "\n", |
218 | 218 | "The Object catalog (dp01_dc2_catalogs.object) contains sources detected in the coadded images (also called stacked or combined images). The Object catalog is likely to be the catalog that is of the most interest to DP0 delgates. \n", |
219 | 219 | "\n", |
220 | | - "The `object` catalog is described in the <a href=\"https://arxiv.org/abs/2101.04855\">DESC's DC2 data release note</a>, and more information about the simulated data in the <a href=\"https://ui.adsabs.harvard.edu/abs/2021ApJS..253...31L/abstract\">DESC's DC2 paper</a>. " |
| 220 | + "The `object` catalog is described in the <a href=\"https://arxiv.org/abs/2101.04855\">DESC's DC2 data release note</a>, and more information about the simulated data can be found in the <a href=\"https://ui.adsabs.harvard.edu/abs/2021ApJS..253...31L/abstract\">DESC's DC2 paper</a>. " |
221 | 221 | ] |
222 | 222 | }, |
223 | 223 | { |
|
286 | 286 | "source": [ |
287 | 287 | "#### 2.2 Cone search around a point with specified radius\n", |
288 | 288 | "\n", |
289 | | - "We will execute a cone search centered on (RA, Dec) = (61.863, -35.79) with a radius of 20 arcseconds and applying a cut on magnitude. The following illustrates a selection from the object table in a circular region of 0.1 degree radius degrees and join the object table with the truth table. We expect to get 15,670 results." |
| 289 | + "We will execute a cone search centered on (RA, Dec) = (61.863, -35.79) with a radius of 20 arcseconds and applying a cut on magnitude. The following illustrates a selection from the object table in a circular region of 0.1 degrees. In the next section additional constraints are imposed on the selection by joining the object table with the truth table. We expect to get 15,670 results." |
290 | 290 | ] |
291 | 291 | }, |
292 | 292 | { |
|
337 | 337 | "source": [ |
338 | 338 | "#### 2.3. Cone search joining the results with the truth infomation \n", |
339 | 339 | "\n", |
340 | | - "We will now join the results from the above query with the truth information. We will aslo add in some quality filters on the match. Objects in the truth-match table that do not have matches in the object table have “match_objectId = -1,” while those with legitimate matches contain the ‘objectId’ of the corresponding object from the object table in “match_objectId.” By requiring this to be greater than or equal to zero, we extract only objects with matches. We also keep only sources satisfying the “is_good_match” flag, which is described in the schema as being “True if this object–truth matching pair satisfies all matching criteria.” (Note that “1” and “TRUE” are equivalent in ADQL.)\n", |
| 340 | + "We will now join the results from the above query with the truth information. We will also add in some quality filters on the match. Objects in the truth-match table that do not have matches in the object table have “match_objectId = -1,” while those with legitimate matches contain the ‘objectId’ of the corresponding object from the object table in “match_objectId.” By requiring this to be greater than or equal to zero, we extract only objects with matches. We also keep only sources satisfying the “is_good_match” flag, which is described in the schema as being “True if this object–truth matching pair satisfies all matching criteria.” (Note that “1” and “TRUE” are equivalent in ADQL.)\n", |
341 | 341 | "\n", |
342 | 342 | "With these additional quality filters applied to the matching with the truth information, we only get 14424 results." |
343 | 343 | ] |
|
393 | 393 | "metadata": {}, |
394 | 394 | "source": [ |
395 | 395 | "#### 3.1 Data preparation\n", |
396 | | - "The basis for any data visualization is the underlying data. We will prepare ColumnDataSource (CDS) from the data returned by the query above that can be passed directly to bokeh. The CDS is the core of bokeh plots. Bokeh automatically creates a CDS from data passed as python lists ot numpy arrays. CDS are useful as they allow data to be shared between multiple plots and renderers, enabling brushing and linking. A CDS is essentially a collection of sequences of data that have their own unique column name. \n", |
| 396 | + "The basis for any data visualization is the underlying data. We will prepare ColumnDataSource (CDS) from the data returned by the query above that can be passed directly to bokeh. The CDS is the core of bokeh plots. Bokeh automatically creates a CDS from data passed as python lists or numpy arrays. CDS are useful as they allow data to be shared between multiple plots and renderers, enabling brushing and linking. A CDS is essentially a collection of sequences of data that have their own unique column name. \n", |
397 | 397 | "\n", |
398 | 398 | "Getting the data preparation phase right is key to creating powerful visualizations. " |
399 | 399 | ] |
|
478 | 478 | "metadata": {}, |
479 | 479 | "source": [ |
480 | 480 | "#### 3.3 Color-color (r-i vs. g-r) diagram. \n", |
481 | | - "We will add a color-color (r-i vs. g-r) diagram and make use the advanced linking features of bokeh to enable brushing and linking between the the color-magnitude diagram and this color-color plot. The CMD in 4.2 is very crowed as it contains 14424 data points. We will now filter on the truth-type to plot stars ony" |
| 481 | + "We will add a color-color (r-i vs. g-r) diagram and make use of the advanced linking features of bokeh to enable brushing and linking between the the color-magnitude diagram and this color-color plot. The CMD in 4.2 is very crowded as it contains 14424 data points. We will now filter on the truth-type to plot stars only." |
482 | 482 | ] |
483 | 483 | }, |
484 | 484 | { |
|
615 | 615 | "metadata": {}, |
616 | 616 | "outputs": [], |
617 | 617 | "source": [ |
618 | | - "# Another way to add data can be added to the CDS\n", |
| 618 | + "# Another way that data can be added to the CDS\n", |
619 | 619 | "source.add(results['cModelFlux_i'] / results['flux_i'], name='flux_ratio')\n", |
620 | 620 | "source.add(results['truth_mag_r'], name='truth_mag_r')" |
621 | 621 | ] |
|
0 commit comments