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

Check platescale over mission using measured occulter diameter #363

Open
9 tasks done
jburkepile opened this issue Dec 11, 2023 · 11 comments
Open
9 tasks done

Check platescale over mission using measured occulter diameter #363

jburkepile opened this issue Dec 11, 2023 · 11 comments
Assignees
Labels
enhancement new feature needs testing needs more testing/verification
Milestone

Comments

@jburkepile
Copy link
Collaborator

jburkepile commented Dec 11, 2023

Use the occulter radius size from the routine kcor_find_image.pro to compute an image platescale. Record the value of the image platescale in the FITS header keyword IMAGESCL. Image platescales will be compared with the original determination of the instrument platescale derived from the K-Cor effective focal length calculated by Dennis Gallagher, and the lab measurements of the K-Cor occulter diameters.

Tasks

  • IMAGESCL keyword
  • add IMAGESCL keyword to database
  • make mission plot of IMAGESCL in end-of-day
  • add RCAM_SCL and TCAM_SCL FITS keywords ("distortion corrected image scale for camera {0,1}")
  • add rcam_image_scale and tcam_image_scale kcor_eng table fields
  • plot each camera separately for mission plot plus a difference plot
  • make daily plot of IMAGESCL in end-of-day; use different color or symbol for each camera
  • annotate RCAM/TCAM in plots
  • create CSV file for daily values, columns: filename, IMAGESCL, RCAM_SCL, TCAM_SCL, and RCAM_SCL - TCAM_SCL
@jburkepile jburkepile added the bug fix of a problem in the existing code label Dec 11, 2023
@jburkepile jburkepile added this to the 2.2 reprocessing milestone Dec 11, 2023
@mgalloy mgalloy changed the title check platescale over mission using measured occulter diameter Check platescale over mission using measured occulter diameter Dec 13, 2023
@jburkepile
Copy link
Collaborator Author

jburkepile commented Dec 28, 2023

The effective focal length of K-Cor Objective lens, using data from JenOptiks and Corning, is 2018.5 +/- 0.2 mm.

