skygrid.h

Go to the documentation of this file.
00001 /*
00002 *  Copyright (C) 2007 David Chin
00003 *
00004 *  This program is free software; you can redistribute it and/or modify
00005 *  it under the terms of the GNU General Public License as published by
00006 *  the Free Software Foundation; either version 2 of the License, or
00007 *  (at your option) any later version.
00008 *
00009 *  This program is distributed in the hope that it will be useful,
00010 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 *  GNU General Public License for more details.
00013 *
00014 *  You should have received a copy of the GNU General Public License
00015 *  along with with program; see the file COPYING. If not, write to the
00016 *  Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00017 *  MA  02111-1307  USA
00018 */
00019 
00020 /*
00021  * Author: David Chin <dwchin@umich.edu> +1-734-709-9119
00022  * $Id: skygrid.h,v 1.6 2007/06/08 15:29:43 bema Exp $
00023  */
00024 
00025 #ifndef _DETRESPONSE_SKYGRID_H
00026 #define _DETRESPONSE_SKYGRID_H
00027 #include <stdio.h>
00028 #include <stdlib.h>
00029 #include <string.h>
00030 #include <math.h>
00031 #include <errno.h>
00032 #include <lal/LALConfig.h>
00033 #include <lal/LALStdio.h>
00034 #include <lal/LALStdlib.h>
00035 #include <lal/LALConstants.h>
00036 #include <lal/LALDatatypes.h>
00037 #include <lal/Units.h>
00038 
00039 #include <lal/AVFactories.h>
00040 #include <lal/SeqFactories.h>
00041 #include <lal/DetectorSite.h>
00042 #include <lal/TimeDelay.h>
00043 #include <lal/DetResponse.h>
00044 #include <lal/Velocity.h>
00045 #include <lal/Units.h>
00046 #include <lal/VectorOps.h>
00047 #include <lal/SkyCoordinates.h>
00048 
00049 #include <lal/PrintFTSeries.h>
00050 #include <lal/StreamOutput.h>
00051 
00052 #include "util.h"
00053 #include "cmdline.h"
00054 
00055 #define DR_ANGULAR_OFFSET 0.005
00056 #define DR_TWOPI ((1. - DR_ANGULAR_OFFSET) * LAL_TWOPI)
00057 
00058 extern struct gengetopt_args_info args_info;
00059 
00060 typedef REAL8Array * skygrid_t;
00061 
00062 void init_ephemeris(LALStatus *status, EphemerisData *ephemeris_data);
00063 void cleanup_ephemeris(LALStatus *status, EphemerisData *ephemeris_data);
00064 void init_skygrid(LALStatus *status);
00065 skygrid_t * alloc_skygrid(LALStatus *status, skygrid_t *g);
00066 void free_skygrid(LALStatus *status, skygrid_t *skygrid);
00067 void cleanup_skygrid(LALStatus *status);
00068 REAL8 skygrid_avg(LALStatus *status, const skygrid_t response);
00069 void  skygrid_square(LALStatus *status, skygrid_t square, const skygrid_t input);
00070 REAL8 skygrid_rms(LALStatus *status, const skygrid_t input);
00071 void  skygrid_sqrt(LALStatus *status, skygrid_t result, const skygrid_t input);
00072 INT4  skygrid_copy(LALStatus *status, skygrid_t dest, const skygrid_t src);
00073 void  skygrid_print(LALStatus *status, const LIGOTimeGPS * gps, const skygrid_t input,
00074                     const char * filename);
00075 void  skygrid_fabs(LALStatus *status, skygrid_t absgrid, const skygrid_t input);
00076 void  skygrid_add(LALStatus *status, skygrid_t sum, const skygrid_t a, const skygrid_t b);
00077 void  skygrid_subtract(LALStatus *status, skygrid_t sum, const skygrid_t a, const skygrid_t b);
00078 void  skygrid_scalar_mult(LALStatus *status, skygrid_t result, const skygrid_t a, REAL8 b);
00079 void  skygrid_zero(LALStatus *status, skygrid_t a);
00080 
00081 void multiply_vectors(LALStatus *status, REAL4Vector * out,
00082                       const REAL4Vector * a, const REAL4Vector * b);
00083 
00084 #endif

Generated on Sat Sep 6 03:07:32 2008 for LAL by  doxygen 1.5.2