nctoolkit.DataSet.clip

DataSet.clip(self, lon=[- 180, 180], lat=[- 90, 90], nco=False)

Clip to a rectangular longitude and latitude box

Parameters
  • lon (list) – The longitude range to select. This must be two variables, between -180 and 180 when nco = False.

  • lat (list) – The latitude range to select. This must be two variables, between -90 and 90 when nco = False.

  • nco (boolean) – Do you want this to use NCO for clipping? Defaults to False, and uses CDO. Set to True if you want to call NCO. NCO is typically better at handling very large horizontal grids.