geodata.Mask.filter_layer
=========================

.. py:method:: geodata.Mask.filter_layer(layer_name: str, dest_layer_name: Optional[str] = None, values: Optional[Iterable[float]] = None, min_bound: Optional[float] = None, max_bound: Optional[float] = None, binarize: bool = False)

   Filter a layer of mask object using `filter_raster` method.

   :param layer_name: The name of the layer to be filtered.
   :type layer_name: str
   :param dest_layer_name: The name of the filtered layer. If not specified,
                           the filtered layer will replace the original layer.
   :type dest_layer_name: str
   :param values: The list of numberic values in the raster array to filter out as 1.
                  If not specified, the method will not filter out any values in the raster.
   :type values: list
   :param min_bound: The minimum value in the raster array to filter out as 1.
                     If not specified, the method will not filter out any values lower than the min_bound.
   :type min_bound: float
   :param max_bound: The maximum value in the raster array to filter out as 1
                     If not specified, the method will not filter out any values higher than the max_bound.
   :type max_bound: float
   :param binarize: Whether the method will return 0 and 1 for the raster
   :type binarize: bool

   :raises ValueError: If no values, min_bound, nor max_bound are specified.

