code::LevelIIWriter Class Reference

Inheritance diagram for code::LevelIIWriter:

code::SingleFileWriter List of all members.

Detailed Description

This class will take elevation scans of reflectivity, velocity and spectrum width and write them out into a Level-II file.

It can be attached to an index in which case it will listen for the the appropriate products to write out.

Author:
Lakshman
Version:
Id
code_LevelIIWriter.h,v 1.6 2009/06/02 20:17:51 lakshman Exp


Public Member Functions

 LevelIIWriter (const std::string &outputDir)
virtual ~LevelIIWriter ()
void listenFor (const std::string &refproductname, const std::string &velproductname, const std::string &spwproductname)
 listen for these types of data from the index to which to this writer is attached.
virtual void actionPerformed (const ActionEvent *e)
 the listening event for attaching to an index.
void setReflectivity (const RadialSet &rs)
 set the latest reflectivity scan.
void setVelocity (const RadialSet &rs)
 set the latest scan.
void setSpectrumWidth (const RadialSet &rs)
 set the latest scan.
void setPolarGridAngularResolution (double res)
 If you set the resolution to be a number greater than zero (in degrees), then the input radial sets will be made into regular polar grids with that angular resolution.
void write ()
 The work-horse function -- you can call this function to force the write.

Protected Types

 Reflectivity
 Velocity
 SpectrumWidth
 NumDataTypes
enum  { Reflectivity, Velocity, SpectrumWidth, NumDataTypes }

Protected Attributes

enum code::SingleFileWriter:: { ... }  DataTypes
SmartPtr< RadialSet > data [NumDataTypes]
std::string dataName [NumDataTypes]
std::string outputDir
Angle currAngle
Time currTime
int swp
float polarGridAngularResolution


Member Enumeration Documentation

anonymous enum [protected, inherited]

Enumerator:
Reflectivity 
Velocity 
SpectrumWidth 
NumDataTypes 


Constructor & Destructor Documentation

code::LevelIIWriter::LevelIIWriter ( const std::string &  outputDir  ) 

virtual code::LevelIIWriter::~LevelIIWriter (  )  [inline, virtual]


Member Function Documentation

virtual void code::SingleFileWriter::actionPerformed ( const ActionEvent *  e  )  [virtual, inherited]

the listening event for attaching to an index.

void code::SingleFileWriter::listenFor ( const std::string &  refproductname,
const std::string &  velproductname,
const std::string &  spwproductname 
) [inherited]

listen for these types of data from the index to which to this writer is attached.

If any of these strings is empty, that product will not be waited for.

void code::SingleFileWriter::setPolarGridAngularResolution ( double  res  )  [inline, inherited]

If you set the resolution to be a number greater than zero (in degrees), then the input radial sets will be made into regular polar grids with that angular resolution.

See also:
PolarGrid

void code::SingleFileWriter::setReflectivity ( const RadialSet &  rs  )  [inline, inherited]

set the latest reflectivity scan.

This function will call write to write out if necessary.

void code::SingleFileWriter::setSpectrumWidth ( const RadialSet &  rs  )  [inline, inherited]

set the latest scan.

This function will call write to write out if necessary.

void code::SingleFileWriter::setVelocity ( const RadialSet &  rs  )  [inline, inherited]

set the latest scan.

This function will call write to write outif necessary.

void code::SingleFileWriter::write (  )  [inherited]

The work-horse function -- you can call this function to force the write.


Member Data Documentation

Angle code::SingleFileWriter::currAngle [protected, inherited]

Time code::SingleFileWriter::currTime [protected, inherited]

SmartPtr<RadialSet> code::SingleFileWriter::data[NumDataTypes] [protected, inherited]

std::string code::SingleFileWriter::dataName[NumDataTypes] [protected, inherited]

enum { ... } code::SingleFileWriter::DataTypes [protected, inherited]

std::string code::SingleFileWriter::outputDir [protected, inherited]

float code::SingleFileWriter::polarGridAngularResolution [protected, inherited]

int code::SingleFileWriter::swp [protected, inherited]


Generated on Fri May 4 13:40:22 2012 for WDSS-IIw2algs by  doxygen 1.4.7