{ "cells": [ { "cell_type": "markdown", "id": "cell-0", "metadata": {}, "source": [ "# LSST ugrizy magnitude distributions\n", "\n", "Compare the 1D magnitude histograms in the six LSST bands between the Euclid Flagship\n", "catalog (`flagship_3.fits`) and the DESC DC1 `OneDegSq.fits` catalog.\n", "\n", "- Flagship columns: `lsst_u`, `lsst_g`, `lsst_r`, `lsst_i`, `lsst_z`, `lsst_y` (AB magnitudes, after `prepare_flagship.py`).\n", "- OneDegSq columns: `u_ab`, `g_ab`, `r_ab`, `i_ab`, `z_ab`, `y_ab`." ] }, { "cell_type": "code", "execution_count": null, "id": "cell-1", "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import matplotlib.pyplot as plt\n", "from astropy.table import Table\n", "\n", "flagship = Table.read(\"../flagship_3.fits\")\n", "onedeg = Table.read(\"../OneDegSq.fits\")\n", "\n", "print(f\"flagship_3: {len(flagship)} rows\")\n", "print(f\"OneDegSq : {len(onedeg)} rows\")" ] }, { "cell_type": "code", "execution_count": null, "id": "cell-2", "metadata": {}, "outputs": [], "source": [ "bands = [\"u\", \"g\", \"r\", \"i\", \"z\", \"y\"]\n", "bins = np.linspace(16, 30, 71)\n", "\n", "fig, axes = plt.subplots(2, 3, figsize=(12, 7), sharex=True, sharey=True)\n", "for ax, b in zip(axes.flat, bands):\n", " f = np.asarray(flagship[f\"lsst_{b}\"])\n", " o = np.asarray(onedeg[f\"{b}_ab\"])\n", " f = f[np.isfinite(f)]\n", " o = o[np.isfinite(o)]\n", " ax.hist(f, bins=bins, histtype=\"step\", density=True, label=\"Flagship\", color=\"C0\")\n", " ax.hist(o, bins=bins, histtype=\"step\", density=True, label=\"OneDegSq\", color=\"C1\")\n", " ax.set_title(f\"LSST {b}\")\n", " ax.set_xlabel(\"AB magnitude\")\n", " ax.set_ylabel(\"PDF\")\n", " ax.legend(fontsize=8)\n", "fig.tight_layout()\n", "plt.show()" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "name": "python" } }, "nbformat": 4, "nbformat_minor": 5 }