### SHG (spectroheliography) software release version 3.1

Posted:

**Sun Aug 22, 2021 7:58 pm**We have taken account of a lot of feedback from users and contributors (JFP, JBB, Valerie, Matt C, and Ken H) and made a number of small improvements on our previous software version. We decided to call this

https://github.com/thelondonsmiths/Sole ... s/tag/v3.1

A fairly significant change is how we represent the geometric distortion. We now consider that horizontal lines should remain horizontal (previously, vertical lines remained vertical). This likely has more physical significance with regards to how the image is taken (i.e. scanning parallel to either the RA or DEC axis). The practical effect is the image is now rotated from how it was presented before. Mathematically, the transformation matrix is now forced to have a zero in the bottom left (instead of the top right).

The image as generated now (on the left) takes up a bit less real estate so looks a little nicer (and probably saves a step in later image processing). There were other suggestions how to improve the details of the geometric correction but we decided not to make a decision on these for now.

We also now save the geometry correction graphic (as long as "Show graphics" is turned on and "Save CLAHE.png only" is turned off). This can be helpful in ascertaining what problems there may be in the scanning (fps vs scan rate, instrument tilt). Also, if the edge detection is completely failing, it may be possible to diagnose the issue from this graphic (a typical failure mode is a cloud appearing during the scan).

We have also spent some time improving the edge detection as this helps with circularisation of the image and is particularly noticeable in the protuberance image. As well as doing the +10 pixel shift introduced in the previous version (which "normalises" all the spectral lines to continuum images), we now create a histogram of the intensities, make a curve fit to a cubic equation, and find the local minimum of the cubic equation (a cubic equation will have at most one local minimum). We find this method gives much more robust and precise results. In the image above of Calcium H, the circularisation is more exact with the new method (on the left) and the black disk overlay can be made closer to the edge of solar limb.

**version 3.1**and have put it into a**release repository on GitHub**:https://github.com/thelondonsmiths/Sole ... s/tag/v3.1

A fairly significant change is how we represent the geometric distortion. We now consider that horizontal lines should remain horizontal (previously, vertical lines remained vertical). This likely has more physical significance with regards to how the image is taken (i.e. scanning parallel to either the RA or DEC axis). The practical effect is the image is now rotated from how it was presented before. Mathematically, the transformation matrix is now forced to have a zero in the bottom left (instead of the top right).

The image as generated now (on the left) takes up a bit less real estate so looks a little nicer (and probably saves a step in later image processing). There were other suggestions how to improve the details of the geometric correction but we decided not to make a decision on these for now.

We also now save the geometry correction graphic (as long as "Show graphics" is turned on and "Save CLAHE.png only" is turned off). This can be helpful in ascertaining what problems there may be in the scanning (fps vs scan rate, instrument tilt). Also, if the edge detection is completely failing, it may be possible to diagnose the issue from this graphic (a typical failure mode is a cloud appearing during the scan).

We have also spent some time improving the edge detection as this helps with circularisation of the image and is particularly noticeable in the protuberance image. As well as doing the +10 pixel shift introduced in the previous version (which "normalises" all the spectral lines to continuum images), we now create a histogram of the intensities, make a curve fit to a cubic equation, and find the local minimum of the cubic equation (a cubic equation will have at most one local minimum). We find this method gives much more robust and precise results. In the image above of Calcium H, the circularisation is more exact with the new method (on the left) and the black disk overlay can be made closer to the edge of solar limb.