C-Munipack 1.2 / Application programming interface / API reference
C-Munipack 1.2 / Application programming interface / API reference
CMPACK_MFIND_AUTO |
CmpackMuniFind | Munifind context. |
cmpack_mfind_init | Make new context for the Munifind tool. |
cmpack_mfind_set_console | Attach console to the context. |
cmpack_mfind_get_comparison | Get comparison star. |
cmpack_mfind_set_threshold | Set clipping threshold. |
cmpack_mfind | Make mag-dev graph. |
Set of functions defined in this module allows user to make a mag-dev graph, that is used to find variable stars in a viewfield.
Munifind context.
typedef struct _CmpackMuniFind CmpackMuniFind
This private data structure holds information needed to build the mag-dev graph.
Make new context for the Munifind tool.
CmpackMuniFind * cmpack_mfind_init (void)
The reference counter is set to one. The caller is responsible to call cmpack_unref() when it is no longer needed.
pointer to context or zero on failure
Attach console to the context.
void cmpack_mfind_set_console (CmpackMuniFind * ctx, CmpackConsole * con)
Increment console's reference counter. Only one console can be attached to a single context. If another console is attached, by calling this function dettaches it. Set console to NULL to dettach the current console.
ctx | [in] | munifind context |
con | [in] | console context |
Get comparison star.
int cmpack_mfind_get_comparison (CmpackMuniFind * ctx)
ctx | [in] | munifind context |
identifier of the comparison star or negative value on error
Set clipping threshold.
void cmpack_mfind_set_threshold (CmpackMuniFind * ctx, double threshold)
ctx | [in] | munifind context |
threshold | [in] | threshold in % |
Make mag-dev graph.
int cmpack_mfind (CmpackMuniFind * ctx, CmpackAllFile * file, CmpackTable * table, int comp_star)
The result is stored to a given table
ctx | [in] | munifind context |
file | [in] | readall file |
table | [out] | table with results |
comp_star | [in] | comparison star id or CMPACK_MFIND_AUTO |
zero on success or error code on failure.