Skip to content

Commit 987bb02

Browse files
committed
Minor copy edits
1 parent 20d9a4b commit 987bb02

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

DP1/300_Science_Demos/306_Extragalactic_transients/306_3_Cross_match_queries.ipynb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@
5656
"source": [
5757
"## 1. Introduction\n",
5858
"\n",
59-
"This tutorial demonstrates how to make a efficient queries for the common question of \"does LSST have light curves at these sky coordinates?\" \n",
59+
"This tutorial demonstrates how to make efficient queries for the common question of \"does LSST have light curves at these sky coordinates?\" \n",
6060
"\n",
6161
"**Avoid: querying the forced photometry tables by coordinate.**\n",
6262
"\n",
6363
"It is recommended that the fluxes in the forced photometry table, `ForcedSourceOnDiaObject`, be used to generate light curves.\n",
6464
"However, queries *by coordinate* on the `ForcedSourceOnDiaObject` table are very inefficient and should be avoided.\n",
6565
"This is because the `ForcedSourceOnDiaObject` table contains forced flux measurements made on every difference and direct image, at the location of every `DiaObject`.\n",
66-
"It is much more efficient to do the spatial cross-match with `DiaObject` once and then retrieve forced fluxes for successful matches, rather than spatially cross-matching to the tens or hundreds (and in the future, thousands) of visits.\n",
66+
"It is much more efficient to do the spatial cross-match with `DiaObject` once and then retrieve forced fluxes for successful matches based on their IDs, rather than spatially cross-matching to the tens or hundreds (and in the future, thousands) of visits.\n",
6767
"The same advice applies to the `ForcedSource` and `Object` tables.\n",
6868
"\n",
6969
"**Avoid: putting asynchronous queries into `for` loops.**\n",
@@ -74,7 +74,7 @@
7474
"**Correct: upload a table of coordinates and cross-match using a TAP table join.**\n",
7575
"\n",
7676
"This notebook demonstrates how to upload a table of coordinates and use the TAP service to cross-match\n",
77-
"to the `DiaObject` table and then retrieve light curves for successfull cross-matches.\n",
77+
"to the `DiaObject` table and then retrieve light curves for successful cross-matches.\n",
7878
"\n",
7979
"**Related tutorials**: The 200-level tutorials on the `DiaObject` and `ForcedSourceOnDiaObject` catalogs. The 100-level tutorials on catalog access with TAP and ADQL query statements."
8080
]
@@ -218,7 +218,7 @@
218218
"metadata": {},
219219
"outputs": [],
220220
"source": [
221-
"user_table"
221+
"# user_table"
222222
]
223223
},
224224
{
@@ -253,6 +253,7 @@
253253
"plt.plot(user_table['ra'][tx3], user_table['dec'][tx3], '^', ms=6, mew=0, alpha=0.7,\n",
254254
" color='darkorange', label='random')\n",
255255
"plt.legend(loc='best', handletextpad=0)\n",
256+
"plt.gca().invert_xaxis()\n",
256257
"plt.xlabel('RA')\n",
257258
"plt.ylabel('Dec')\n",
258259
"plt.show()"

0 commit comments

Comments
 (0)