ILAMB.Regions.Regions.getMask

Regions.getMask(label, var)[source]

Given the region label and a ILAMB.Variable, return a mask appropriate for that variable.

Parameters
  • label (str) – the unique region identifier

  • var (ILAMB.Variable.Variable) – the variable to which we would like to apply a mask

Returns

mask – a boolean array appropriate for masking the input variable data

Return type

numpy.ndarray