# This file contains metadata for your plugin.

# This file should be included when you package your plugin.
# Mandatory items:

[general]
name=Cloud removal from sentinel 2
qgisMinimumVersion=3.22
qgisMaximumVersion=4.99
description=Builds a cloud-free Sentinel-2 mosaic for a date range, over a Vietnamese province or commune or over a rectangle drawn anywhere.

version=0.5
author=GFD
email=hoa.lq@gfd.com.vn

about=Searches Sentinel-2 surface reflectance (COPERNICUS/S2_SR_HARMONIZED), masks clouds with COPERNICUS/S2_CLOUD_PROBABILITY at a threshold you set, and mosaics the date range into one composite. The area of interest is a Vietnamese administrative unit (province or commune, 2025 units, read from bundled GeoJSON and searchable by typing) or a rectangle drawn on the canvas, which works worldwide. A preview gallery shows one thumbnail per acquisition day with its cloud cover, so a cloudy range can be narrowed before downloading. RGB, NDVI and NBR are added to the map and can be exported to Google Drive. The interface is bilingual, English and Vietnamese. Requirements: this plugin does not process imagery locally, it needs the "Google Earth Engine" plugin installed in the same QGIS profile, signed in with a registered Earth Engine account, plus an internet connection. Exports are written to the Google Drive of that account and run as Earth Engine tasks. Restrictions: the bundled administrative boundaries cover Vietnam only, other regions must use the rectangle tool. Developed by GFD (http://gfd.com.vn/)

tracker=https://github.com/lequynhhoa/s2_download/issues
repository=https://github.com/lequynhhoa/s2_download
# End of mandatory metadata

# Recommended items:

hasProcessingProvider=no

changelog=0.5 - Rectangle tool: "Preview" and "OK" are available straight away, since the
      drawn rectangle already is the area. The file name box only turns on once an
      output is ticked for export.
    - Boundary tool: the commune list holds communes only and is ready for typing as
      soon as a province is chosen; leaving it empty takes the whole province.
    - Quieter dialogs: the "pick a province" and "provinces ready" lines are gone, and
      the warning line only appears when something is actually wrong.
    - First release published on plugins.qgis.org: the package now ships its GPL-2
      LICENSE and a real README, and the leftover Plugin Builder notes are gone.
    0.4 - "Preview" and "OK" stay disabled until the inputs are complete, and a line
      above the buttons says what is still missing. No province is preselected any more.
    - Previews are much faster again: they run over the bounding box of the area,
      resolved once into plain coordinates, and the date list is a single metadata
      request instead of a cloud reduction per day.
    0.3 - The province and commune lists can be searched by typing, with or without
      accents, and anywhere in the name ("hue" finds "Thành phố Huế").
    - Much faster searches and previews: both Sentinel-2 collections are now filtered
      before they are joined, instead of joining the whole archive first.
    - Preview thumbnails are fetched in parallel over a simplified area of interest, so
      the gallery fills in seconds rather than one image at a time.
    0.2 - New "Preview" gallery: one true colour thumbnail per acquisition day with
      its cloud cover, and a shortcut to search that single day.
    - Fixed NDVI and NBR: palettes are proper colour lists, exports use a server side
      region, a larger pixel budget and transliterated task names, so the two index
      products no longer fail on Google Drive.
    - The rectangle tool no longer needs a second click after using the boundary tool.
    - Both date bounds are inclusive.
    0.1 - Busy window while Earth Engine runs, plus a message telling the user which
      files are being exported to the Google Drive of the signed-in account.
    - Only the RGB composite is switched on when layers are added; NDVI and NBR come in
      unchecked.
    - Dates can only be picked from the calendar, not typed.
    - Resizable dialogs with colour coded sections and a themed calendar popup.
    - Runs on QGIS 4 (Qt6) and QGIS 3: scoped enums, icons loaded from disk
      instead of compiled Qt resources, guarded Earth Engine imports.
    - Two-level Vietnam administrative boundaries (province / commune, 2025) read from
      bundled GeoJSON instead of a remote API.
    - Cloud masking with COPERNICUS/S2_CLOUD_PROBABILITY, threshold adjustable in the UI.
    - Redesigned dialogs with progress feedback while boundaries load, palette aware so
      they match the QGIS light and dark themes.

# Tags are comma separated with spaces allowed
tags=sentinel2, sentinel-2, cloud, cloud mask, cloud removal, mosaic, composite, ndvi, nbr, earth engine, google earth engine, remote sensing, satellite, raster, vietnam

homepage=https://github.com/lequynhhoa/s2_download
category=Plugins
icon=icon.png
# experimental flag
experimental=False

# deprecated flag (applies to the whole plugin, not just a single version)
deprecated=False

# Since QGIS 3.8, a comma separated list of plugins to be installed
# (or upgraded) can be specified.
# Check the documentation for more information.
plugin_dependencies=Google Earth Engine

# Python packages needed at runtime. They come with the "Google Earth Engine"
# plugin above, this only spells out what the plugin actually imports.
external_deps=earthengine-api

# If the plugin can run on QGIS Server.
server=False

