|
PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
|
Spatial NetCDF variable (corresponding to a 2D or 3D scalar field). More...
#include <VariableMetadata.hh>
Inheritance diagram for pism::SpatialVariableMetadata:Public Member Functions | |
| SpatialVariableMetadata (units::System::Ptr system, const std::string &name, const std::vector< double > &zlevels={0.0}) | |
| virtual | ~SpatialVariableMetadata ()=default |
| const std::vector< double > & | levels () const |
| VariableMetadata & | x () |
| VariableMetadata & | y () |
| VariableMetadata & | z () |
| const VariableMetadata & | x () const |
| const VariableMetadata & | y () const |
| const VariableMetadata & | z () const |
Public Member Functions inherited from pism::VariableMetadata | |
| VariableMetadata (const std::string &name, units::System::Ptr system, unsigned int ndims=0) | |
| virtual | ~VariableMetadata ()=default |
| Attribute | operator[] (const std::string &name) |
| ConstAttribute | operator[] (const std::string &name) const |
| VariableMetadata & | long_name (const std::string &input) |
| VariableMetadata & | standard_name (const std::string &input) |
| VariableMetadata & | units (const std::string &input) |
| VariableMetadata & | output_units (const std::string &input) |
| double | get_number (const std::string &name) const |
| Get a single-valued scalar attribute. | |
| VariableMetadata & | set_number (const std::string &name, double value) |
| Set a scalar attribute to a single (scalar) value. | |
| std::vector< double > | get_numbers (const std::string &name) const |
| Get an array-of-doubles attribute. | |
| VariableMetadata & | set_numbers (const std::string &name, const std::vector< double > &values) |
| Set a scalar attribute to a single (scalar) value. | |
| std::string | get_name () const |
| VariableMetadata & | set_name (const std::string &name) |
| std::string | get_string (const std::string &name) const |
| Get a string attribute. | |
| VariableMetadata & | set_string (const std::string &name, const std::string &value) |
| Set a string attribute. | |
| VariableMetadata & | set_units_without_validation (const std::string &value) |
| bool | get_time_independent () const |
| VariableMetadata & | set_time_independent (bool flag) |
| io::Type | get_output_type () const |
| VariableMetadata & | set_output_type (io::Type type) |
| VariableMetadata & | clear () |
| Clear all attributes. | |
| units::System::Ptr | unit_system () const |
| unsigned int | n_spatial_dimensions () const |
| bool | has_attribute (const std::string &name) const |
| bool | has_attributes () const |
| const std::map< std::string, std::string > & | all_strings () const |
| const std::map< std::string, std::vector< double > > & | all_doubles () const |
| void | report_to_stdout (const Logger &log, int verbosity_threshold) const |
| void | check_range (const std::string &filename, double min, double max) const |
Check if the range [min, max] is a subset of [valid_min, valid_max]. | |
| void | report_range (const Logger &log, double min, double max) const |
Report the range of a global Vec v. | |
Private Attributes | |
| VariableMetadata | m_x |
| VariableMetadata | m_y |
| VariableMetadata | m_z |
| std::vector< double > | m_zlevels |
Additional Inherited Members | |
Protected Attributes inherited from pism::VariableMetadata | |
| unsigned int | m_n_spatial_dims |
Spatial NetCDF variable (corresponding to a 2D or 3D scalar field).
Definition at line 187 of file VariableMetadata.hh.