geodata.mask.open_tif
=====================

.. py:function:: geodata.mask.open_tif(layer_path: str, show_raster: bool = True, close: bool = False) -> rasterio.DatasetReader

   Open a layer using rasterio given a file path.

   :param layer_path: The path to the TIFF file.
   :type layer_path: str
   :param show_raster: Whether the method will plot the raster. True by default.
   :type show_raster: bool
   :param close: Whether the method will close the raster afterward, prevent possible permission errors.
                 False by default.
   :type close: bool

   :returns: The opened raster.
   :rtype: rasterio.DatasetReader

   :raises FileNotFoundError: If the layer_path does not exist.

