20 #include "unsupported/Eigen/CXX11/Tensor"
85 static size_t countRows(
const std::string& sql);
90 double getData(
size_t row,
size_t column)
const;
95 double getData(
size_t row,
const std::string& column)
const;
101 void setData(
size_t row,
size_t column,
double val);
105 void setData(
const std::string& sql);
139 Eigen::ArrayXf
getVarnoColumn(
const std::vector<int>& varnos, std::string
const& column,
140 const int nchans,
const int nchans_actual)
const;
156 void select(
const std::vector<std::string>& columns,
const std::string& filename,
157 const std::vector<int>& varnos,
const std::string& query);
160 std::vector<std::string>
getDates(std::string
const& date_col, std::string
const& time_col)
const;
163 const std::vector<std::string>&
getColumns()
const;
Interfaces for ioda::ObsGroup and related classes.
std::map< int, size_t > varnos_and_levels_
std::vector< std::string > getDates(std::string const &date_col, std::string const &time_col) const
Returns a vector of date strings.
NewDimensionScales_t getVertcos() const
Returns the dimensions for the ODB.
size_t numberOfRowsForVarno(int varno) const
Returns the number of rows for a particular varno.
int getObsgroup() const
Returns the obsgroup number.
Eigen::ArrayXf getMetadataColumn(std::string const &column) const
Returns data for a (metadata) column.
Eigen::ArrayXf getVarnoColumn(const std::vector< int > &varnos, std::string const &column, const int nchans, const int nchans_actual) const
Returns data for a varno for a varno column.
Eigen::ArrayXi getMetadataColumnInt(std::string const &column) const
Returns data for a (metadata) column.
bool hasVarno(int varno) const
Returns true if a particular varno is present.
size_t numberOfMetadataRows() const
Returns the number of "metadata" rows, i.e. hdr-type rows.
ioda::Variable getIodaObsvalue(int varno, ioda::ObsGroup og, ioda::VariableCreationParameters params) const
Returns an ioda variable for a specified column.
std::vector< double > data_
DataFromSQL()
Simple constructor.
void setData(size_t row, size_t column, double val)
Set a value for a row,column element.
std::vector< int > varnos_
std::vector< int > column_types_
ioda::Variable getIodaVariable(std::string const &column, ioda::ObsGroup og, ioda::VariableCreationParameters params) const
Returns an ioda variable for a specified column.
size_t number_of_metadata_rows_
std::vector< std::string > getMetadataStringColumn(std::string const &column) const
Returns data for a (metadata) column.
int getColumnIndex(const std::string &column) const
Returns the index of a specified column.
size_t numberOfLevels(int varno) const
Returns the number of levels for each varno.
static size_t countRows(const std::string &sql)
Returns a count of the rows extracted by an sql.
double getData(size_t row, size_t column) const
Returns the value for a particular row/column.
const std::vector< std::string > & getColumns() const
Returns a vector of columns.
std::vector< std::string > columns_
int getColumnTypeByName(std::string const &column) const
Returns the type of a specified column.
void select(const std::vector< std::string > &columns, const std::string &filename, const std::vector< int > &varnos, const std::string &query)
Populate structure with data from specified columns, file and varnos.
An ObsGroup is a specialization of a ioda::Group. It provides convenience functions and guarantees th...
Common preprocessor definitions used throughout IODA.
static constexpr int obsgroup_ssmis
static constexpr int obsgroup_aircraft
static constexpr int obsgroup_gmilow
static constexpr int varno_rawsca
static constexpr int varno_bending_angle
static constexpr int odb_type_string
static constexpr int obsgroup_surfacecloud
static constexpr int obsgroup_abiclr
static constexpr int varno_rawbt_hirs
static constexpr int obsgroup_sonde
static constexpr int obsgroup_gpsro
static constexpr int obsgroup_iasi
static constexpr int varno_cloud_fraction_covered
static constexpr int odb_type_real
static constexpr int varno_rawbt_amsu
static constexpr int obsgroup_atms
static constexpr int obsgroup_atovs
static constexpr int obsgroup_airs
static constexpr int varno_rawbt_mwts
static constexpr int obsgroup_ahiclr
static constexpr int obsgroup_cris
static constexpr int odb_missing_int
static constexpr int obsgroup_seviriclr
static constexpr int obsgroup_mwsfy3
static constexpr float odb_missing_float
static constexpr int odb_type_int
static constexpr int obsgroup_amsr
static constexpr int varno_rawbt_mwhs
static constexpr int obsgroup_mwri
static constexpr int obsgroup_gmihigh
static constexpr int obsgroup_hiras
static constexpr int varno_u_amb
static constexpr int varno_rawbt_amsr_89ghz
static constexpr int obsgroup_geocloud
static constexpr int varno_dd
static constexpr int odb_type_bitfield
static constexpr int varno_rawbt
static constexpr int obsgroup_scatwind
std::vector< std::shared_ptr< NewDimensionScale_Base > > NewDimensionScales_t
Used to specify Variable creation-time properties.