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

ObitOTFDesc.c File Reference

ObitOTFDesc Obit GBT/OTF data descriptor class definition. More...

#include "Obit.h"
#include "ObitOTFDesc.h"
#include "ObitTableFQ.h"
#include "ObitTableFQUtil.h"

Defines

#define AINT(x)   (gdouble)((glong)(x))
 truncate double to integer precision
#define DG2RAD   G_PI / 180.0
 Degrees to radians factor.
#define RAD2DG   180.0 / G_PI
 Radians to degrees factor.

Functions

void ObitOTFDescInit (gpointer in)
 Private: Initialize newly instantiated object.
void ObitOTFDescClear (gpointer in)
 Private: Deallocate members.
void ObitOTFDescDate2JD (const gchar *date, gdouble *JD)
 Parse date string as ("yyyy-mm-dd" or "dd/mm/yy") and convert to Julian Date.
ObitOTFDescnewObitOTFDesc (gchar *name)
 Public: Constructor.
gconstpointer ObitOTFDescGetClass (void)
 Public: Return class pointer.
ObitOTFDescObitOTFDescCopy (ObitOTFDesc *in, ObitOTFDesc *out, ObitErr *err)
 Public: Copy OTFDesc.
void ObitOTFDescCopyDesc (ObitOTFDesc *in, ObitOTFDesc *out, ObitErr *err)
 Public: Copy descriptive (nonstructural) information.
void ObitOTFDescIndex (ObitOTFDesc *in)
 Public: Index for easier access.
void ObitOTFDescJD2Date (gdouble JD, gchar *date)
 Public: Convert JD to date string.
void ObitOTFDescType2String (ObitGBTOTFType OTFType, gchar *TString)
 Public: OTF type to string.
ObitGBTOTFType ObitOTFDescString2Type (gchar *TString)
 Public: OTF string to type.
void ObitOTFDescClassInit (void)
 Public: Class initializer.


Detailed Description

ObitOTFDesc Obit GBT/OTF data descriptor class definition.

This contains information about the observations and the coordinates in the image.


Define Documentation

#define AINT  )     (gdouble)((glong)(x))
 

truncate double to integer precision

#define DG2RAD   G_PI / 180.0
 

Degrees to radians factor.

#define RAD2DG   180.0 / G_PI
 

Radians to degrees factor.


Function Documentation

ObitOTFDesc* newObitOTFDesc gchar *  name  ) 
 

Public: Constructor.

Returns:
pointer to object created.

void ObitOTFDescClassInit void   ) 
 

Public: Class initializer.

void ObitOTFDescClear gpointer  inn  ) 
 

Private: Deallocate members.

Does (recursive) deallocation of parent class members.

Parameters:
inn Pointer to the object to deallocate.

ObitOTFDesc* ObitOTFDescCopy ObitOTFDesc in,
ObitOTFDesc out,
ObitErr *  err
 

Public: Copy OTFDesc.

The output descriptor will have the size and reference pixel modified to reflect selection on the input, i.e. the output descriptor describes the input.

Parameters:
in Pointer to object to be copied.
out Pointer to object to be written. If NULL then a new structure is created.
err ObitErr error stack
Returns:
Pointer to new object.

void ObitOTFDescCopyDesc ObitOTFDesc in,
ObitOTFDesc out,
ObitErr *  err
 

Public: Copy descriptive (nonstructural) information.

things that don't define the structure).

Parameters:
in Pointer to object to be copied.
out Pointer to object to be written.
err ObitErr error stack

void ObitOTFDescDate2JD const gchar *  date,
gdouble *  JD
 

Parse date string as ("yyyy-mm-dd" or "dd/mm/yy") and convert to Julian Date.

Algorithm from ACM Algorithm number 199 This routine is good from 1 Mar 1900 indefinitely.

Parameters:
date [in] Date string
date [out] Julian date.

gconstpointer ObitOTFDescGetClass void   ) 
 

Public: Return class pointer.

Initializes class if needed on first call.

Returns:
pointer to the class structure.

void ObitOTFDescIndex ObitOTFDesc in  ) 
 

Public: Index for easier access.

Parameters:
in Pointer to object.

void ObitOTFDescInit gpointer  inn  ) 
 

Private: Initialize newly instantiated object.

Does (recursive) initialization of base class members before this class.

Parameters:
inn Pointer to the object to initialize.

void ObitOTFDescJD2Date gdouble  JD,
gchar *  date
 

Public: Convert JD to date string.

Apdapted from ASM Algorithm no. 199

Parameters:
date [in] Julian date.
date [out] Date string, Must be at least 11 characters.

ObitGBTOTFType ObitOTFDescString2Type gchar *  TString  ) 
 

Public: OTF string to type.

Parameters:
OTFType [in] enum
TString [out] readable representation (8 char)

void ObitOTFDescType2String ObitGBTOTFType  OTFType,
gchar *  TString
 

Public: OTF type to string.

Parameters:
OTFType [in] enum
TString [out] readable representation (8 char+NULL)


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