# Known issues
 - The SAFE and L2A product previews are not gamma-corrected and can be too dark
 - The SAFE validation step flags as invalid products with even a single tile having a low-variance band as invalid (`NOTV`)
 - The website has display issues on Safari
 - When deleting a site, the folders for the L2A products that were not processed by MACCS are not deleted and should be deleted manually. Normally these folders contain no valid product and contain only log and EEF files.
 - When executing seasons from the past, the automatic scheduled jobs might be executed before having all the products pre-processed
 - The L4C jobs are marked as finished with success even if there were no products as input.
 - The old marker products are not overwritten
 - The L4A markers are computed only when the L4A processor runs
 - New L4A markers are added for custom jobs
 - The HTTP API only returns markers from the most recent product
 - Filtering of products in Products Browser is not working for interval mode
 - Upload for sites with multiple seasons is not working

# Change Log

## [4.0]


### Added
- Tillage processor
- For new installation, the Postgis 18-3.6 is used

### Changed
- S1 pre-processing is using SNAP 13, supporting S1C and S1D
- The system is now running on Alma and Rocky Linux
- Crop Type processor optimizations


## [4.0]


### Added
- Heterogeneity processor
- Bare soil processor
- Change detection processor
- Datasource for Copernicus DAS
- Datasources for ASF (S1) and LSA (S2) 
- For new installation, the Postgis 16-3.4 is used

### Changed
- Removed the SciHub datasource

## [3.2]

### Added
- Support for Sen2Cor ESA created L2As for BOA add offset.
- Added support for computing median, p25, p7 and min/max in MDB1 markers.
- Added computation of NDWI and brightness in the L3B processor
- Added extraction for NDWI and brightness in the MDB processor
- Automatic detection for S1B presence and automatic configuration of S1 master and interval (operation performed per site).

### Changed
- Enhanced site creation dialog. Now the uploaded extents can be seen on a map and sites can be drawn
- L4A custom jobs allows now selecting an interval instead from a list of L2A products.

### Fixed
- Updates for the Creodias datasource in order to accommodate new changes in the Finder API and S1 products re-organization.
- USGS datasource updates for retrieving products after 20th of October (API changes)
- Automatic scheduled processors are not triggered anymore is all input products are not processed. Not enabled by default (see SUM 3.3.3.4).

## [3.1]

### Added
- Support for MAJA 4.5.4

### Changed
- The GIPP files need to be updated with the newer version that can be found on project website, for MAJA 4.5.4

### Fixed
- Updated the "required" flag of the processors in order to reflect it in the site automated processors selection


## [3.0]

### Added
- Tiled raster and vector products visualisation in the Products Browser
- System configurator in the web interface
- MDB3 markers are now generated by the MDB1 processor without the need of uploading L4C input tables
- Docker image for grassland mowing processor
- Support for L2A pre-processing with Sen2Cor

### Changed
- The web interface of the Sen4CAP system has been reworked (PHP has been removed)
- Miniconda is no longer needed by the L4B processor
- Docker image for SNAP8 SAR pre-processing has been updated to have the latest SNAP modules updates
- REST API updates to support administrative operations
- LPIS import is more resilient in the presence of invalid geometries
- No need to install MAJA locally as it is run from a docker container

### Fixed
- Datasource fixes related to credential persistence
- Fix mismatched column names in L4A marker files

## [2.0]
### Added
- The tillage processor
- Docker containerization for sen2agri-processors and MAJA
- Marker database and REST API for accessing it
- Possibility to use MAJA 4 or Sen2Cor for L2A pre-processing
- Posibility to use SNAP 8 in a docker container and use AsterDEM for nordic countries where SRTM is not available
- Option to use another DEM for MAJA L2A pre-processing

### Changed
- Communication protocol between orchestrator components (HTTP instead of DBus)
- The L4A processor loads the data faster (by using Arrow IPC instead of CSV files)

