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

ObitOTFArrayGeom.c File Reference

GBT/OTF array geometry class function definitions. More...

#include "ObitOTFArrayGeom.h"

Functions

void ObitOTFArrayGeomInit (gpointer in)
 Private: Initialize newly instantiated object.
void ObitOTFArrayGeomClear (gpointer in)
 Private: Deallocate members.
ObitOTFArrayGeomnewObitOTFArrayGeom (gchar *name)
 Public: Default Constructor.
gconstpointer ObitOTFArrayGeomGetClass (void)
 Public: ClassInfo pointer.
ObitOTFArrayGeomObitOTFArrayGeomCopy (ObitOTFArrayGeom *in, ObitOTFArrayGeom *out, ObitErr *err)
 Public: Copy (deep) constructor.
ObitOTFArrayGeomObitOTFArrayGeomAver (ObitOTFArrayGeom *in, ObitOTFDesc *inDesc, ObitOTFArrayGeom *out, ObitOTFDesc *outDesc, ObitErr *err)
 Public: Copy (deep) constructor averaging over frequency .
ObitOTFArrayGeomObitOTFArrayGeomCreate (glong ndetect)
 Public: Create/initialize ObitOTFArrayGeom structures.
ObitIOCode ObitOTFArrayGeomRead (ObitOTFArrayGeom **in, ObitTableOTFArrayGeom *table, ObitErr *err)
 Public: Read Table from disk.
ObitIOCode ObitOTFArrayGeomWrite (ObitOTFArrayGeom *in, ObitTableOTFArrayGeom *table, ObitErr *err)
 Public: Write Table to disk.
gfloat ObitOTFArrayGeomParAng (ObitOTFArrayGeom *in, gfloat time, gfloat ra, gfloat dec)
 Public: Get Parallactic angle for a given time and direction.
gfloat ObitOTFArrayGeomElev (ObitOTFArrayGeom *in, gfloat time, gfloat ra, gfloat dec)
 Public: Get Elevation for a given time and direction.
void ObitOTFArrayGeomCoord (ObitOTFArrayGeom *in, gfloat raPoint, gfloat decPoint, gfloat rot, gfloat *x, gfloat *y)
 Public: Get detector coordinates on sky.
void ObitOTFArrayGeomProj (ObitOTFArrayGeom *in, gfloat raPoint, gfloat decPoint, gfloat rot, gfloat raProj, gfloat decProj, ObitOTFProj Proj, gfloat *x, gfloat *y)
 Public: Get detector locations projected onto a plane.
void ObitOTFArrayGeomCorrPoint (gfloat azOff, gfloat elOff, gfloat pa, gfloat *raPoint, gfloat *decPoint)
 Public: Offset a celestial position in az, el.
void ObitOTFArrayGeomClassInit (void)
 Publi: Class initializer.


Detailed Description

GBT/OTF array geometry class function definitions.

This class is derived from the Obit base class.


Function Documentation

ObitOTFArrayGeom* newObitOTFArrayGeom gchar *  name  ) 
 

Public: Default Constructor.

Initializes class if needed on first call.

Parameters:
name An optional name for the object.
Returns:
the new object.

ObitOTFArrayGeom* ObitOTFArrayGeomAver ObitOTFArrayGeom in,
ObitOTFDesc inDesc,
ObitOTFArrayGeom out,
ObitOTFDesc outDesc,
ObitErr *  err
 

Public: Copy (deep) constructor averaging over frequency .

Parameters:
in The object to copy
inDesc OTFdescriptor for in
out An existing object pointer for output or NULL if none exists.
outDesc OTFdescriptor for out
err Obit error stack object.
Returns:
pointer to the new object.

void ObitOTFArrayGeomClassInit void   ) 
 

Publi: Class initializer.

void ObitOTFArrayGeomClear gpointer  inn  ) 
 

Private: Deallocate members.

Does (recursive) deallocation of parent class members. For some reason this wasn't build into the GType class.

Parameters:
inn Pointer to the object to deallocate. Actually it should be an ObitOTFArrayGeom* cast to an Obit*.

