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

a class for accessing on-line SDD data files at the 12-m More...

#include <SDD12mOnLine.h>

List of all members.

Public Member Functions

 SDD12mOnLine ()
 SDD12mOnLine (const String &dataFileName, const String &gainFileName)
 SDD12mOnLine (const SDD12mOnLine &other)
 ~SDD12mOnLine ()
void attach (const String &dataFileName, const String &gainFileName)
 attach to two new files
const SDDIndexRepindex (uInt rownr) const
 the things we need from the SDDFiles The index rep for a specific rownr
const SDDHeaderheader (uInt rownr) const
 The header for a specific rownr values will be correctly modified for OTF data here for HSOURCE, VSOURCE, AZ, EL, and UTIME.
Bool getData (Array< Float > &data, uInt rownr) const
 The data array for a specific rownr.
Int timeStamp (uInt rownr) const
 The timeStamp for a particular row.
Int gainStamp (uInt rownr) const
 the gainStamp for a particular row
Int offStamp (uInt rownr) const
 the offStamp for a particular row
Float time (uInt rownr) const
 The OTF offset for a particular row For non-otf data, these should return appropriate values 0 for time, ra, dec and the actual AZ and EL for az el.
Float raOffset (uInt rownr) const
Float decOffset (uInt rownr) const
Float az (uInt rownr) const
Float el (uInt rownr) const
Float raRange (uInt rownr) const
 This returns the full range of ra values appropriate for the scan number associated with this row.
Bool needToSync () const
 This just sees if there is a need to sync.
Int sync ()
 sync with what is on disk, return the number of rows
uInt nrow ()

Private Member Functions

SDD12mOnLine operator= (const SDD12mOnLine &)
void init ()
void appendMaps (uInt startDataEntry, uInt startGainEntry)

Private Attributes

Block< Int > timeStamp_p
SimpleOrderedMap< uInt, Int > offMap_p
SimpleOrderedMap< uInt, Int > gainMap_p
String dataFileName_p
String gainFileName_p
SDDFiledataFile_p
SDDFilegainFile_p
uInt nrow_p
PtrBlock< SDDFile * > fileMap_p
Block< OrderedPair< uInt, uInt > > rowMap_p

Detailed Description

a class for accessing on-line SDD data files at the 12-m

Intended use:

Public interface

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

Definition at line 70 of file SDD12mOnLine.h.


Constructor & Destructor Documentation

SDD12mOnLine::SDD12mOnLine ( const String dataFileName,
const String gainFileName 
)

Member Function Documentation

void SDD12mOnLine::appendMaps ( uInt  startDataEntry,
uInt  startGainEntry 
) [private]
void SDD12mOnLine::attach ( const String dataFileName,
const String gainFileName 
)

attach to two new files

Float SDD12mOnLine::az ( uInt  rownr) const
Float SDD12mOnLine::decOffset ( uInt  rownr) const
Float SDD12mOnLine::el ( uInt  rownr) const
Int SDD12mOnLine::gainStamp ( uInt  rownr) const

the gainStamp for a particular row

Bool SDD12mOnLine::getData ( Array< Float > &  data,
uInt  rownr 
) const

The data array for a specific rownr.

const SDDHeader& SDD12mOnLine::header ( uInt  rownr) const

The header for a specific rownr values will be correctly modified for OTF data here for HSOURCE, VSOURCE, AZ, EL, and UTIME.

const SDDIndexRep& SDD12mOnLine::index ( uInt  rownr) const

the things we need from the SDDFiles The index rep for a specific rownr

void SDD12mOnLine::init ( ) [private]
Bool SDD12mOnLine::needToSync ( ) const

This just sees if there is a need to sync.

uInt SDD12mOnLine::nrow ( ) [inline]

Definition at line 121 of file SDD12mOnLine.h.

References nrow_p.

Int SDD12mOnLine::offStamp ( uInt  rownr) const

the offStamp for a particular row

SDD12mOnLine SDD12mOnLine::operator= ( const SDD12mOnLine ) [private]
Float SDD12mOnLine::raOffset ( uInt  rownr) const
Float SDD12mOnLine::raRange ( uInt  rownr) const

This returns the full range of ra values appropriate for the scan number associated with this row.

sync with what is on disk, return the number of rows

Float SDD12mOnLine::time ( uInt  rownr) const

The OTF offset for a particular row For non-otf data, these should return appropriate values 0 for time, ra, dec and the actual AZ and EL for az el.

Int SDD12mOnLine::timeStamp ( uInt  rownr) const

The timeStamp for a particular row.


Member Data Documentation

Definition at line 131 of file SDD12mOnLine.h.

Definition at line 130 of file SDD12mOnLine.h.

PtrBlock<SDDFile*> SDD12mOnLine::fileMap_p [private]

Definition at line 135 of file SDD12mOnLine.h.

Definition at line 131 of file SDD12mOnLine.h.

Definition at line 130 of file SDD12mOnLine.h.

SimpleOrderedMap<uInt, Int> SDD12mOnLine::gainMap_p [private]

Definition at line 128 of file SDD12mOnLine.h.

uInt SDD12mOnLine::nrow_p [private]

Definition at line 133 of file SDD12mOnLine.h.

Referenced by nrow().

SimpleOrderedMap<uInt, Int> SDD12mOnLine::offMap_p [private]

Definition at line 127 of file SDD12mOnLine.h.

Block< OrderedPair<uInt, uInt> > SDD12mOnLine::rowMap_p [private]

Definition at line 136 of file SDD12mOnLine.h.

Block<Int> SDD12mOnLine::timeStamp_p [private]

Definition at line 126 of file SDD12mOnLine.h.


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