geodata.mask.apply_fn_to_raster
===============================

.. py:function:: geodata.mask.apply_fn_to_raster(raster: rasterio.DatasetReader, fn: callable)

   Apply a custom function to individual values in the raster array.

   :param raster: The source raster.
   :type raster: ras.DatasetReader
   :param fn: A function/method to be applied to the raster array
              the function needs map individual values to another.
              This callable will be JIT compiled, if possible.
   :type fn: callable
   :param kwargs: the arguments to be passed to the function

   return: (ras.DatasetReader) The updated raster

