Main Page | Class List | Directories | File List | Class Members | File Members

ObitOTFArrayGeom.h

Go to the documentation of this file.
00001 /* $Id: ObitOTFArrayGeom.h,v 1.4 2005/10/06 19:33:28 bcotton Exp $ */
00002 /*--------------------------------------------------------------------*/
00003 /*;  Copyright (C) 2003,2004                                          */
00004 /*;  Associated Universities, Inc. Washington DC, USA.                */
00005 /*;                                                                   */
00006 /*;  This program is free software; you can redistribute it and/or    */
00007 /*;  modify it under the terms of the GNU General Public License as   */
00008 /*;  published by the Free Software Foundation; either version 2 of   */
00009 /*;  the License, or (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        */
00017 /*;  License along with this program; if not, write to the Free       */
00018 /*;  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge,     */
00019 /*;  MA 02139, USA.                                                   */
00020 /*;                                                                   */
00021 /*;  Correspondence this software should be addressed as follows:     */
00022 /*;         Internet email: bcotton@nrao.edu.                         */
00023 /*;         Postal address: William Cotton                            */
00024 /*;                         National Radio Astronomy Observatory      */
00025 /*;                         520 Edgemont Road                         */
00026 /*;                         Charlottesville, VA 22903-2475 USA        */
00027 /*--------------------------------------------------------------------*/
00028 #ifndef OBITOTFARRAYGEOM_H 
00029 #define OBITOTFARRAYGEOM_H 
00030 
00031 #include <string.h>
00032 #include <stdio.h>
00033 #include <stdlib.h>
00034 #include <math.h>
00035 #include <glib.h>
00036 #include "Obit.h"
00037 #include "ObitErr.h"
00038 #include "ObitThread.h"
00039 #include "ObitInfoList.h"
00040 #include "ObitOTFSkyModel.h"
00041 #include "ObitOTFDesc.h"
00042 #include "ObitTableOTFArrayGeom.h"
00043 
00044 /*-------- Obit: Software for the recently deceased ------------------*/
00064 /*--------------Class definitions-------------------------------------*/
00066 typedef struct {
00067 #include "ObitOTFArrayGeomDef.h"   /* this class definition */
00068 } ObitOTFArrayGeom;
00069 
00070 /*----------------------------- Macroes ---------------------------*/
00076 #define ObitOTFArrayGeomUnref(in) ObitUnref (in)
00077 
00083 #define ObitOTFArrayGeomRef(in) ObitRef (in)
00084 
00091 #define ObitOTFArrayGeomIsA(in) ObitIsA (in, ObitOTFArrayGeomGetClass())
00092 
00093 /*---------------Public functions---------------------------*/
00095 void ObitOTFArrayGeomClassInit (void);
00096 
00098 ObitOTFArrayGeom* newObitOTFArrayGeom (gchar* name);
00099 
00101 ObitOTFArrayGeom* ObitOTFArrayGeomCreate (glong ndetect);
00103 typedef void (*ObitOTFArrayGeomCreateFP) (glong ndetect);
00104 
00106 gconstpointer ObitOTFArrayGeomGetClass (void);
00107 
00109 ObitOTFArrayGeom* 
00110 ObitOTFArrayGeomCopy  (ObitOTFArrayGeom *in, ObitOTFArrayGeom *out, ObitErr *err);
00111 
00113 ObitOTFArrayGeom* 
00114 ObitOTFArrayGeomAver  (ObitOTFArrayGeom *in, ObitOTFDesc *inDesc, 
00115                        ObitOTFArrayGeom *out, ObitOTFDesc *outDesc, 
00116                        ObitErr *err);
00117 
00119 ObitIOCode ObitOTFArrayGeomRead (ObitOTFArrayGeom **in, ObitTableOTFArrayGeom *table, ObitErr *err);
00120 
00122 ObitIOCode ObitOTFArrayGeomWrite (ObitOTFArrayGeom *in, ObitTableOTFArrayGeom *table, ObitErr *err);
00123 
00125 gfloat ObitOTFArrayGeomParAng (ObitOTFArrayGeom *in, gfloat time, gfloat ra, gfloat dec);
00126 
00128 gfloat ObitOTFArrayGeomElev (ObitOTFArrayGeom *in, gfloat time, gfloat ra, gfloat dec);
00129 
00131 void ObitOTFArrayGeomCoord(ObitOTFArrayGeom *in, gfloat raPoint, gfloat decPoint, gfloat rot,
00132                            gfloat *x, gfloat *y);
00133 
00135 void ObitOTFArrayGeomProj(ObitOTFArrayGeom *in, gfloat raPoint, gfloat decPoint, gfloat rot,
00136                           gfloat raProj, gfloat decProj, ObitOTFProj Proj, gfloat *x, gfloat *y);
00137 
00139 void ObitOTFArrayGeomCorrPoint(gfloat azOff, gfloat elOff, gfloat pa,
00140                                gfloat *raPoint, gfloat *decPoint);
00141 /*----------- ClassInfo Structure -----------------------------------*/
00147 typedef struct  {
00148 #include "ObitOTFArrayGeomClassDef.h"
00149 } ObitOTFArrayGeomClassInfo; 
00150 
00151 #endif /* OBITOTFARRAYGEOM_H */ 

Generated on Mon Sep 3 20:43:53 2007 by  doxygen 1.3.9.1