PISM, A Parallel Ice Sheet Model 2.3.0-79cae578d committed by Constantine Khrulev on 2026-03-22
Loading...
Searching...
No Matches

◆ define_dimensions()

std::vector< std::string > pism::OutputWriter::define_dimensions ( const std::string &  file_name,
const VariableMetadata variable 
)
protected

Define dimensions corresponding to a variable. If a dimension has the corresponding coordinate variable this method will define both the dimension and coordinate variable.

Returns the list of dimension names for variable that can be used to define it. (A NetCDF variable may depend on other dimensions in addition to the ones in variable, for example the time dimension or the dimension corresponding to "output.experiment_id")

Definition at line 218 of file OutputWriter.cc.

References define_dimension(), define_variable(), pism::VariableMetadata::dimension_names(), pism::VariableMetadata::dimensions(), pism::OutputWriter::Impl::experiment_id, pism::OutputWriter::Impl::experiment_id_max_length, pism::OutputWriter::Impl::experiment_id_name, pism::VariableMetadata::get_name(), pism::VariableMetadata::get_time_dependent(), m_impl, pism::io::PISM_CHAR, pism::set_member(), time_name(), and pism::VariableMetadata::unit_system().

Referenced by define_variable().