K-Cor occulter diameters in mm (+/- 0.00254 nm - estimate from Dennis email):

  • Old Winter Occulter (OC-1018.9") = 19.941 mm
  • New Winter Occulter starting Jan 12, 2021 (OC-1017.0") = 19.905 mm NOTE: (19.905 is by DFS-avg of 6 measurements) company that fabricated it measured 19.944mm
  • Spring/fall Occulter (OC-1006.9") = 19.705 mm (ranged from 19.702 to 19.708)
  • Summer Occulter (OC-991.6") = 19.480 mm

Using the focal length and occulter sizes (ala UCoMP):

magnification = distortion-corrected occulter_radius_in_pixels / (occulter_diameter_in_mm / 2.0)
platescale = 206264.8 / magnification / focal_length

@mgalloy
Copy link
Member

mgalloy commented Dec 28, 2023

I have notes about a OC-1018.9" occulter. Was this never used?

@jburkepile
Copy link
Collaborator Author

Mike: Thank you for pointing that out. We swapped out the 'old' winter occulter of 1018.9" on Jan 12, 2021 for the new tapered winter occulter. I had forgotten about that. I edited my info above to include both the old and new occulters. Thanks!

@mgalloy
Copy link
Member

mgalloy commented Dec 28, 2023

I am running code that calculates IMAGESCL on 20221007. I am getting results about 0.034 arcs/pixel less than the current plate scale (5.643 arcsec/pixel).

level2$ for f in *_kcor_l2.fts; do echo $f; fitscat -r $f | grep IMAGESCL; done
20221007_171731_kcor_l2.fts
IMAGESCL=               5.6105 / [arcsec/pixel] image scale for this file
20221007_171746_kcor_l2.fts
IMAGESCL=               5.6100 / [arcsec/pixel] image scale for this file
20221007_171801_kcor_l2.fts
IMAGESCL=               5.6098 / [arcsec/pixel] image scale for this file
20221007_171816_kcor_l2.fts

@mgalloy mgalloy added enhancement new feature and removed bug fix of a problem in the existing code labels Dec 28, 2023
@jburkepile
Copy link
Collaborator Author

Not surprising. I have been spot-checking days and getting platescles as much as 0.06 arcsec/pix different - always less than the 5.643 arcsec/pix I got back in 2013-early 2014. Using the larger difference of 0.06 arcsec/pixel as a worse case, we are off by 0.03 solar radii at the outer edge of the field-of-view (the error is much smaller closer to the occulter). That is not awful. The smallest error bar I use for measuring CME positions in the best images is 0.03 solar radii. Many measurements are twice that.

Nevertheless, the platescale is off and needs to be recomputed. I will set up a separate ticket for that. Yesterday, I asked Ben to retrieve 2 of the K-Cor occulters next time he is at MLSO. I want him to mail those back and have the IG measure them again.

It is also possible that a change in distortion correction is playing a role.

So glad you are going to save this info in the headers.

mgalloy added a commit that referenced this issue Dec 29, 2023
@mgalloy
Copy link
Member

mgalloy commented Dec 30, 2023

Here is the mission plot (only 1 day has been processed with IMAGESCL values).

20221007 kcor mission image_scale

@jburkepile
Copy link
Collaborator Author

Thanks very much for doing this. Just to clarify the above plot: the red line is the platescale (5.643). Is the black vertical line near the end of the mission the image scale? Are you plotting the distortion corrected occulter radius for each camera separately?

@mgalloy
Copy link
Member

mgalloy commented Dec 30, 2023

The black vertical line is comprised of the image scale values for a single day. These image scale values are computed from the average of the two distortion corrected radii. I could store separate IMAGESCL values in the FITS header and database, and then produce two image scale plots.

@mgalloy mgalloy added questions coding is stoppped to determine correct path and removed questions coding is stoppped to determine correct path labels Dec 30, 2023
@mgalloy mgalloy added the needs testing needs more testing/verification label Aug 28, 2024
mgalloy added a commit that referenced this issue Aug 28, 2024
mgalloy added a commit that referenced this issue Aug 28, 2024
@mgalloy
Copy link
Member

mgalloy commented Aug 28, 2024

Here is the daily plot for 2013-11-13:

20131113 kcor daily image_scale

Mission plot is not too valuable until we reprocess:

20131113 kcor mission image_scale

@mgalloy mgalloy removed the needs testing needs more testing/verification label Sep 3, 2024
mgalloy added a commit that referenced this issue Sep 3, 2024
@mgalloy mgalloy added the needs testing needs more testing/verification label Sep 3, 2024
@mgalloy
Copy link
Member

mgalloy commented Sep 3, 2024

The CSV file looks like:

p$ cat 20131113.kcor.daily.image_scale.csv
2013-11-13 18:52:01, 5.644, 5.649, 5.639, 0.010
2013-11-13 18:52:16, 5.644, 5.649, 5.639, 0.010
2013-11-13 18:52:31, 5.643, 5.649, 5.638, 0.011
2013-11-13 18:52:46, 5.643, 5.648, 5.637, 0.011
2013-11-13 18:53:01, 5.642, 5.647, 5.637, 0.010
2013-11-13 19:01:19, 5.637, 5.642, 5.632, 0.010
2013-11-13 19:01:34, 5.637, 5.642, 5.632, 0.010
2013-11-13 19:37:16, 5.646, 5.652, 5.640, 0.012
2013-11-13 19:37:31, 5.644, 5.649, 5.638, 0.011
2013-11-13 19:37:46, 5.643, 5.649, 5.638, 0.011
2013-11-13 19:38:01, 5.643, 5.649, 5.637, 0.012
2013-11-13 19:38:17, 5.643, 5.649, 5.637, 0.012
2013-11-13 19:38:32, 5.642, 5.648, 5.636, 0.012
...

@mgalloy
Copy link
Member

mgalloy commented Sep 3, 2024

Updated daily image scale plots:

20131113 kcor daily image_scale

Updated mission image scale plots:

20131113 kcor mission image_scale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new feature needs testing needs more testing/verification
Projects
None yet
Development

No branches or pull requests

2 participants