|
◆ find_variable() [2/2]
VariableLookupData pism::File::find_variable |
( |
const std::string & |
short_name, |
|
|
const std::string & |
std_name |
|
) |
| const |
Find a variable using its standard name and/or short name.
Sets "result" to the short name found.
Definition at line 361 of file File.cc.
References pism::RuntimeError::add_context(), pism::VariableLookupData::exists, filename(), pism::RuntimeError::formatted(), pism::VariableLookupData::found_using_standard_name, m_impl, pism::VariableLookupData::name, pism::File::Impl::nc, nvariables(), PISM_ERROR_LOCATION, read_text_attribute(), and variable_name().
Referenced by pism::IceModel::bootstrap_2d(), pism::IceRegionalModel::bootstrap_2d(), pism::hydrology::SteadyState::bootstrap_impl(), pism::MohrCoulombYieldStress::bootstrap_impl(), pism::calendar_from_file(), pism::OptTillphiYieldStress::define_model_state_impl(), pism::bed::LingleClark::define_model_state_impl(), pism::hydrology::SteadyState::define_model_state_impl(), pism::io::define_spatial_variable(), pism::io::define_time(), pism::io::define_time_bounds(), pism::io::define_timeseries(), dimension_type(), pism::Grid::FromFile(), pism::energy::BTUGrid::FromOptions(), pism::Grid::FromOptions(), pism::get_projection_info(), pism::calving::CalvingAtThickness::init(), pism::AgeModel::init(), pism::array::Forcing::init(), pism::energy::EnergyModel::init_enthalpy(), pism::IceModel::init_extras(), pism::stressbalance::Blatter::init_impl(), pism::stressbalance::SSA::init_impl(), pism::DiagAverageRate< M >::init_impl(), pism::ocean::GivenTH::init_impl(), pism::energy::BTU_Full::init_impl(), pism::bed::LingleClark::init_impl(), pism::array::Forcing::init_periodic_data(), pism::OptTillphiYieldStress::init_t_last(), pism::grid::InputGridInfo::InputGridInfo(), nrecords(), pism::io::read_attributes(), read_dimension(), pism::io::read_spatial_variable(), pism::io::read_time_bounds(), pism::io::read_timeseries(), pism::reference_date_from_file(), pism::regional_grid_from_options(), pism::array::Array::regrid_impl(), pism::array::Array3D::regrid_impl(), pism::details::regrid_layer_thickness(), pism::io::regrid_spatial_variable(), pism::energy::TemperatureModel::restart_impl(), pism::hydrology::SteadyState::restart_impl(), pism::array::Forcing::update(), pism::NetCDFConfig::write_impl(), pism::write_mapping(), pism::write_run_stats(), pism::io::write_spatial_variable(), pism::io::write_time_bounds(), and pism::io::write_timeseries().
|