compass.landice.extrapolate.extrapolate_variable

compass.landice.extrapolate.extrapolate_variable(nc_file, var_name, extrap_method, set_value=None)[source]

Function to extrapolate variable values into undefined regions

Parameters:
  • nc_file (str) – the mpas file to modify

  • var_name (str) – the mpas variable to extrapolate

  • extrap_method (str) – idw, min, or value method of extrapolation

  • set_value (float) – value to set variable to outside keepCellMask when using -v value