Giter Club home page Giter Club logo

acquisition-delay's Introduction

Introduction

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.

Requirement

  • 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.

Usage

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).

acquisition-delay's People

Contributors

astrochoupe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.