void ObitOTFArrayGeomCoord ObitOTFArrayGeom in,
gfloat  raPoint,
gfloat  decPoint,
gfloat  rot,
gfloat *  x,
gfloat *  y
 

Public: Get detector coordinates on sky.

Parameters:
in Array geometry
raPoint Telescope pointing RA (deg)
decPoint Telescope pointing Declination (deg)
rot Array rotation (parallactic angle ) (deg)
x Array of output RAs (deg). allocated in calling routine, must be at least in->numberDetect.
y Array of output Decs.

ObitOTFArrayGeom* ObitOTFArrayGeomCopy ObitOTFArrayGeom in,
ObitOTFArrayGeom out,
ObitErr *  err
 

Public: Copy (deep) constructor.

Parameters:
in The object to copy
out An existing object pointer for output or NULL if none exists.
err Obit error stack object.
Returns:
pointer to the new object.

void ObitOTFArrayGeomCorrPoint gfloat  azOff,
gfloat  elOff,
gfloat  pa,
gfloat *  raPoint,
gfloat *  decPoint
 

Public: Offset a celestial position in az, el.

Parameters:
azOff azimuth ( xcos el) in deg.
eloff elevation offset in deg
pa parallactic angle (+any feed rotation)
raPoint Telescope pointing RA (deg), returned corrected
decPoint Telescope pointing Declination (deg) returned corrected

ObitOTFArrayGeom* ObitOTFArrayGeomCreate glong  ndetect  ) 
 

Public: Create/initialize ObitOTFArrayGeom structures.

Parameters:
ndetect Number of detectors in array
Returns:
the new object.

gfloat ObitOTFArrayGeomElev ObitOTFArrayGeom in,
gfloat  time,
gfloat  ra,
gfloat  dec
 

Public: Get Elevation for a given time and direction.

Parameters:
in Array geometry to write
time Time (days)
ra RA (deg)
dec Declination (deg)
Returns:
elevation angle in degrees ).

gconstpointer ObitOTFArrayGeomGetClass void   ) 
 

Public: ClassInfo pointer.

Returns:
pointer to the class structure.

void ObitOTFArrayGeomInit gpointer  inn  ) 
 

Private: Initialize newly instantiated object.

Parent classes portions are (recursively) initialized first

Parameters:
inn Pointer to the object to initialize.

gfloat ObitOTFArrayGeomParAng ObitOTFArrayGeom in,
gfloat  time,
gfloat  ra,
gfloat  dec
 

Public: Get Parallactic angle for a given time and direction.

Parameters:
in Array geometry to write
time Time (days)
ra RA (deg)
dec Declination (deg)
Returns:
parallactic angle in degrees ).

void ObitOTFArrayGeomProj ObitOTFArrayGeom in,
gfloat  raPoint,
gfloat  decPoint,
gfloat  rot,
gfloat  raProj,
gfloat  decProj,
ObitOTFProj  Proj,
gfloat *  x,
gfloat *  y
 

Public: Get detector locations projected onto a plane.

Parameters:
in Array geometry
raPoint Telescope pointing RA (deg)
decPoint Telescope pointing Declination (deg)
rot Array rotation (parallactic angle ) (deg)
raProj Central RA of desired projection (deg)
decProj Central Dec of desired projection (deg)
Proj enum defining which projection OBIT_OTF_SIN, OBIT_OTF_ARC, OBIT_OTF_TAN
x Array of output "X" offsets (deg) on projected plane allocated in calling routine, must be at least in->numberDetect.
y Array of output "Y" offsets (deg) on projected plane

ObitIOCode ObitOTFArrayGeomRead ObitOTFArrayGeom **  in,
ObitTableOTFArrayGeom table,
ObitErr *  err
 

Public: Read Table from disk.

Parameters:
in Array geometry to update, if (*in) Null, it is created
table table to read from
err Error stack
Returns:
return code OBIT_IO_OK => OK

ObitIOCode ObitOTFArrayGeomWrite ObitOTFArrayGeom in,
ObitTableOTFArrayGeom table,
ObitErr *  err
 

Public: Write Table to disk.

Parameters:
in Array geometry to write
table table to write to
err Error stack
Returns:
return code OBIT_IO_OK => OK


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