PISM, A Parallel Ice Sheet Model 2.2.2-d6b3a29ca committed by Constantine Khrulev on 2025-03-28
Loading...
Searching...
No Matches

◆ time_dimension()

std::string pism::io::time_dimension ( units::System::Ptr  unit_system,
const File file,
const std::string &  variable_name 
)

Return the name of the time dimension corresponding to a NetCDF variable.

Returns an empty string if this variable is time-independent.

Definition at line 1269 of file io_helpers.cc.

References pism::File::dimension_type(), pism::File::dimensions(), and pism::T_AXIS.

Referenced by pism::array::Forcing::init(), and pism::hydrology::SteadyState::init_time().