geodata.Mask.save_mask
======================

.. py:method:: geodata.Mask.save_mask(name: Optional[str] = None, mask_dir: Optional[str] = None, close_files: bool = False)

   Save a mask object to the directory. By default, the directory should be the
   MASK_DIR in config.py.

   **Note**: It is recommended that multiple masks would not be opened
   at the same time to avoid permission issues.

   :param name: Name of the mask object to be saved.
                If not specified, use the name stored in this object.
   :type name: str
   :param mask_dir: Path to save the mask to. By default, use the value in mask_dir attribute.
   :type mask_dir: str
   :param close_files: Whether the program will close all the opened raster files after saving them.
                       This will disable further save_mask() call. False by default.
   :type close_files: bool

