Skip to content

Commit

Permalink
Merge pull request #12 from lsst-sqre/u/jonathansick/conditional-dimm…
Browse files Browse the repository at this point in the history
…-plotting

Make plotting DIMM seeing conditional
  • Loading branch information
jonathansick authored Feb 8, 2024
2 parents c95ea40 + acbad85 commit 37abd64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.venv
venv
.ipynb_checkpoints
12 changes: 8 additions & 4 deletions night-reports/weather.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"outputs": [],
"source": [
"# Times Square parameters\n",
"date = '2024-01-08'"
"date = '2024-01-14'"
]
},
{
Expand Down Expand Up @@ -214,10 +214,14 @@
"seeing_ax, temp_ax, humidity_ax, pressure_ax, windspeed_ax, winddir_ax = axs\n",
"\n",
"# Plot seeing\n",
"seeing_ax.plot(dimm_fwhm_df.index, dimm_fwhm_df.fwhm, label=\"Seeing (arcsec)\")\n",
"try:\n",
" seeing_ax.plot(dimm_fwhm_df.index, dimm_fwhm_df.fwhm, label=\"Seeing (arcsec)\")\n",
" draw_summary_table(seeing_ax, dimm_fwhm_df, \"fwhm\", \"Seeing\", \"arcsec\")\n",
"except (AttributeError, KeyError):\n",
" pass\n",
"seeing_ax.set_ylabel(\"Seeing (arcsec)\")\n",
"conf_axes(seeing_ax, label_twilight=True)\n",
"draw_summary_table(seeing_ax, dimm_fwhm_df, \"fwhm\", \"Seeing\", \"arcsec\")\n",
"\n",
"\n",
"# Plot air temperature\n",
"temp_ax.plot(ess_temp_df.index, ess_temp_df.temperatureItem0, label=\"Air temp.\")\n",
Expand Down Expand Up @@ -281,7 +285,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.11.7"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 37abd64

Please sign in to comment.