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

◆ read_for_interpolation()

static std::vector<double> pism::io::read_for_interpolation ( const File file,
const std::string &  variable_name,
const Grid internal_grid,
const LocalInterpCtx lic 
)
static

Regrid variable_name from a file, possibly replacing missing values with default_value.

Parameters
fileinput file
variable_namevariable to regrid
internal_gridcomputational grid; used to initialize interpolation

Definition at line 422 of file io_helpers.cc.

References pism::RuntimeError::add_context(), pism::LocalInterpCtx::buffer_size(), compute_start_and_count(), pism::LocalInterpCtx::count, pism::Grid::ctx(), dimension_types(), pism::File::filename(), pism::RuntimeError::formatted(), PISM_ERROR_LOCATION, pism::File::read_double_attribute(), pism::File::read_variable(), pism::File::read_variable_transposed(), pism::LocalInterpCtx::start, and use_transposed_io().

Referenced by regrid_spatial_variable().