Regrid from a NetCDF file into a distributed array output
.
- if
flag
is CRITICAL
or CRITICAL_FILL_MISSING
, stops if the variable was not found in the input file
- if
flag
is one of CRITICAL_FILL_MISSING
and OPTIONAL_FILL_MISSING
, replace _FillValue with default_value
.
- sets
v
to default_value
if flag
is OPTIONAL
and the variable was not found in the input file
- uses the last record in the file
Definition at line 793 of file io_helpers.cc.
References pism::Profiling::begin(), pism::units::Converter::convert_doubles(), pism::Grid::ctx(), pism::Profiling::end(), pism::File::find_variable(), pism::VariableMetadata::get_name(), pism::VariableMetadata::get_string(), pism::Logger::message(), pism::VariableLookupData::name, read_for_interpolation(), pism::File::read_text_attribute(), read_valid_range(), regrid(), pism::VariableMetadata::unit_system(), pism::Grid::xm(), pism::Grid::ym(), and pism::LocalInterpCtx::z.
Referenced by pism::array::Forcing::init_periodic_data(), pism::array::Array::regrid_impl(), pism::array::Array3D::regrid_impl(), pism::details::regrid_layer_thickness(), and pism::array::Forcing::update().