fors_star.h

00001 /* $Id: fors_star.h,v 1.18 2008/01/29 15:47:58 cizzo Exp $
00002  *
00003  * This file is part of the FORS Library
00004  * Copyright (C) 2002-2006 European Southern Observatory
00005  *
00006  * This program is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 2 of the License, or
00009  * (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
00019  */
00020 
00021 /*
00022  * $Author: cizzo $
00023  * $Date: 2008/01/29 15:47:58 $
00024  * $Revision: 1.18 $
00025  * $Name:  $
00026  */
00027 
00028 #ifndef FORS_STAR_H
00029 #define FORS_STAR_H
00030 
00031 #include <fors_std_star.h>
00032 
00033 #include <cpl.h>
00034 
00035 typedef struct _fors_star
00036 {
00037     fors_point *pixel;
00038     double semi_major;
00039     double semi_minor;
00040     double fwhm;
00041     double stellarity_index;    /* in [0; 1] */
00042     double orientation;         /* radians */
00043 
00044     double magnitude;           /* instrumental magnitude (integrated ADU) */
00045     double dmagnitude;          /* 1 sigma error bar */
00046 
00047     double magnitude_corr;      /* magnitude corrected for gain, atmospheric
00048                    extinction, exposure time */
00049     double dmagnitude_corr;
00050 
00051     double weight;              /* for the user of this module to define the
00052                    meaning this */
00053 
00054     const fors_std_star *id;    /* copy of identified, or NULL */
00055 
00056 } fors_star;
00057 
00058 #undef LIST_ELEM
00059 #define LIST_ELEM fors_star
00060 #include <list.h>
00061 
00062 fors_star *fors_star_new(double x, double y,
00063              double fwhm,
00064              double smajor, double sminor,
00065              double orientation,
00066              double m, double dm,
00067                          double si);
00068 
00069 void fors_star_delete(fors_star **star);
00070 void fors_star_delete_but_standard(fors_star **star);
00071 
00072 fors_star *
00073 fors_star_duplicate(const fors_star *star);
00074 
00075 bool
00076 fors_star_equal(const fors_star *s,
00077         const fors_star *t);
00078 
00079 double fors_star_distsq(const fors_star *s, const fors_star *t);
00080 double fors_star_extension(const fors_star *s, void *data);
00081 double fors_star_stellarity(const fors_star *s, void *data);
00082 double fors_star_ellipticity(const fors_star *s, void *data);
00083 
00084 bool
00085 fors_star_brighter_than(const fors_star *s1,
00086                         const fors_star *s2,
00087                         void *data);
00088 
00089 void
00090 fors_star_print(cpl_msg_severity level, const fors_star *s);
00091 
00092 void
00093 fors_star_print_list(cpl_msg_severity level, const fors_star_list *sl);
00094 
00095 double
00096 fors_star_get_x(const fors_star *s, void *data);
00097 
00098 double
00099 fors_star_get_y(const fors_star *s, void *data);
00100 
00101 double
00102 fors_star_get_zeropoint(const fors_star *s, void *data);
00103 
00104 double
00105 fors_star_get_zeropoint_err(const fors_star *s, void *data);
00106 
00107 bool
00108 fors_star_is_identified(const fors_star *s, void *data);
00109 
00110 #endif

Generated on Wed Sep 10 07:31:52 2008 for FORS Pipeline Reference Manual by  doxygen 1.4.6