# Add ability to highlight data subsets in analysis plots

XMLWordPrintable

#### Details

• Type: Story
• Status: Done
• Resolution: Done
• Fix Version/s: None
• Component/s:
• Labels:
None
• Story Points:
2
• Sprint:
DRP S17-3, DRP S17-4, DRP S17-5
• Team:
Data Release Production

#### Description

Highlighting objects based on a "third" parameter, e.g. a flag setting, (other than spatial, for which we are already producing diagnostic figures) can be very useful in diagnosing pathologies (see, e.g. DM-9252). This ticket is to add this ability to the analysis plotting scripts.

#### Activity

Hide
Lauren MacArthur added a comment -

The functionality has been added such that a list of (schemaName, threshValue, color) tuples can be added to a given plot type such that a point will be highlighted with color if the schemaName value is > threshValue. As of now it must be hardcoded for a given plot type as making it active for all plots is overkill. This can be modified in the future if there is a desire to design a more general and configurable implementation. The use cases encountered to date do not warrant the extra effort at the present time.

The following plot show an example, where the following list was used (note that base_Footprint_nPix is added to the catalog by the analysis scripts, i.e. is not a default entry in the catalogs as produced by the stack):

 highlightList=[("parent", 0, "yellow"), ("base_Footprint_nPix", 1000, "magenta")] 

Show
Lauren MacArthur added a comment - The functionality has been added such that a list of ( schemaName , threshValue , color ) tuples can be added to a given plot type such that a point will be highlighted with color if the schemaName value is > threshValue . As of now it must be hardcoded for a given plot type as making it active for all plots is overkill. This can be modified in the future if there is a desire to design a more general and configurable implementation. The use cases encountered to date do not warrant the extra effort at the present time. The following plot show an example, where the following list was used (note that base_Footprint_nPix is added to the catalog by the analysis scripts, i.e. is not a default entry in the catalogs as produced by the stack): highlightList=[("parent", 0, "yellow"), ("base_Footprint_nPix", 1000, "magenta")]
Hide
Lauren MacArthur added a comment - - edited

John Swinbank, is this satisfactory to close this one out?

Show
Lauren MacArthur added a comment - - edited John Swinbank , is this satisfactory to close this one out?
Hide
John Swinbank added a comment -

Great!

I'm assuming that this code is not currently easily publicly available, but will become so as part of the work associated with DM-10045?

Show
John Swinbank added a comment - Great! I'm assuming that this code is not currently easily publicly available, but will become so as part of the work associated with DM-10045 ?
Hide
Lauren MacArthur added a comment -

The code is on a branch in the pipe_analisys repo on lsst-dm GitHub. It runs nicely on HSC data (in conjunction with a branch of the same name on obs_subaru), but I don't particularly recommend the unwary try to run it as is (some minimal guidance could be enough...) Indeed, the more public facing and more generally/generically useable version will be the work of DM-10045.

Show
Lauren MacArthur added a comment - The code is on a branch in the pipe_analisys repo on lsst-dm GitHub. It runs nicely on HSC data (in conjunction with a branch of the same name on obs_subaru ), but I don't particularly recommend the unwary try to run it as is (some minimal guidance could be enough...) Indeed, the more public facing and more generally/generically useable version will be the work of DM-10045 .

#### People

Assignee:
Lauren MacArthur
Reporter:
Lauren MacArthur
Reviewers:
John Swinbank
Watchers:
John Swinbank, Lauren MacArthur