Skip to content

Comments

Plot injs mod#5243

Draft
sebastiangomezlopez wants to merge 2 commits intogwastro:masterfrom
sebastiangomezlopez:plot_injs_mod
Draft

Plot injs mod#5243
sebastiangomezlopez wants to merge 2 commits intogwastro:masterfrom
sebastiangomezlopez:plot_injs_mod

Conversation

@sebastiangomezlopez
Copy link
Contributor

Standard information about the request

This is a: new feature

This change affects: PyGRB

This change changes: result presentation / plotting.

This change: has appropriate unit tests, follows style guidelines (See e.g. PEP8), has been proposed using the contribution guidelines

This change will: break current functionality, require additional dependencies, require a new release, other (please describe)

Motivation

This PR is still a draft.

It adds further capabilities for the plot_injs_results script related to single ifo effective distances. Additionally adds the "mollweide" projection to display the injections in the sky plane.

Adding single ifo effective distance and cuadrature
Adding "mollweide" projection for injections in the sky
@sebastiangomezlopez sebastiangomezlopez self-assigned this Dec 15, 2025
@sebastiangomezlopez sebastiangomezlopez added the PyGRB PyGRB development label Dec 15, 2025
@github-project-automation github-project-automation bot moved this to In Progress in PyGRB Development Dec 15, 2025
@titodalcanton titodalcanton marked this pull request as draft January 8, 2026 17:25
Comment on lines +219 to +220
'eff_site_dist', 'eff_dist', 'eff_dist_H1',
'eff_dist_L1', 'eff_dist_V1', 'eff_dist_sqr_quadsum',
Copy link
Contributor

Choose a reason for hiding this comment

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

Note that we already have "eff_site_dist" to plot the effective distance for a specific site. What is the motivation for adding the explicit per-site ones?

Comment on lines +462 to +464
ax = fig.add_subplot(111, projection="mollweide")
missed_inj['ra'] = ra_to_ra_mollweide(missed_inj['ra'])
found_inj['ra'] = ra_to_ra_mollweide(found_inj['ra'])
Copy link
Contributor

Choose a reason for hiding this comment

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

There are some cases where the all-sky projection plot is detrimental, typically when the input skymap is very precise, as all points are bunched together into a single blob. Perhaps we could have different variable names to control the projection, e.g. "ra"/"dec" and "ra_mollweide"/"dec_mollweide". Another way (probably my preferred one actually) would be to add a command line argument like --sky-projection mollweide that is only used when "ra" and "dec" are being plotted.

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

Labels

PyGRB PyGRB development

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants