casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes | Private Attributes
MBrecord Class Reference

Class to store an MBFITS single-dish data record. More...

#include <MBrecord.h>

List of all members.

Public Member Functions

 MBrecord (int nIF=0)
 Default constructor allocates arrays for the required number of IFs.
 ~MBrecord ()
 Destructor; deletes any storage that may have been auto-allocated by the assignment operator.
void setNIFs (int nIF)
 Expand arrays if necessary to accomodate the required number of IFs.
void allocate (int iIF, int nprod, int nxpol)
 Ensure there is enough storage for the specified number of spectral products (channels x polarizations) for IF with array index iif (i.e.
void free ()
 Free all allocate()'d storage.
MBrecordoperator= (const MBrecord &other)
 The assignment operator does a deep copy and will auto-allocate or re-allocate data storage if necessary.
int extract (const MBrecord &other, int iIF)
 Extract a selected IF from a MBrecord into another.

Public Attributes

int scanNo
int cycleNo
char datobs [12]
double utc
float exposure
char srcName [20]
double srcRA
double srcDec
double restFreq
char obsType [16]
short beamNo
 Beam-dependent parameters.
double ra
double dec
int pCode
float rateAge
 1: position and timestamp unchanged, 2: position changed but not timestamp, 3: position and timestamp are rubbish, 4: timestamp/1000 scale error (repaired), 5: timestamp late by 1.0 sec (repaired), 6: timestamp late by 0.5 sec (repaired).
float raRate
float decRate
float paRate
short nIF
 IF-dependent parameters.
short * IFno
int * nChan
int * nPol
float * fqRefPix
double * fqRefVal
double * fqDelt
float(* tsys )[2]
float(* calfctr )[2]
float(* xcalfctr )[2]
int haveBase
float(* baseLin )[2][2]
float(* baseSub )[2][24]
int haveSpectra
float ** spectra
unsigned char ** flagged
float ** xpol
float(* tcal )[2]
 Only present for Parkes Multibeam or LBA data after 1997/02/02.
int extraSysCal
 Extra syscal data available for Parkes Multibeam observations only.
float azimuth
float elevation
float parAngle
float focusAxi
float focusTan
float focusRot
float temp
float pressure
float humidity
float windSpeed
float windAz
char tcalTime [20]
short refBeam
int polNo
 mode (added 1999/03/17).
double srcVelocity
int srcType

Private Attributes

int cNIF
int * cNProd
int * cNXPol

Detailed Description

Class to store an MBFITS single-dish data record.

Definition at line 69 of file MBrecord.h.


Constructor & Destructor Documentation

MBrecord::MBrecord ( int  nIF = 0)

Default constructor allocates arrays for the required number of IFs.

Destructor; deletes any storage that may have been auto-allocated by the assignment operator.


Member Function Documentation

void MBrecord::allocate ( int  iIF,
int  nprod,
int  nxpol 
)

Ensure there is enough storage for the specified number of spectral products (channels x polarizations) for IF with array index iif (i.e.

the actual IF number is IFno[iif]). Expands arrays if necessary but never contracts.

int MBrecord::extract ( const MBrecord other,
int  iIF 
)

Extract a selected IF from a MBrecord into another.

void MBrecord::free ( )

Free all allocate()'d storage.

MBrecord& MBrecord::operator= ( const MBrecord other)

The assignment operator does a deep copy and will auto-allocate or re-allocate data storage if necessary.

void MBrecord::setNIFs ( int  nIF)

Expand arrays if necessary to accomodate the required number of IFs.


Member Data Documentation

Definition at line 150 of file MBrecord.h.

float(* MBrecord::baseLin)[2][2]

Definition at line 137 of file MBrecord.h.

float(* MBrecord::baseSub)[2][24]

Definition at line 138 of file MBrecord.h.

Beam-dependent parameters.

Definition at line 110 of file MBrecord.h.

float(* MBrecord::calfctr)[2]

Definition at line 134 of file MBrecord.h.

int MBrecord::cNIF [private]

Definition at line 174 of file MBrecord.h.

int* MBrecord::cNProd [private]

Definition at line 175 of file MBrecord.h.

int* MBrecord::cNXPol [private]

Definition at line 176 of file MBrecord.h.

Definition at line 99 of file MBrecord.h.

char MBrecord::datobs[12]

Definition at line 100 of file MBrecord.h.

double MBrecord::dec

Definition at line 112 of file MBrecord.h.

Definition at line 122 of file MBrecord.h.

Definition at line 151 of file MBrecord.h.

Definition at line 102 of file MBrecord.h.

Extra syscal data available for Parkes Multibeam observations only.

Definition at line 148 of file MBrecord.h.

unsigned char* * MBrecord::flagged

Definition at line 141 of file MBrecord.h.

Definition at line 154 of file MBrecord.h.

Definition at line 156 of file MBrecord.h.

Definition at line 155 of file MBrecord.h.

Definition at line 132 of file MBrecord.h.

Definition at line 130 of file MBrecord.h.

Definition at line 131 of file MBrecord.h.

Definition at line 136 of file MBrecord.h.

Definition at line 139 of file MBrecord.h.

Definition at line 160 of file MBrecord.h.

Definition at line 127 of file MBrecord.h.

Definition at line 128 of file MBrecord.h.

IF-dependent parameters.

Definition at line 126 of file MBrecord.h.

Definition at line 129 of file MBrecord.h.

Definition at line 107 of file MBrecord.h.

Definition at line 152 of file MBrecord.h.

Definition at line 123 of file MBrecord.h.

Definition at line 113 of file MBrecord.h.

mode (added 1999/03/17).

Definition at line 168 of file MBrecord.h.

Definition at line 159 of file MBrecord.h.

double MBrecord::ra

Definition at line 111 of file MBrecord.h.

Definition at line 121 of file MBrecord.h.

1: position and timestamp unchanged, 2: position changed but not timestamp, 3: position and timestamp are rubbish, 4: timestamp/1000 scale error (repaired), 5: timestamp late by 1.0 sec (repaired), 6: timestamp late by 0.5 sec (repaired).

Definition at line 120 of file MBrecord.h.

Definition at line 166 of file MBrecord.h.

Definition at line 106 of file MBrecord.h.

Definition at line 98 of file MBrecord.h.

Definition at line 140 of file MBrecord.h.

Definition at line 105 of file MBrecord.h.

Definition at line 103 of file MBrecord.h.

Definition at line 104 of file MBrecord.h.

Definition at line 171 of file MBrecord.h.

Definition at line 169 of file MBrecord.h.

float(* MBrecord::tcal)[2]

Only present for Parkes Multibeam or LBA data after 1997/02/02.

Definition at line 145 of file MBrecord.h.

Definition at line 164 of file MBrecord.h.

Definition at line 158 of file MBrecord.h.

float(* MBrecord::tsys)[2]

Definition at line 133 of file MBrecord.h.

double MBrecord::utc

Definition at line 101 of file MBrecord.h.

Definition at line 162 of file MBrecord.h.

Definition at line 161 of file MBrecord.h.

float(* MBrecord::xcalfctr)[2]

Definition at line 135 of file MBrecord.h.

float* * MBrecord::xpol

Definition at line 142 of file MBrecord.h.


The documentation for this class was generated from the following file: