The goal of this program is to facilitate the measurement of the acquisition delay of a camera for astronomy usage.
For some astronomy usage (especially for occultations by asteroids), the requirement of time accuracy is very high (< 10 ms). If we use common CCD or CMOS camera, the operating system clocks must be set very precisely. The capturing software must accurately record the date and time. But it is not enough. We need to correct the date and time recorded with the delay between the moment when the light is captured by the sensor and the moment the capturing software records the data.
To know this difference, the principle is to film with the camera a LED that lights up each UTC second. The time recorded when the light is switched on is slightly offset from the start of the UTC second. This is what we want to measure. Amateur astronomers usually use Tangra software to analyse the video or the images. This program takes as input the Tangra light curve in CSV and give the acquisition delay.
- Java >= 8
- A CSV file representing a light curve (usually produced by Tangra) like this :
FrameNo,Time (UT),Signal (1), Background (1)
0,[02:47:20.867],33.000,22.000
1,[02:47:20.907],63.000,0.0000
Example files are given in the src/main/config folder.
By default, a file with the name lightCurve.csv is searched in the same directory as the jar file.
By default, we assume that the exposure of the frames is 40 ms.
You can override these default values.
To launch the program, you can use these command lines:
java -jar acquisition-delay.jar
or
java -jar acquisition-delay.jar exposureDurationInMs
or
java -jar acquisition-delay.jar exposureDurationInMs filename
Examples:
java -jar acquisition-delay.jar
or
java -jar acquisition-delay.jar 30
or
java -jar acquisition-delay.jar 30 myLightCurve.csv
The result is shown in the console, like this :
==== AREA 1 ====
List of times PPS start: [35.9, 36.7, 37.6, 37.9, 37.6, 37.5, 38.4, 37.0, 36.8, 36.5, 37.2]
Average time PPS start: 37.2 ms ± 0.4
List of times PPS end: [137.3, 137.1, 136.0, 136.8, 135.5, 135.5, 135.2, 136.1, 134.8, 136.7]
Average time PPS end: 136.1 ms ± 0.7
The program can measure several areas (like top, middle and bottom of the sensor).