extract_slice

pyarts.arts_ext.GriddedFieldExtras.extract_slice(g, s=slice(None, None, None), axis=0)[source]

Return a new gridded field containing a slice of the current one.

Parameters:
  • s (slice) – Slice.

  • axis (int) – Axis to slice along.

Returns:

gf – Gridded field containing sliced grids and data.

Return type:

GriddedField1 or GriddedField2 or GriddedField3 or GriddedField4 or GriddedField5 or GriddedField6