//--------------------------------------------------------------------------- #ifndef calstarsH #define calstarsH //--------------------------------------------------------------------------- /* magnitude components */ #define R_MAGNITUDE 0 #define I_MAGNITUDE 1 #define B_MAGNITUDE 2 #define CONCAM_MAGNITUDE 3 /* stars' classes */ #define ST_O5 0 #define ST_O9 1 #define ST_B0 2 #define ST_B2 3 #define ST_B5 4 #define ST_B8 5 #define ST_A0 6 #define ST_A2 7 #define ST_A5 8 #define ST_F0 9 #define ST_F2 10 #define ST_F5 11 #define ST_F8 12 #define ST_G0 13 #define ST_G2 14 #define ST_G5 15 #define ST_G8 16 #define ST_K0 17 #define ST_K2 18 #define ST_K5 19 #define ST_M0 20 #define ST_M2 21 #define ST_M5 22 int CreateStars(char *catfilename); cat_entry *starat(int x,int y,site_info *location,double tjd); int TruncCat(char *catfilename,char *newctafilename); void FindUnknownStars(double tjd,site_info *location,star_point *star_points,char *baseline_image_name); void FindUnknownStars2(star_point *star_points); double GetMagnitude(char *type,double v_magnitude,int magnitude_type); int flf_init(char *data_files_path,char *ext_file,char *error); int flf_cleanup(); int flf_set_date_location(double tjd,double latitude,double longtitude,double height,double temprature,double pressure); int flf_prepare_calc(); int flf_get_star(char *star_name,long *X,long *Y,long *star_type); void flf_write_file(star_point *star_points,char *input_image,long width, long height,double exposure_time, short write_stars_files); #endif