### Fixed
- Some issues related to the L4B scripts due to some changes in the conda python gdal bindings
- Some DB concurrency fixes for the L2A launcher script

## [1.3]
### Added
- Add buffer (in days) for queries (last query date - no.days)
- Retriable queries (json persistence)
- Support for HTTPS in sen4cap services (disabled by default)
- Optimisation of thread usage when fetch_mode is SymLink or Check
- Import: products filtering by intersection with the respective site
- L2 S1 product metadata: added original extent and projection code
- More details in database for S1 SLC pairs pre-processing
- An extra check before exporting L4C tables that the l4c_practices exists (avoid unnecessary error messages)
- Updated feature extraction to use just the main bands in the S2-only mode and include the red edge bands when both S1 and S2 are requested, to avoid resampling 20m bands to 10m

### Changed
- SLURM service start type was changed from forking to simple
- USGS API updates

### Fixed
- Do not continue processing S1 products if the site gets disabled
- Save WGS84 extent in database for S1 L2 products
- CreoDIAS data source mixed geometries fix (polygon/multipolygon)
- Corrections for naming of L2 S1 products when only AMP or COHE pre-processing is enabled
- L4B Corrections for the bug when some users were obtaining the error "CreateSpatialIndex : unsupported operation on a read-only datasource"
- L4B Corrections for encoding issues (special characters not correctly translated into the output product)
- On LPIS products in WGS84 sometimes some indicators were not computed correctly and the execution could have crashed due to the invalid geometry
- L4A - fixed classification script crash in the presence of updated R dependencies
- L4A - fixed classification script crash on some input data
- L4A - fixed possible crash when no S1 data is available


## [1.2]
### Added
  - A mechanism for dynamic timeout computation when performing queries from SciHub (due to large delays for S1 queries experienced during maintenance activities)
  - The configuration keys (in config table) downloader.s1.query.days.back, downloader.s2.query.days.back and downloader.l8.query.days.back (default 0) to force datasources query products from the last product date minus given value in these keys (for products that might occur with delay of several days on SciHub)

### Changed
  - The processors jobs will fail and be stopped if one of the steps is failing

### Fixed
  - CropType processor according to https://forum.esa-sen4cap.org/t/important-correction-to-the-l4a-crop-type-processor/111
  - After upgrade to version 1.1 from 1.0 the package php-pgsql might be uninstalled by mistake, causing the login into the website to fail. The package will be installed during upgrading, if missing.

## [1.1]
### Added
  - Script for importing THEIA products
  - Support for using download and usage of Sen2Cor L2A products (configurable via database)
  - Reports and statistics visualisation for the downloaded and pre-processed products

### Changed
  - The MAJA training interval was changed to 2 months instead of 3 months
  - The icons in the output of the jobs from the "monitoring" tab were updated to reflect more step states.
  - The Postgres server is running now in a Docker container.

### Fixed
  - Updates for the new changes in USGS API
  - Corrections for avoiding skipping one product per page in SciHub
  - Various corrections in LPIS import module and L4A, L4B and L4C processors.
  - Corrections in the installation and upgrade scripts
  - Correction in the S1 preview in the web interface
  - Fixes in the web interface for some issues in MS Edge browser
  - Datasource configuration changes do not require any more to restart the services
  - Various ABI versioning issues that prevented the system from working after installing some system updates and/or lead to crashes in the L4C processor.

## Compatibility warning

  - The current release (Sen4CAP version 2.0) offers you the possibility to use a newer version of MAJA (version 4). If you decide to switch from MAJA version 3 to MAJA version 4 (see the SUM), be aware that the advanced products have not yet been validated with this version 4 and that we advise you not to switch between different versions of MAJA during the processing of your season. You will need to restart the processing of your existing site from scratch.

# Change Log

## [1.0.0]

### Added
  - Web interface for uploading LPIS/Declaration
  - Web interface for uploading configuration and files for L4B and L4C

