-
Notifications
You must be signed in to change notification settings - Fork 12
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
Rewrite seeing profile radial profile calculation #236
Rewrite seeing profile radial profile calculation #236
Conversation
Cutout2D automatically handles things like the edge of an image and allows easy translation between cutout coordinates and coordinates on the original image.
Partially addresses feder-observatory#98 by adding a camera argument to profile finding Fixes feder-observatory#174 by using RadialProfile and CurveOfGrowth from photutils
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #236 +/- ##
==========================================
+ Coverage 54.44% 55.97% +1.52%
==========================================
Files 23 24 +1
Lines 2911 2973 +62
==========================================
+ Hits 1585 1664 +79
+ Misses 1326 1309 -17 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only 'showstopper' in my opinion is your assumption of an EXPOSURE keyword in the FITs file header. This, sadly, is not a safe assumption. See my comments.
with self.out: | ||
# sub_med += med | ||
with self.seeing_profile_plot: | ||
r_exact, individual_counts = rad_prof.pixel_values_in_profile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason you moved these variables (r_exact
and scaled_exact_counts
) out of the rad_prof instance?
stellarphot/photometry/profiles.py
Outdated
|
||
class CenterAndProfile: | ||
""" | ||
Class to dentermine center of and hold radial profile information for a star. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unless you are planning to really make code that bites, you want to 'determine center' not 'dentermine center' :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only 'showstopper' in my opinion is your assumption of an EXPOSURE keyword in the FITs file header. This, sadly, is not a safe assumption. See my comments.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly needs better documentation, but looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, looks good and ready for merging.
This rewrites the radial profile calculation from seeing_profile_functions into a class that makes use of relatively new functionality in photutils for finding radial profiles.
The radial profiling class was added to the
photometry
sub-package but could go somewhere else I suppose.One subsequent change to the
SeeingProfileWidget
will be to move the plotting functionality into theplotting
subpackage.