OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | List of all members
otb::AeronetFileReader Class Reference

#include <otbAeronetFileReader.h>

+ Inheritance diagram for otb::AeronetFileReader:
+ Collaboration diagram for otb::AeronetFileReader:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef itk::SmartPointer< SelfPointer
 
typedef AeronetFileReader Self
 
typedef itk::ProcessObject Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetFileName () const
 
virtual const char * GetNameOfClass () const
 
virtual AeronetDataGetOutput (void)
 
virtual void SetFileName (const char *_arg)
 

Static Public Member Functions

static Pointer New ()
 
typedef std::vector< std::string > VectorString
 
typedef std::vector< double > VectorDouble
 
typedef std::vector< VectorStringMatrixString
 
std::string m_FileName
 
int m_Day
 
int m_Month
 
int m_Year
 
int m_Hour
 
int m_Minute
 
double m_Epsilon
 
virtual void SetDay (int _arg)
 
virtual int GetDay ()
 
virtual void SetMonth (int _arg)
 
virtual int GetMonth ()
 
virtual void SetYear (int _arg)
 
virtual int GetYear ()
 
virtual void SetHour (int _arg)
 
virtual int GetHour ()
 
virtual void SetMinute (int _arg)
 
virtual int GetMinute ()
 
virtual void SetEpsilon (double _arg)
 
virtual double GetEpsilon ()
 
 AeronetFileReader ()
 
 ~AeronetFileReader () override
 
void GenerateData () override
 
void PrintSelf (std::ostream &os, itk::Indent indent) const override
 
VectorString ParseLine (const std::string &line) const
 
void ParseValidLine (const double &ref_date, const VectorString &line, const double &epsilon, VectorDouble &water, VectorDouble &angst, VectorDouble &tau_day, VectorDouble &solarZenithAngle) const
 
void GetStatistics (const VectorDouble &vec, double &mean, double &stddev) const
 

Detailed Description

This class reads a Aeronet data from an Aeronet file.

This class reads a Aeronet data from an Aeronet file.

This file must contain the following fields (contains in the line 5) column 1 : The date "Date (dd/mm/yyyy)" 2 : The time "Time (hh:mm:ss)" 6 : Aerosol Optical for 670 nm "AOT_675" 15 : Aerosol Optical for 440 nm "AOT_440" 19 : Water "Water (cm)" 37 : Angstrom value "440-870Angstrom" 44 : Solar zenith angle "Solar_Zenith_Angle" The data start in the line number 6.

See also
AeronetData

Definition at line 81 of file otbAeronetFileReader.h.

Member Typedef Documentation

◆ ConstPointer

typedef itk::SmartPointer<const Self> otb::AeronetFileReader::ConstPointer

Definition at line 89 of file otbAeronetFileReader.h.

◆ MatrixString

typedef std::vector<VectorString> otb::AeronetFileReader::MatrixString
private

Standards privates typedefs

Definition at line 153 of file otbAeronetFileReader.h.

◆ Pointer

typedef itk::SmartPointer<Self> otb::AeronetFileReader::Pointer

Definition at line 88 of file otbAeronetFileReader.h.

◆ Self

Standards typedef

Definition at line 86 of file otbAeronetFileReader.h.

◆ Superclass

typedef itk::ProcessObject otb::AeronetFileReader::Superclass

Definition at line 87 of file otbAeronetFileReader.h.

◆ VectorDouble

typedef std::vector<double> otb::AeronetFileReader::VectorDouble
private

Standards privates typedefs

Definition at line 152 of file otbAeronetFileReader.h.

◆ VectorString

typedef std::vector<std::string> otb::AeronetFileReader::VectorString
private

Standards privates typedefs

Definition at line 151 of file otbAeronetFileReader.h.

Constructor & Destructor Documentation

◆ AeronetFileReader()

otb::AeronetFileReader::AeronetFileReader ( )
protected

Constructor

◆ ~AeronetFileReader()

otb::AeronetFileReader::~AeronetFileReader ( )
overrideprotected

Destructor

Member Function Documentation

◆ CreateAnother()

virtual::itk::LightObject::Pointer otb::AeronetFileReader::CreateAnother ( void  ) const

◆ GenerateData()

