19 #ifndef __VariableMetadata_hh
20 #define __VariableMetadata_hh
27 #include "pism/util/Units.hh"
71 class VariableMetadata;
79 operator std::string()
const;
80 operator double()
const;
81 operator std::vector<double> ()
const;
94 void operator=(
const std::initializer_list<double> &value);
95 void operator=(
const std::vector<double> &value);
132 double get_number(
const std::string &name)
const;
135 std::vector<double>
get_numbers(
const std::string &name)
const;
141 std::string
get_string(
const std::string &name)
const;
162 const std::map<std::string, std::string> &
all_strings()
const;
163 const std::map<std::string, std::vector<double> > &
all_doubles()
const;
191 const std::vector<double> &zlevels = {0.0});
194 const std::vector<double>&
levels()
const;
void operator=(const std::string &value)
ConstAttribute & operator=(const ConstAttribute &)=delete
ConstAttribute(const ConstAttribute &)=delete
std::shared_ptr< System > Ptr
double max(const array::Scalar &input)
Finds maximum over all the values in an array::Scalar object. Ignores ghosts.
double min(const array::Scalar &input)
Finds minimum over all the values in an array::Scalar object. Ignores ghosts.