PISM, A Parallel Ice Sheet Model  stable v2.0.4 committed by Constantine Khrulev on 2022-05-25 12:02:27 -0800

◆ set_attrs()

void pism::IceModelVec::set_attrs ( const std::string &  pism_intent,
const std::string &  long_name,
const std::string &  units,
const std::string &  glaciological_units,
const std::string &  standard_name,
unsigned int  component 
)

Sets NetCDF attributes of an IceModelVec object.

Call set_attrs("new pism_intent", "new long name", "new units", "") if a variable does not have a standard name. Similarly, by putting "" in an appropriate spot, it is possible tp leave long_name, units or pism_intent unmodified.

If units != "", this also resets glaciological_units, so that they match internal units.

Definition at line 399 of file iceModelVec.cc.

References pism::IceModelVec::Impl::grid, m_impl, and metadata().

Referenced by pism::AgeModel::AgeModel(), pism::IceModel::allocate_storage(), pism::IceRegionalModel::allocate_storage(), pism::IceCompModel::allocate_storage(), pism::bed::BedDef::apply_topg_offset(), pism::bed::BedDef::BedDef(), pism::stressbalance::BedSmoother::BedSmoother(), pism::energy::BedThermalUnit::BedThermalUnit(), pism::hydrology::Distributed::bootstrap_impl(), pism::energy::compute_cts(), pism::energy::compute_liquid_water_fraction(), pism::hydrology::Distributed::Distributed(), pism::calving::EigenCalving::EigenCalving(), pism::hydrology::EmptyingProblem::EmptyingProblem(), pism::energy::EnergyModel::EnergyModel(), pism::energy::EnthalpyModel_Regional::EnthalpyModel_Regional(), pism::surface::FaustoGrevePDDObject::FaustoGrevePDDObject(), pism::surface::ForceThickness::ForceThickness(), pism::FractureDensity::FractureDensity(), pism::frontalmelt::FrontalMelt::FrontalMelt(), pism::FrontRetreat::FrontRetreat(), pism::Geometry::Geometry(), pism::bed::Given::Given(), pism::calving::HayhurstCalving::HayhurstCalving(), pism::hydrology::Hydrology::Hydrology(), pism::icebin::IBSurfaceModel::IBSurfaceModel(), pism::GeometryEvolution::Impl::Impl(), pism::energy::EnergyModel::init_enthalpy(), pism::surface::ForceThickness::init_impl(), pism::surface::InitializationHelper::InitializationHelper(), pism::inverse::IP_SSATaucForwardProblem::IP_SSATaucForwardProblem(), pism::surface::ISMIP6::ISMIP6(), pism::bed::LingleClark::LingleClark(), main(), pism::icebin::MassEnergyBudget::MassEnergyBudget(), pism::MohrCoulombYieldStress::MohrCoulombYieldStress(), pism::OptTillphiYieldStress::OptTillphiYieldStress(), pism::ocean::Pico::Pico(), pism::ocean::PicoGeometry::PicoGeometry(), pism::RegionalGeometryEvolution::RegionalGeometryEvolution(), pism::RegionalYieldStress::restart_impl(), pism::hydrology::Routing::Routing(), pism::ocean::sea_level::SeaLevel::SeaLevel(), pism::icebin::MassEnthVec2S::set_attrs(), pism::stressbalance::ShallowStressBalance::ShallowStressBalance(), pism::stressbalance::SSA::SSA(), pism::stressbalance::SSAFD::SSAFD(), pism::stressbalance::SSAFEM::SSAFEM(), pism::stressbalance::SSATestCase::SSATestCase(), pism::stressbalance::SSB_Modifier::SSB_Modifier(), pism::stressbalance::StressBalance::StressBalance(), pism::calving::StressCalving::StressCalving(), pism::hydrology::diagnostics::SubglacialWaterFlux::SubglacialWaterFlux(), pism::surface::TemperatureIndex::TemperatureIndex(), pism::energy::TemperatureModel::TemperatureModel(), pism::diagnostics::TendencyOfIceAmount::TendencyOfIceAmount(), pism::diagnostics::ThicknessRateOfChange::ThicknessRateOfChange(), pism::stressbalance::SSAFD::update_nuH_viewers(), pism::calving::vonMisesCalving::vonMisesCalving(), pism::stressbalance::SSATestCase::write(), pism::atmosphere::YearlyCycle::YearlyCycle(), and pism::YieldStress::YieldStress().