void otb::AeronetFileReader::GenerateData ( )
overrideprotected

Main computation method

◆ GetDay()

virtual int otb::AeronetFileReader::GetDay ( )
virtual

Standards privates typedefs

◆ GetEpsilon()

virtual double otb::AeronetFileReader::GetEpsilon ( )
virtual

Standards privates typedefs

◆ GetFileName()

virtual const char* otb::AeronetFileReader::GetFileName ( ) const
virtual

Get the filename

◆ GetHour()

virtual int otb::AeronetFileReader::GetHour ( )
virtual

Standards privates typedefs

◆ GetMinute()

virtual int otb::AeronetFileReader::GetMinute ( )
virtual

Standards privates typedefs

◆ GetMonth()

virtual int otb::AeronetFileReader::GetMonth ( )
virtual

Standards privates typedefs

◆ GetNameOfClass()

virtual const char* otb::AeronetFileReader::GetNameOfClass ( ) const
virtual

Runtime type information

◆ GetOutput()

virtual AeronetData* otb::AeronetFileReader::GetOutput ( void  )
virtual

Overriding of the GetOutput() method

◆ GetStatistics()

void otb::AeronetFileReader::GetStatistics ( const VectorDouble vec,
double &  mean,
double &  stddev 
) const
private

Compute statistics method (mean and stddev)

◆ GetYear()

virtual int otb::AeronetFileReader::GetYear ( )
virtual

Standards privates typedefs

◆ New()

static Pointer otb::AeronetFileReader::New ( )
static

Creation through the object factory

◆ ParseLine()

VectorString otb::AeronetFileReader::ParseLine ( const std::string &  line) const
private

Parse the string and return a list of strings which separated by ',' char

◆ ParseValidLine()

void otb::AeronetFileReader::ParseValidLine ( const double &  ref_date,
const VectorString line,
const double &  epsilon,
VectorDouble water,
VectorDouble angst,
VectorDouble tau_day,
VectorDouble solarZenithAngle 
) const
private

Parse valid line method

◆ PrintSelf()

void otb::AeronetFileReader::PrintSelf ( std::ostream &  os,
itk::Indent  indent 
) const
overrideprotected

PrintSelf method

◆ SetDay()

virtual void otb::AeronetFileReader::SetDay ( int  _arg)
virtual

Set/Get the day value

◆ SetEpsilon()

virtual void otb::AeronetFileReader::SetEpsilon ( double  _arg)
virtual

Set/Get the epsilon for the time (tolerance for one hour)

◆ SetFileName()

virtual void otb::AeronetFileReader::SetFileName ( const char *  _arg)
virtual

Set the filename

◆ SetHour()

virtual void otb::AeronetFileReader::SetHour ( int  _arg)
virtual

Set/Get the hour value

◆ SetMinute()

virtual void otb::AeronetFileReader::SetMinute ( int  _arg)
virtual

Set/Get the minute value

◆ SetMonth()

virtual void otb::AeronetFileReader::SetMonth ( int  _arg)
virtual

Set/Get the month value

◆ SetYear()

virtual void otb::AeronetFileReader::SetYear ( int  _arg)
virtual

Set/Get the year value

Member Data Documentation

◆ m_Day

int otb::AeronetFileReader::m_Day
private

Day value

Definition at line 173 of file otbAeronetFileReader.h.

◆ m_Epsilon

double otb::AeronetFileReader::m_Epsilon
private

Epsilon to select time

Definition at line 188 of file otbAeronetFileReader.h.

◆ m_FileName

std::string otb::AeronetFileReader::m_FileName
private

File name

Definition at line 170 of file otbAeronetFileReader.h.

◆ m_Hour

int otb::AeronetFileReader::m_Hour
private

Hour value

Definition at line 182 of file otbAeronetFileReader.h.

◆ m_Minute

int otb::AeronetFileReader::m_Minute
private

Minute value

Definition at line 185 of file otbAeronetFileReader.h.

◆ m_Month

int otb::AeronetFileReader::m_Month
private

Month value

Definition at line 176 of file otbAeronetFileReader.h.

◆ m_Year

int otb::AeronetFileReader::m_Year
private

Year value

Definition at line 179 of file otbAeronetFileReader.h.


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