semantique.processor.operators.is_missing_

Contents

semantique.processor.operators.is_missing_#

semantique.processor.operators.is_missing_(x, track_types=True, **kwargs)[source]#

Test if x is a missing observation.

Missing values can occur because of several reasons:

  • The observed value is removed by the filter verb.

  • The observed value is erroneous.

  • The area of interest spans multiple orbits. In practice this means that the timestamps at which observations where made differ within the area of interest. The time dimensions contains all these timestamps as coordinates. For a single location in space, the time coordinates at which no observation was made are filled with null values (i.e. the observation is marked as “missing”).

Parameters:
  • x (xarray.DataArray) – Array containing the values to apply the operator to.

  • track_types (bool) – Should the operator promote the value type of the output object, based on the value type of the input object?

  • **kwargs – Ignored.

Returns:

xarray.DataArray – An array with the same shape as x containing the results of all evaluated expressions.

Note

When tracking value types, this operator uses the following type promotion manual, with the keys being the supported value types of x, and the corresponding value being the promoted value type of the output.

{'binary': 'binary', 'continuous': 'binary', 'discrete': 'binary', 'nominal': 'binary', 'ordinal': 'binary', 'coords': 'binary', 'datetime': 'binary'}