SNOWPACK 3.7.0
CaaMLIO Class Reference

Detailed Description

Reading snow profile data in CAAML format. Reads in CAAML snow profile data, the CAA-IACS international standard.

Author
Charles Fierz (Mathias Bavay)
Date
2014

#include <CaaMLIO.h>

Public Member Functions

 CaaMLIO (const SnowpackConfig &i_cfg, const RunInfo &run_info)
 
 CaaMLIO (const CaaMLIO &)
 
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)
 
- 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
 

Constructor & Destructor Documentation

◆ CaaMLIO() [1/2]

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

◆ CaaMLIO() [2/2]

CaaMLIO::CaaMLIO ( const CaaMLIO )

Member Function Documentation

◆ readSnowCover()

void CaaMLIO::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.

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

Implements SnowpackIOInterface.

◆ snowCoverExists()

bool CaaMLIO::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 CaaMLIO::writeHazardData ( const std::string &  stationID,
const std::vector< ProcessDat > &  Hdata,
const std::vector< ProcessInd > &  Hdata_ind,
const size_t &  num 
)
virtual

Implements SnowpackIOInterface.

◆ writeProfile()

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

Implements SnowpackIOInterface.

◆ writeSnowCover()

void CaaMLIO::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.

Parameters
datecurrent
Xdata
Zdata
forbackupdump Xdata on the go

Implements SnowpackIOInterface.

◆ writeTimeSeries()

void CaaMLIO::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: