10 #include <pybind11/eigen.h>
11 #include <pybind11/pybind11.h>
12 #include <pybind11/stl.h>
25 namespace py = pybind11;
29 py::class_<Has_Variables> hvar(m,
"Has_Variables");
30 hvar.doc() =
"Container for this group's variables";
39 py::arg(
"dtype"), py::arg(
"dimsCur") = std::vector<Dimensions_t>{1},
40 py::arg(
"dimsMax") = std::vector<Dimensions_t>{},
41 py::arg(
"scales") = std::vector<Variable>{},
45 std::ostringstream out;
46 auto names =
g.list();
47 out <<
"<ioda.Has_Variables: [ ";
48 for (
const auto& s : names) out << s <<
" ";
54 std::ostringstream out;
55 auto names =
g.list();
56 out <<
"<ioda.Has_Variables: [ ";
57 for (
const auto& s : names) out << s <<
" ";
Convenience classes for constructing ObsSpaces and setting up new Dimension Scales.
Interfaces for ioda::Group and related classes.
Contains definitions for how data are arranged in ioda internally.
Interfaces for ioda::ObsGroup and related classes.
This class exists inside of ioda::Group and provides the interface to manipulating Variables.
virtual Variable open(const std::string &name) const
Open a Variable by name.
virtual std::vector< std::string > list() const
virtual bool exists(const std::string &name) const
Does a Variable with the specified name exist?
virtual void remove(const std::string &name)
Delete an Attribute with the specified name.
Variable _create_py(const std::string &name, BasicTypes dataType, const std::vector< Dimensions_t > &cur_dimensions={1}, const std::vector< Dimensions_t > &max_dimensions={}, const std::vector< Variable > &dimension_scales={}, const VariableCreationParameters ¶ms=VariableCreationParameters())
Python bindings - macros.
void setupHasVariables(pybind11::module &m)
Used to specify Variable creation-time properties.