PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ 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().