Skip to content

SP-3129: PP review and release NB 101 & 201 for alert archive and packets#144

Open
jeffcarlin wants to merge 1 commit into
mainfrom
tickets/SP-3129
Open

SP-3129: PP review and release NB 101 & 201 for alert archive and packets#144
jeffcarlin wants to merge 1 commit into
mainfrom
tickets/SP-3129

Conversation

@jeffcarlin
Copy link
Copy Markdown
Collaborator

Add the alert access notebooks to the tutorials repo.

@review-notebook-app
Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

"\n",
"**LSST data products:** Alert packets.\n",
"\n",
"**Packages:** `lsst.rsp.RSPClient`, `lsst.rsp..get_service_url`, `fastavro`.\n",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a typo here (two dots before method)

"The FITS response is a multi-extension file with the following extensions.\n",
"\n",
"* `PRIMARY`: A header with telescope and instrument.\n",
"* `ALERT`: Data from the associated DIA (static-sky) or SS (moving) object.\n",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Alert HDU will contain the top-level scalar alert fields (diaSourceId, observation_reason, target_name, etc.) merged together with whichever of diaObject/ssObject/mpc_orbits is present. Perhaps worth adding that to the description?

"metadata": {},
"outputs": [],
"source": [
"alert_id = \"170059317401616524\""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps also worth mentioning that Herald supports the IAU format ID as well (LSST-AP-DS-{ID})

"outputs": [],
"source": [
"response = await client.get(url, params={\"ID\": alert_id})\n",
"response?"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a raise_for_status() after this as well?

"metadata": {},
"source": [
"**DIFFIM, SCIENCE, TEMPLATE**\\\n",
"Option to display the image stamp \"triplet\" of science, template, and difference image for the `dia_hdul`."
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hdul instead of dia_hdul?

" # display.scale(\"linear\", \"zscale\")\n",
" display.scale(\"linear\", \"minmax\")\n",
" display.image(image)\n",
" plt.plot(pixels[0], pixels[0], 'o', ms=20, mew=1, color='None', mec='yellow')\n",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should the y here be pixels[1]?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants