|
◆ read_text_attribute()
std::string pism::File::read_text_attribute |
( |
const std::string & |
var_name, |
|
|
const std::string & |
att_name |
|
) |
| const |
Get a text attribute.
Definition at line 645 of file File.cc.
References pism::RuntimeError::add_context(), attribute_type(), pism::RuntimeError::formatted(), m_impl, name(), pism::File::Impl::nc, pism::io::PISM_CHAR, PISM_ERROR_LOCATION, and pism::io::PISM_NAT.
Referenced by append_history(), pism::calendar_from_file(), dimension_type(), find_variable(), pism::MappingInfo::FromFile(), pism::grid::Parameters::FromGridDefinition(), pism::get_proj_parameters(), pism::grid_name(), pism::Time::init_from_file(), pism::hydrology::SteadyState::init_time(), pism::grid::InputGridInfo::InputGridInfo(), pism::IceModel::misc_setup(), pism::io::read_1d_variable(), pism::io::read_attributes(), pism::io::read_bounds(), read_double_attribute(), pism::ConfigJSON::read_impl(), pism::io::read_spatial_variable(), pism::io::read_time_info(), pism::reference_date_from_file(), pism::io::regrid_spatial_variable(), and pism::IceModel::write_metadata().
|