00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef OC_CATALOG_H
00029 #define OC_CATALOG_H
00030
00031
00032
00033
00034
00035 #include <cpl.h>
00036
00037 CPL_BEGIN_DECLS
00038
00039 #define omega_max(_x,_y) (_x > _y ? _x : _y)
00040 #define omega_min(_x,_y) (_x < _y ? _x : _y)
00041 #define NGRIDMAX 31
00042 #define NX 2048
00043 #define NY 4100
00044
00045
00053 int omega_get_coverage(cpl_propertylist *plist, int fudge, cpl_matrix *from, double *ra1,
00054 double *ra2, double *dec1, double *dec2);
00055
00056 cpl_table *omega_extract_stds(const char *pathname, cpl_vector *coords, int n);
00057 int omega_matchstds(cpl_table *objtab, cpl_table *stdstab, float srad, cpl_table **outtab);
00058 cpl_table *omega_get_usnoa_table(const cpl_frame *catalog, cpl_vector *coords, int *nstds);
00059 cpl_table *omega_get_stds_table(const char *stdcat, cpl_vector *coords, int *nstds);
00060 cpl_table * wcscor_matchstds(cpl_table *objtab, cpl_table *stdstab, float srad);
00061
00062 cpl_table *omega_filter_table_int(cpl_table *src, const char *col, cpl_table_select_operator operator,
00063 int value, int *nsrc);
00064 cpl_table *omega_filter_table_double(cpl_table *src, const char *col, cpl_table_select_operator operator,
00065 double value, int *nsrc);
00066 cpl_table *omega_filter_table_string(cpl_table *src, const char *col, cpl_table_select_operator operator,
00067 const char *value, int *nsrc);
00068 cpl_table *omega_filter_table_float(cpl_table *src, const char *col, cpl_table_select_operator operator,
00069 float value, int *nsrc);
00070 cpl_table *omega_science_catalogue(const char *sci, const char *conf, double zeropoint_final, cpl_parameterlist *pars);
00071
00072 CPL_END_DECLS
00073
00074 #endif