|
24 | 24 | "Data Release: [Data Preview 1](https://dp1.lsst.io)\\\n", |
25 | 25 | "Container Size: large\\\n", |
26 | 26 | "LSST Science Pipelines version: r29.2.0\\\n", |
27 | | - "Last verified to run: 2026-04-08\\\n", |
| 27 | + "Last verified to run: 2026-04-17\\\n", |
28 | 28 | "Repository: [github.com/lsst/tutorial-notebooks](https://github.com/lsst/tutorial-notebooks)\\\n", |
29 | 29 | "DOI: [10.11578/rubin/dc.20250909.20](https://doi.org/10.11578/rubin/dc.20250909.20)" |
30 | 30 | ] |
|
61 | 61 | "In astronomical photometric surveys like the Vera C. Rubin Observatory’s Legacy Survey of Space and Time (LSST), the robust separation of point-like sources (stars) from extended sources (galaxies) is a foundational step for most downstream science.\n", |
62 | 62 | "\n", |
63 | 63 | "In Data Preview 1 (DP1), this morphological classification is primarily driven by two complementary methodologies:\n", |
64 | | - "- Flux-based extendedness: Utilizes the ratio between Point Spread Function (PSF) and Composite model (CModel) fluxes to determine if a source’s profile is consistent with the local Point Spread Function.\n", |
| 64 | + "- Flux-based extendedness: Utilizes the ratio between Point Spread Function (`PSF`) and Composite model (`cModel`) fluxes to determine if a source’s profile is consistent with the local PSF.\n", |
65 | 65 | "- Size-based extendedness: Leverages shape-based parameters (adaptive second moments) to quantify the spatial extent of a source relative to the PSF.\n", |
66 | 66 | "\n", |
67 | 67 | "This tutorial illustrates the computation of these parameters in DP1, demonstrates their characteristics, and explores their relative performance using observations of the Fornax dSph field.\n", |
|
221 | 221 | " If True, the subplots will share the y-axis. Defaults to True.\n", |
222 | 222 | " figsize : tuple, optional\n", |
223 | 223 | " Figure size. Defaults to (4 * number of plots, 4).\n", |
| 224 | + "\n", |
| 225 | + " Returns:\n", |
| 226 | + " --------\n", |
| 227 | + " fig : matplotlib.figure.Figure\n", |
| 228 | + " The figure object containing the density comparison plots.\n", |
| 229 | + " axes : list of matplotlib.axes.Axes\n", |
| 230 | + " An array/list of the individual subplot axes.\n", |
224 | 231 | " \"\"\"\n", |
225 | 232 | " n_plots = len(x_cols)\n", |
226 | 233 | " if figsize is None:\n", |
|
378 | 385 | "### 3.1. Flux-based extendedness\n", |
379 | 386 | "\n", |
380 | 387 | "The LSST Science Pipelines distinguish stars from galaxies by comparing two different flux measurements for every detected object:\n", |
381 | | - "- PSF flux: The flux measured by fitting the PSF model to the source. This model assumes the source is unresolved.\n", |
382 | | - "- CModel flux: The flux measured by fitting a \"Composite Model\". This model allows for the source to be extended.\n", |
| 388 | + "- `PSF` flux (`<band>_free_psfFlux`): The flux measured by fitting the PSF model to the source (free, not forced). This model assumes the source is unresolved.\n", |
| 389 | + "- `cModel` flux (`<band>_free_cModelFlux`): The flux measured by fitting a \"Composite Model\" (free, not forced). This model allows for the source to be extended.\n", |
383 | 390 | "\n", |
384 | | - "For a star, the object is unresolved, meaning the PSF flux captures the same amount of light as the composite model, and the ratio is close to unity. For a galaxy, the object is extended, so the PSF fit fails to capture flux in the wings, causing the PSF flux to be significantly lower than the cModel flux. The pipeline applies a configurable threshold to this ratio to assign a binary flag. If the ratio PSF Flux/CModel Flux is greater than or equal to 0.985, the `extendedness` parameter is set to 0, indicating a star. Conversely, if the ratio is less than 0.985, the parameter is set to 1, indicating a galaxy." |
| 391 | + "For a star, the object is unresolved, meaning the `PSF` flux captures the same amount of light as the composite model, and the ratio is close to unity. For a galaxy, the object is extended, so the PSF fit fails to capture flux in the wings, causing the `PSF` flux to be significantly lower than the `cModel` flux. The pipeline applies a configurable threshold to this ratio to assign a binary flag. If the ratio `PSF` Flux/`cModel` Flux is greater than or equal to 0.985, the `extendedness` parameter is set to 0, indicating a star. Conversely, if the ratio is less than 0.985, the parameter is set to 1, indicating a galaxy." |
385 | 392 | ] |
386 | 393 | }, |
387 | 394 | { |
|
391 | 398 | "source": [ |
392 | 399 | "#### 3.1.1. Extendedness vs. flux ratio per band\n", |
393 | 400 | "\n", |
394 | | - "The `extendedness` parameter plotted against the PSF-to-cModel flux ratio for the $g,r,i$ bands. " |
| 401 | + "The `extendedness` parameter plotted against the `PSF`-to-`cModel` flux ratio for the $g,r,i$ bands. " |
395 | 402 | ] |
396 | 403 | }, |
397 | 404 | { |
|
421 | 428 | "id": "c8a87863-23aa-47ed-aa0d-c051d928e930", |
422 | 429 | "metadata": {}, |
423 | 430 | "source": [ |
424 | | - "> **Figure 1:** Distribution of the PSF-to-cModel flux ratio across the $g,r,i$ bands. The vertical red dashed line indicates the threshold at 0.985 used for morphological classification in DP1. Sources with a ratio $\\ge$0.985 are classified as point-like (`extendedness` = 0), while those below this value are classified as extended (`extendedness` = 1)." |
| 431 | + "> **Figure 1:** Distribution of the `PSF`-to-`cModel` flux ratio across the $g,r,i$ bands. The vertical red dashed line indicates the threshold at 0.985 used for morphological classification in DP1. Sources with a ratio $\\ge$0.985 are classified as point-like (`extendedness` = 0), while those below this value are classified as extended (`extendedness` = 1)." |
425 | 432 | ] |
426 | 433 | }, |
427 | 434 | { |
|
509 | 516 | "source": [ |
510 | 517 | "### 3.2. Size-based extendedness\n", |
511 | 518 | "\n", |
512 | | - "This parameter provides a continuous metric for star-galaxy separation by comparing the resolved size of a source to the local PSF. The classification relies on the \"trace\" of the adaptive moments matrix, defined as: $T=Ixx + Iyy$, where $Ixx$ and $Iyy$ are the second-order moments of the source's intensity distribution. $T$ serves as a robust, model-independent measure of the square of the radius. \n", |
| 519 | + "This parameter (`<band>_sizeExtendedness`) provides a continuous metric for star-galaxy separation by comparing the resolved size of a source to the local PSF. The classification relies on the \"trace\" of the adaptive moments matrix, defined as: $T=Ixx + Iyy$, where $Ixx$ and $Iyy$ are the second-order moments of the source's intensity distribution. $T$ serves as a robust, model-independent measure of the square of the radius. \n", |
513 | 520 | "\n", |
514 | | - "The $\\chi^{2}$ statistic quantifies the extendedness by calculating the squared difference between the source's measured size and the expected PSF's size at the source's location, normalized by a power of the PSF size. This ensures the deviation is scaled appropriately relative to the local image quality. The output is mapped onto a scale from 0 to 1, representing the probability of being a galaxy: {band}_`sizeExtendedness` $= 1 - e^{-0.5\\chi^{2}}$." |
| 521 | + "The $\\chi^{2}$ statistic quantifies the extendedness by calculating the squared difference between the source's measured size and the expected PSF's size at the source's location, normalized by a power of the PSF size. This ensures the deviation is scaled appropriately relative to the local image quality. The output is mapped onto a scale from 0 to 1, representing the probability of being a galaxy: <band>_`sizeExtendedness` $= 1 - e^{-0.5\\chi^{2}}$." |
515 | 522 | ] |
516 | 523 | }, |
517 | 524 | { |
|
670 | 677 | "source": [ |
671 | 678 | "## 5. Star-galaxy separation performance\n", |
672 | 679 | "\n", |
673 | | - "This section explores the star-galaxy separation performance of the two morphological classifiers within the color-magnitude diagram (CMD) space\n", |
| 680 | + "This section explores the star-galaxy separation performance of the two morphological classifiers within the color-magnitude diagram (CMD) space.\n", |
674 | 681 | "\n", |
675 | 682 | "### 5.1. Using flux-based metric \n", |
676 | 683 | "\n", |
|
799 | 806 | "source": [ |
800 | 807 | "## 6. Usage notes and recommendations\n", |
801 | 808 | "\n", |
802 | | - "- The flux-based `extendedness` parameter is optimized for use with the `Object` table, not with the `Source` table. This classification requires both a PSF flux and a galaxy-model flux (CModel) as inputs. Because the DP1 pipelines did not perform full galaxy modeling on single-visit images, the `extendedness` values in the `Source` table utilize a lower-fidelity proxy for galaxy flux. Consequently, morphological classification in the `Source` table should be treated with caution and is generally not recommended for sensitive star-galaxy separation.\n", |
| 809 | + "- The flux-based `extendedness` parameter is optimized for use with the `Object` table, not with the `Source` table. This classification requires both a `PSF` flux and a galaxy-model flux (`cModel`) as inputs. Because the DP1 pipelines did not perform full galaxy modeling on single-visit images, the `extendedness` values in the `Source` table utilize a lower-fidelity proxy for galaxy flux. Consequently, morphological classification in the `Source` table should be treated with caution and is generally not recommended for sensitive star-galaxy separation.\n", |
803 | 810 | "\n", |
804 | 811 | "- While both `extendedness` and `sizeExtendedness` are available for every individual filter in the `Object` table, most scientific applications should prioritize reference-band values (i.e., `refExtendedness` and `refSizeExtendedness`). These are derived from a designated filter chosen for its superior detection significance and measurement quality. Utilizing the reference-band classification ensures a single, robust morphological definition for each object, minimizing the risk of inconsistent classification across different wavebands.\n", |
805 | 812 | "\n", |
806 | | - "- For sources where the flags for extendedness parameter are set for any failure, the corresponding extendedness values were not populated." |
| 813 | + "- For sources where the flags for extendedness parameter are set for any failure, the corresponding extendedness values were not populated, resulting in blank entries." |
807 | 814 | ] |
808 | 815 | }, |
809 | 816 | { |
|
0 commit comments