Skip to content

DM-54397: Add task for computing a rough shapelet expansion of isolated stars.#467

Open
TallJimbo wants to merge 3 commits intomainfrom
tickets/DM-54397
Open

DM-54397: Add task for computing a rough shapelet expansion of isolated stars.#467
TallJimbo wants to merge 3 commits intomainfrom
tickets/DM-54397

Conversation

@TallJimbo
Copy link
Member

No description provided.

Copy link
Contributor

@laurenam laurenam left a comment

Choose a reason for hiding this comment

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

Just some flyby comments while perusing…

* `lsst.afw.geom.SpanSet`.
*
* This class provides low-level pixel-processing code for
* `ComputeRoughtPsfShapeletsTask`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Drop the “t” in Rought

/// The pixels actually used to compute the moments.
std::shared_ptr<afw::geom::SpanSet> spans;

/// Flag if there were too many bad pixels to compute the moments.
Copy link
Contributor

Choose a reason for hiding this comment

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

“Flag if” —> “Flag set if” to match those below?

/// Flag set if there was a bad pixel too close to the center.
bool bad_pixel_in_center = false;

/// Flag set if the second moments do not resolve to an ellipse.
Copy link
Contributor

Choose a reason for hiding this comment

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

Tense is changed from above, i.e. “do not” vs. “did not” & “was”.

/// Flag set if the second moments do not resolve to an ellipse.
bool singular_second_moments = false;

/// Test whether any failure falg is set.
Copy link
Contributor

Choose a reason for hiding this comment

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

“falg” —> “flag”

*
* @param[in] spans Pixel region to use.
* @param[in] masked_image Image to measure.
* @param[in] bad_bitmask Mask of bad pixels to remove from `spans` to
Copy link
Contributor

Choose a reason for hiding this comment

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

Extra “to”?

* before giving up.
* @param[in] bad_pixel_exlusion_radius Radius around the estimated
* center where bad pixels will
* cause the algorithm to give up.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don’t quite follow this description…

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a radius that tries to act analogously to a cut on base_PixelFlags_[bad_bitmask]Center, but about the center the algorithm is computing itself. I've reworded slightly.

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.

2 participants