File: cmpack_tcorr.h

package info (click to toggle)
c-munipack 2.1.39-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 55,888 kB
  • sloc: ansic: 200,762; cpp: 106,129; lex: 9,035; yacc: 4,916; sh: 4,074; fortran: 2,613; xml: 2,105; python: 1,182; makefile: 546; perl: 104
file content (71 lines) | stat: -rw-r--r-- 2,382 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/**
	\file
	\brief Functions for the time correction

	Set of functions defined in this module allows user to 
	apply time correction to CCD frames.

	\author David Motl <dmotl@volny.cz>
	
	\par Copying
	This program is free software; you can redistribute it and/or
	modify it under the terms of the GNU General Public License
	as published by the Free Software Foundation, version 2.
	
	$Id: cmpack_tcorr.h,v 1.2 2015/07/12 08:11:55 dmotl Exp $
*/

#ifndef _CMPACK_TCORR_H_INCLUDED
#define _CMPACK_TCORR_H_INCLUDED

#include "cmpack_common.h"
#include "cmpack_console.h"
#include "cmpack_ccdfile.h"
#include "cmpack_phtfile.h"

/************************   Public functions   ***********************************/

#ifdef __cplusplus
extern "C" {
#endif

/**
	\brief Execute time correction on a CCD frame
	\details The function reads header data from the CCD frame, performs
	the time correction and stores the output to the same context.
	\param[in,out] file		frame context
	\param[in] seconds		correction in seconds
	\param[in] console		console context for debug information
	\return zero on success or error code on failure
*/
	CMPACK_EXPORT(int, cmpack_tcorr, (CmpackCcdFile* file, double seconds, CmpackConsole* console));

/**
	\brief Execute time correction on a file
	\details The function reads header data from the infile context, performs
	the time correction and stores the output image to the outfile context.
	\param[in] file			input frame context
	\param[in] outfile		output frame context
	\param[in] seconds		correction in seconds
	\param[in] console		console context for debug information
	\return zero on success or error code on failure
*/
	CMPACK_EXPORT(int, cmpack_tcorr_ex, (CmpackCcdFile* file, CmpackCcdFile* outfile, double seconds,
		CmpackConsole* console));

/**
	\brief Execute time correction on a photometry file
	\details The function reads header data from the CCD frame, performs
	the time correction and stores the output to the same context.
	\param[in] file			input frame context
	\param[in] seconds		correction in seconds
	\param[in] console		console context for debug information
	\return zero on success or error code on failure
*/
	CMPACK_EXPORT(int, cmpack_tcorr_pht, (CmpackPhtFile* file, double seconds, CmpackConsole* console));

#ifdef __cplusplus
}
#endif

#endif