00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
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
00064
00066 typedef struct {
00067 #include "ObitOTFArrayGeomDef.h"
00068 } ObitOTFArrayGeom;
00069
00070
00076 #define ObitOTFArrayGeomUnref(in) ObitUnref (in)
00077
00083 #define ObitOTFArrayGeomRef(in) ObitRef (in)
00084
00091 #define ObitOTFArrayGeomIsA(in) ObitIsA (in, ObitOTFArrayGeomGetClass())
00092
00093
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
00147 typedef struct {
00148 #include "ObitOTFArrayGeomClassDef.h"
00149 } ObitOTFArrayGeomClassInfo;
00150
00151 #endif