PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ nrecords() [2/2]

unsigned int pism::File::nrecords ( const std::string &  name,
const std::string &  std_name,
units::System::Ptr  unit_system 
) const

Get the number of records of a certain variable. Uses the length of an associated "time" dimension.

Definition at line 332 of file File.cc.

References pism::RuntimeError::add_context(), dimension_length(), dimension_type(), dimensions(), filename(), find_variable(), and pism::T_AXIS.