code::SigmetDataHandler Class Reference

Inheritance diagram for code::SigmetDataHandler:

code::DataHandler List of all members.

Public Types

 Reflectivity
 AliasedVelocity
 SpectrumWidth
 Power
 SQI
 Velocity
enum  SigmetDataType {
  Reflectivity, AliasedVelocity, SpectrumWidth, Power,
  SQI, Velocity
}

Public Member Functions

 SigmetDataHandler (const std::string &inputDirectory, const std::string &outputDirectory, const std::string &backupDirectory, const std::string &lbname, const std::string &namePattern=std::string(), bool compressedFlag=false, bool insameDir=false, bool keepFile=false, bool readAll=false, float magneticOffset=0.0, bool counterclockwise=false, float beamWidth=0.0, const std::string &userRadarName=std::string(), int vcp=-1)
virtual void createW2NetcdfFiles ()
code::SmartPtr< SIGMET::SigmetDatareadData ()
 Read data from file, fill SigVol struct, will allocate memory for SigVol struct.
virtual bool isNewFile (const std::string &)
virtual ~SigmetDataHandler ()
void setThreshold (float noise)
void setRadarLocation (float lat, float lon, float height)
void addModifier (SmartPtr< DataModifier > m)
 By default, a DataHandler does not do anything to the LatLonGrid.
virtual bool modifyBeforeWrite (code::LatLonGrid &llgrid)

Static Public Member Functions

static void getSubDirs (const std::string &inputDir, std::vector< std::string > &subdirs)

Protected Member Functions

virtual void findFilesToRead ()

Protected Attributes

std::string inputDir
std::string outputDir
bool compressedFlag
bool subDirFlag
std::set< std::string > fileNames
std::string readFile_
code::SmartPtr< code::IndexRecordNotifier > lb
std::string fileNamePattern
bool keepFile_
bool readAll_
std::string lastFileRead_
std::vector< SmartPtr< DataModifier > > modifiers

Member Enumeration Documentation

enum code::SigmetDataHandler::SigmetDataType

Enumerator:
Reflectivity 
AliasedVelocity 
SpectrumWidth 
Power 
SQI 
Velocity 


Constructor & Destructor Documentation

code::SigmetDataHandler::SigmetDataHandler ( const std::string &  inputDirectory,
const std::string &  outputDirectory,
const std::string &  backupDirectory,
const std::string &  lbname,
const std::string &  namePattern = std::string(),
bool  compressedFlag = false,
bool  insameDir = false,
bool  keepFile = false,
bool  readAll = false,
float  magneticOffset = 0.0,
bool  counterclockwise = false,
float  beamWidth = 0.0,
const std::string &  userRadarName = std::string(),
int  vcp = -1 
)

virtual code::SigmetDataHandler::~SigmetDataHandler (  )  [virtual]


Member Function Documentation

void code::DataHandler::addModifier ( SmartPtr< DataModifier m  )  [inline, inherited]

By default, a DataHandler does not do anything to the LatLonGrid.

Subclasses can modify the data, by changing the data values or cropping the grid. This is done by attaching a DataModifier.

Modifications are done in the order in which they are attached.

virtual void code::SigmetDataHandler::createW2NetcdfFiles (  )  [virtual]

Reimplemented from code::DataHandler.

virtual void code::DataHandler::findFilesToRead (  )  [protected, virtual, inherited]

Reimplemented in code::GRIBMultiDirDataHandler.

static void code::DataHandler::getSubDirs ( const std::string &  inputDir,
std::vector< std::string > &  subdirs 
) [static, inherited]

virtual bool code::SigmetDataHandler::isNewFile ( const std::string &   )  [virtual]

Reimplemented from code::DataHandler.

virtual bool code::DataHandler::modifyBeforeWrite ( code::LatLonGrid &  llgrid  )  [virtual, inherited]

code::SmartPtr<SIGMET::SigmetData> code::SigmetDataHandler::readData (  ) 

Read data from file, fill SigVol struct, will allocate memory for SigVol struct.

return true on success

void code::SigmetDataHandler::setRadarLocation ( float  lat,
float  lon,
float  height 
)

void code::SigmetDataHandler::setThreshold ( float  noise  )  [inline]


Member Data Documentation

bool code::DataHandler::compressedFlag [protected, inherited]

std::string code::DataHandler::fileNamePattern [protected, inherited]

std::set<std::string > code::DataHandler::fileNames [protected, inherited]

std::string code::DataHandler::inputDir [protected, inherited]

bool code::DataHandler::keepFile_ [protected, inherited]

std::string code::DataHandler::lastFileRead_ [protected, inherited]

code::SmartPtr<code::IndexRecordNotifier> code::DataHandler::lb [protected, inherited]

std::vector< SmartPtr<DataModifier> > code::DataHandler::modifiers [protected, inherited]

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

bool code::DataHandler::readAll_ [protected, inherited]

std::string code::DataHandler::readFile_ [protected, inherited]

bool code::DataHandler::subDirFlag [protected, inherited]


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