SNOWPACK 3.7.0
SmetIO Class Reference

#include <SmetIO.h>

Public Member Functions

 SmetIO (const SnowpackConfig &i_cfg, const RunInfo &run_info)
 
 SmetIO (const SmetIO &)
 
 ~SmetIO ()
 
SmetIOoperator= (const SmetIO &)
 Assignement operator, required because of pointer member. More...
 
virtual bool snowCoverExists (const std::string &i_snowfile, const std::string &stationID) const
 This routine checks if the specified snow cover data exists. More...
 
virtual void readSnowCover (const std::string &i_snowfile, const std::string &stationID, SN_SNOWSOIL_DATA &SSdata, ZwischenData &Zdata, const bool &read_salinity)
 This routine reads the status of the snow cover at program start. More...
 
virtual void writeSnowCover (const mio::Date &date, const SnowStation &Xdata, const ZwischenData &Zdata, const bool &forbackup=false)
 This routine writes the status of the snow cover at program termination and at specified backup times. More...
 
virtual void writeTimeSeries (const SnowStation &Xdata, const SurfaceFluxes &Sdata, const CurrentMeteo &Mdata, const ProcessDat &Hdata, const double wind_trans24)
 
virtual void writeProfile (const mio::Date &date, const SnowStation &Xdata)
 
virtual bool writeHazardData (const std::string &stationID, const std::vector< ProcessDat > &Hdata, const std::vector< ProcessInd > &Hdata_ind, const size_t &num)
 
mio::Date read_hazsmet (const std::string &hazfilename, ZwischenData &Zdata)
 
- Public Member Functions inherited from SnowpackIOInterface
virtual ~SnowpackIOInterface ()
 
virtual bool snowCoverExists (const std::string &i_snowfile, const std::string &stationID) const =0
 
virtual void readSnowCover (const std::string &i_snowfile, const std::string &stationID, SN_SNOWSOIL_DATA &SSdata, ZwischenData &Zdata, const bool &read_salinity)=0
 
virtual void writeSnowCover (const mio::Date &date, const SnowStation &Xdata, const ZwischenData &Zdata, const bool &forbackup=false)=0
 
virtual void writeTimeSeries (const SnowStation &Xdata, const SurfaceFluxes &Sdata, const CurrentMeteo &Mdata, const ProcessDat &Hdata, const double wind_trans24)=0
 
virtual void writeProfile (const mio::Date &date, const SnowStation &Xdata)=0
 
virtual bool writeHazardData (const std::string &stationID, const std::vector< ProcessDat > &Hdata, const std::vector< ProcessInd > &Hdata_ind, const size_t &num)=0
 

Static Public Member Functions

static void writeHazFile (const std::string &hazfilename, const mio::Date &date, const SnowStation &Xdata, const ZwischenData &Zdata)
 

Constructor & Destructor Documentation

◆ SmetIO() [1/2]

SmetIO::SmetIO ( const SnowpackConfig i_cfg,
const RunInfo run_info 
)

◆ SmetIO() [2/2]

SmetIO::SmetIO ( const SmetIO )

◆ ~SmetIO()

SmetIO::~SmetIO ( )

Member Function Documentation

◆ operator=()

SmetIO & SmetIO::operator= ( const SmetIO source)

Assignement operator, required because of pointer member.

◆ read_hazsmet()

mio::Date SmetIO::read_hazsmet ( const std::string &  hazfilename,
ZwischenData Zdata 
)

◆ readSnowCover()

void SmetIO::readSnowCover ( const std::string &  i_snowfile,
const std::string &  stationID,
SN_SNOWSOIL_DATA SSdata,
ZwischenData Zdata,
const bool &  read_salinity 
)
virtual

This routine reads the status of the snow cover at program start.

Version
11.02
Parameters
i_snowfilefile containing the initial state of the snowpack
stationID
SSdata
Zdata
read_salinity

Implements SnowpackIOInterface.

◆ snowCoverExists()

bool SmetIO::snowCoverExists ( const std::string &  i_snowfile,
const std::string &  stationID 
) const
virtual

This routine checks if the specified snow cover data exists.

Parameters
i_snowfilefile containing the initial state of the snowpack
stationID
Returns
true if the file exists

Implements SnowpackIOInterface.

◆ writeHazardData()

bool SmetIO::writeHazardData ( const std::string &  stationID,
const std::vector< ProcessDat > &  Hdata,
const std::vector< ProcessInd > &  Hdata_ind,
const size_t &  num 
)
virtual

Implements SnowpackIOInterface.

◆ writeHazFile()

void SmetIO::writeHazFile ( const std::string &  hazfilename,
const mio::Date &  date,
const SnowStation Xdata,
const ZwischenData Zdata 
)
static

◆ writeProfile()

void SmetIO::writeProfile ( const mio::Date &  date,
const SnowStation Xdata 
)
virtual

Implements SnowpackIOInterface.

◆ writeSnowCover()

void SmetIO::writeSnowCover ( const mio::Date &  date,
const SnowStation Xdata,
const ZwischenData Zdata,
const bool &  forbackup = false 
)
virtual

This routine writes the status of the snow cover at program termination and at specified backup times.

Version
11.02
Parameters
datecurrent
Xdata
Zdata
forbackupdump Xdata on the go

Implements SnowpackIOInterface.

◆ writeTimeSeries()

void SmetIO::writeTimeSeries ( const SnowStation Xdata,
const SurfaceFluxes Sdata,
const CurrentMeteo Mdata,
const ProcessDat Hdata,
const double  wind_trans24 
)
virtual

Implements SnowpackIOInterface.


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