Read a variable from a file into an array output
.
This also converts data from input units to internal units if needed.
Definition at line 528 of file io_helpers.cc.
References pism::axis_type_from_string(), pism::units::Converter::convert_doubles(), pism::Grid::ctx(), pism::File::dimension_type(), pism::File::dimensions(), pism::File::filename(), pism::File::find_variable(), pism::RuntimeError::formatted(), pism::VariableMetadata::get_name(), pism::VariableMetadata::get_string(), pism::join(), pism::k, pism::SpatialVariableMetadata::levels(), pism::array::max(), pism::Logger::message(), PISM_ERROR_LOCATION, read_distributed_array(), pism::File::read_double_attribute(), pism::File::read_text_attribute(), pism::T_AXIS, pism::VariableMetadata::unit_system(), pism::X_AXIS, pism::Grid::xm(), pism::Y_AXIS, pism::Grid::ym(), pism::SpatialVariableMetadata::z(), and pism::Z_AXIS.
Referenced by pism::array::Array::read_impl().