Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -324,14 +324,14 @@
"source": [
"#### 2.2.3. Detections\n",
"\n",
"Total number of detections across all filters (i.e., number of associated `diaSource`s). \n",
"\n",
"* `nDiaSources`\n",
"\n",
"The MJD of the first and last detections - note that these columns are masked, and are not populated with values, for `diaObjects` that have not been detected since [alert production recommenced at the end of October 2026](https://www.rubin.community/t/rubin-alerts-will-begin-streaming-again-soon/12885) after the winter storm shutdown period.\n",
"\n",
"* `firstDiaSourceMjdTai`\n",
"* `lastDiaSourceMjdTai`"
"* `lastDiaSourceMjdTai`\n",
"\n",
"This represents the number of diaSources in the alert light curve. It is usually but not always the same as the number of associated rows in the `ppdb.DiaSource` table. It is not always the same due to some known issues, mainly with diaSource duplication, which are being worked on.\n",
"\n",
"* `nDiaSources`\n"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@
"id": "d18566b2-1977-4b80-9296-785f1c67c5af",
"metadata": {},
"source": [
"Query the `DiaObject` table and retrieve the `diaObjectId`, the number of detections (`nDiaSources`), and the offset distance between all matches and the search coordinates. Note that this is not a nearest-neighbor search and that multiple matches within the search radius may be returned. Retrieve the results as an Astropy table."
"Query the `DiaObject` table and retrieve the `diaObjectId`, the number of diaSources in the alert light curve (`nDiaSources`), and the offset distance between all matches and the search coordinates. Note that this is not a nearest-neighbor search and that multiple matches within the search radius may be returned. Retrieve the results as an Astropy table."
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@
"id": "3238130b-0c9f-49c5-9e42-1cf1884659d8",
"metadata": {},
"source": [
"For any SN that had more than one cross-match result to the `DiaObject` table, the following cell would print its name and the number of matches, and also the identifier, number of diaSources, and the sky distances for each match.\n",
"For any SN that had more than one cross-match result to the `DiaObject` table, the following cell would print its name and the number of matches, and also the identifier, number of diaSources in its alert light curve, and the sky distances for each match.\n",
"When a cross-match yields duplicates, the real astrophysical transients are usually the closest diaObject or the one with lots of detections (as spurious artifacts are often only detected once).\n",
"This is not needed for this sample, as there were no duplicates."
]
Expand Down Expand Up @@ -363,7 +363,8 @@
"source": [
"### 3.2. Histogram of nDiaSources\n",
"\n",
"Plot a histogram of the number of detections (`nDiaSources`) per object."
"Plot a histogram of the number of diaSources in the alert light curve (`nDiaSources`) per object.\n",
"Note that this number is usually, but not always, the same as the number of associated rows in the `ppdb.DiaSource` table. It is not always the same due to some known issues, mainly with diaSource duplication, which are being worked on."
]
},
{
Expand All @@ -375,7 +376,7 @@
"source": [
"fig = plt.figure(figsize=(10, 4))\n",
"plt.hist(diao_table['nDiaSources'], bins=30)\n",
"plt.xlabel('Number of detections per object', fontsize=12)\n",
"plt.xlabel('nDiaSources', fontsize=12)\n",
"plt.ylabel('Number of objects', fontsize=12)\n",
"plt.title('Distribution of the number of detections in any filter')\n",
"plt.show()"
Expand Down
Loading