fors_std_star.h

00001 /* $Id: fors_std_star.h,v 1.7 2007/12/12 16:11:58 jmlarsen 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: jmlarsen $
00023  * $Date: 2007/12/12 16:11:58 $
00024  * $Revision: 1.7 $
00025  * $Name:  $
00026  */
00027 
00028 #ifndef FORS_STD_STAR_H
00029 #define FORS_STD_STAR_H
00030 
00031 #include <fors_point.h>
00032 
00033 #include <cpl.h>
00034 
00035 #include <stdbool.h>
00036 
00037 CPL_BEGIN_DECLS
00038 
00039 typedef struct _fors_std_star 
00040 {
00041     fors_point *pixel;
00042     double ra, dec;
00043     double magnitude;   /* Color corrected according to filter used */
00044     double dmagnitude;  /* 1 sigma error */
00045     double cat_magnitude;  /* From catalog */
00046     double dcat_magnitude; /* From catalog */
00047     double color;
00048     const char *name;
00049 
00050 } fors_std_star;
00051 
00052 #undef LIST_ELEM
00053 #define LIST_ELEM fors_std_star
00054 #include <list.h>
00055 
00056 fors_std_star *
00057 fors_std_star_new(double ra, double dec, double m, double dm,
00058           double cat_m, double dcat_m,
00059           double col,
00060           const char *name);
00061 
00062 void
00063 fors_std_star_delete(fors_std_star **s);
00064 void
00065 fors_std_star_delete_const(const fors_std_star **s);
00066 
00067 bool
00068 fors_std_star_equal(const fors_std_star *s,
00069             const fors_std_star *t);
00070 
00071 double
00072 fors_std_star_dist_arcsec(const fors_std_star *s,
00073               const fors_std_star *t);
00074 
00075 fors_std_star *
00076 fors_std_star_duplicate(const fors_std_star *s);
00077 
00078 void fors_std_star_print(cpl_msg_severity level, const fors_std_star *star);
00079 
00080 void
00081 fors_std_star_print_list(cpl_msg_severity level, const fors_std_star_list *sl);
00082 
00083 bool
00084 fors_std_star_brighter_than(const fors_std_star *s,
00085                 const fors_std_star *t,
00086                 void *data);
00087 
00088 CPL_END_DECLS
00089 
00090 #endif

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