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

Precision of magnitude and zeropoint on screen and figure #245

Open
patkel opened this issue Jan 18, 2022 · 0 comments
Open

Precision of magnitude and zeropoint on screen and figure #245

patkel opened this issue Jan 18, 2022 · 0 comments

Comments

@patkel
Copy link

patkel commented Jan 18, 2022

Hi again, I am hoping to imexam for a class in the spring semester, so I am just trying to make sure that the students will be able to use it for basic photometry. I noticed that the precision of the magnitude measurements is not enough for a useful exercise, and I wanted to suggest adding additional precision.

In imexamine.py, I added and "f" and a small amount of additional precision in the formatting here (line 634):

        # Construct the output strings (header and parameter values)
        pheader = f"x\ty\tradius\tflux\tmag(zpt={magzero:0.2f})\t"
        pstr = f"\n{x:.2f}\t{y:0.2f}\t{radius}\t{total_flux:0.2}\t{mag:0.3f}\t"

and here (line 665):

                title = f"x= {xx:0.2f}, y={yy:0.2f}, flux={total_flux:0.1f}, \nmag={mag:0.3f}, sky={sky_per_pix:0.1f}"

There seems to be more than enough room for the additional precision, so I hope this might work.

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

No branches or pull requests

1 participant