refine_grid

pyarts.arts_ext.GriddedFieldExtras.refine_grid(gin, new_grid, axis=0, type='linear', hidden_kwargs={})[source]

Interpolate GriddedField axis to a new grid.

This function replaces a grid of a GriddField and interpolates all data to match the new coordinates. scipy.interpolate.interp1d() is used for interpolation.

Parameters:
  • new_grid (numpy.ndarray) – The coordinates of the interpolated values.

  • axis (int) – Specifies the axis of data along which to interpolate. Interpolation defaults to the first axis of the gridded field.

  • type (str or function) – Rescaling type for function if str or rescaling function

Returns:

gf – gridded field

Return type:

GriddedField1 or GriddedField2 or GriddedField3 or GriddedField4 or GriddedField5 or GriddedField6