NetCDF Timestamp Mapper  1.0
Maps timestamps (and variables) to netCDF files using sqlite3.
tsm::ds::DatasetDesc Class Reference

#include <DatasetDesc.hpp>

Public Member Functions

 DatasetDesc (const std::vector< std::filesystem::path > &filePaths, const DATASET_TYPE type)
 
auto operator! () const
 
auto isHistorical () const noexcept
 
auto isForecast () const noexcept
 

Private Member Functions

std::optional< netCDF::NcFile > openNCFile (const std::filesystem::path &path) const
 
std::optional< std::string > findTimeDim (const netCDF::NcFile &ncFile) const
 
std::optional< std::vector< timestamp_t > > getTimestampValues (const netCDF::NcFile &ncFile) const
 
std::vector< VariableDescgetNCFileVariables (const netCDF::NcFile &ncFile) const
 
void createAndAppendNCFileDesc (const std::filesystem::path &path)
 

Private Attributes

std::vector< NCFileDescm_ncFiles
 
const DATASET_TYPE m_datasetType
 

Friends

class ::tsm::Database
 

Constructor & Destructor Documentation

tsm::ds::DatasetDesc::DatasetDesc ( const std::vector< std::filesystem::path > &  filePaths,
const DATASET_TYPE  type 
)
explicit

Member Function Documentation

void tsm::ds::DatasetDesc::createAndAppendNCFileDesc ( const std::filesystem::path &  path)
private
std::optional< std::string > tsm::ds::DatasetDesc::findTimeDim ( const netCDF::NcFile &  ncFile) const
inlineprivate
std::vector< VariableDesc > tsm::ds::DatasetDesc::getNCFileVariables ( const netCDF::NcFile &  ncFile) const
private
std::optional< std::vector< timestamp_t > > tsm::ds::DatasetDesc::getTimestampValues ( const netCDF::NcFile &  ncFile) const
private
auto tsm::ds::DatasetDesc::isForecast ( ) const
inlinenoexcept
auto tsm::ds::DatasetDesc::isHistorical ( ) const
inlinenoexcept
std::optional< netCDF::NcFile > tsm::ds::DatasetDesc::openNCFile ( const std::filesystem::path &  path) const
private
auto tsm::ds::DatasetDesc::operator! ( ) const
inline

Friends And Related Function Documentation

friend class ::tsm::Database
friend

Member Data Documentation

const DATASET_TYPE tsm::ds::DatasetDesc::m_datasetType
private
std::vector<NCFileDesc> tsm::ds::DatasetDesc::m_ncFiles
private

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