Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-11243: Refine PSF-based image selection #136

Merged
merged 5 commits into from Jul 11, 2017
Merged

Conversation

PaulPrice
Copy link
Contributor

No description provided.

@@ -309,11 +311,11 @@ def runDataRef(self, dataRef, coordList, makeDataRefList=True, selectDataList=[]
scatterSize = sigmaMad(starSize - psfSize)

valid = True
if medianE1 > self.config.maxEllipResidual:
if self.config.maxEllipResidual and medianE1 > self.config.maxEllipResidual:
self.log.info("Removing visit %s because median e residual too large: %f" %
Copy link
Contributor

Choose a reason for hiding this comment

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

Were you able to confirm that medianE1 is the correct comparison variable here? All the plots I've seen from Takashi Hamana have medianE in the label (but that's not a guarantee of what is actually plotted), but I also note that @rearmstr returns medianE in his sample script here:
http://jeeves.astro.princeton.edu/pipermail/hsc_software/all/5853.html

I also wonder if it's worth adding the config value used in the log.info messages (i.e. print explicitly what "too large" is)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm fairly convinced @rearmstr meant medianE instead of medianE1, and so I've added a commit fixing that up (see the commit message for my reasoning).
I've also added a commit to include the limit when printing the value.

@laurenam
Copy link
Contributor

You may also want to update the criteria (now at line 278). It's not very specific, so not explicitly wrong as is (so I won't insist!), but clarification wouldn't hurt.

We may decide not to use a particular threshold, so they should be
optional.
Takashi Hamana recommends a selection involving:
    max_scatterSize/medianSize^2 = 0.009
Takashi Hamana recommends:
    max_medianE = 0.007
    max_scatterSize/medianSize^2 = 0.009

We update the maxEllipResidual to correspond to Hamana-san's
recommendation and remove the maxSizeScatter limit (maxScaledSizeScatter
is already set appropriately).
The selection was on medianE1 instead of medianE, which appears to have
been a typo (log message refers to medianE, and there's no reason to have
calculated medianE2 unless we meant to use medianE).
It's more helpful to users to log the actual value along with the limit.
@PaulPrice PaulPrice merged commit 39ce203 into master Jul 11, 2017
@ktlim ktlim deleted the tickets/DM-11243 branch August 25, 2018 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants