Prerequisites
- A repository with the sunspot drawings already scanned. The sunspot drawings name should contain the date and the time of the observation.
- The appropriate Python environnement
- python 3.16.13
- pymsysql
- PyQt5
- PIL
- numpy
- shapely
The database
DigiSun stores the parameters extracted from the drawing in an external MySQL database. Here are the steps to configure it properly.
- install MySQL
- create a database 'sunspot_drawing'
- construct the appropriate structure of the table as in this file
- some tables need to be filled before running digisun
- the table drawing_type
- name is the name of the type of drawing
- prefix is the prefix of the drawing name
- p_oriented is the orientation of the solar disk. if the the north point does not coincide with the celestial north point (due to the P-angle), then the value is 0
- height : height of the drawing in mm
- width: width of the drawing in mm
- name_point1 : name of the first point used for the calibration (value possible :'Center', 'South', 'West')
- name_point1 : name of the second point used for the calibration (value possible :'Center', 'South', 'West')
- pt1_fraction_width : first guess of the first x-position used for the calibration
- pt1_fraction_height : first guess of the first y-position used for the calibration
- pt2_fraction_width : first guess of the second x-position used for the calibration
- pt2_fraction_height : first guess of the second y-position used for the calibration
- the table observer
- the type of drawing define above
- the abbreviation of the observer name
- leroyname code : something only for us, should be remove in updated version
- lastname
- firstname
- the table quality
- the list of value describing the quality (in our case it goes from 1 to 5, with 5 being the best quality)
The software installation
- The source files can be downloaded on github
- In the directory 'digisun', you need to create a new directory called data
- In the directory 'data', put the file digisun.ini and fill it
- Launch the software with the command 'python digisun.py'