Commit 85c77db7 by Gencer Sümbül

Update README.md

parent 8e68a864
......@@ -11,7 +11,7 @@ This repository contains tools for processing the BigEarthNet Sentinel-2 Benchma
List of Tools and How to Use Them
-----
#### Python script to read Sentinel-2 image patches in the BigEarthNet (read_patch.py)
#### Python script to read Sentinel-2 image patches in the BigEarthNet ([read_patch.py](https://gitlab.tubit.tu-berlin.de/rsim/bigearthnet-tools/blob/master/scripts/read_patch.py))
This script reads GeoTIFF files each of which is for one spectral band of a Sentinel-2 image patch in the BigEarthNet Archive. The script is capable of reading either all spectral bands of one patch folder (-p option) or all bands for all patches (-r option). After reading files, Sentinel-2 image patch values can be used as numpy array for further purposes.
......@@ -26,16 +26,16 @@ python read_patch.py -r BigEarthNet-v1.0/
The BigEarthNet archive should be downloaded first. Either [GDAL](https://pypi.org/project/GDAL/) or [rasterio](https://github.com/mapbox/rasterio/) package should be installed. To use the resulting pixel values of patches, [NumPy](http://www.numpy.org/) package can also be installed.
#### Python script to eliminate Sentinel-2 image patches with high density snow/shadow/cloud in the BigEarthNet (eliminate_patches.py)
#### Python script to eliminate Sentinel-2 image patches with high density snow/shadow/cloud in the BigEarthNet ([eliminate_snowy_cloudy_patches.py](https://gitlab.tubit.tu-berlin.de/rsim/bigearthnet-tools/blob/master/scripts/eliminate_snowy_cloudy_patches.py))
This script eliminates patches with seasonal snow cover and/or cloud&shadow cover from the BigEarthNet Archive while reading the GeoTIFF files. The script is capable of eliminating patches with either seasonal snow cover list (-s option) or cloud&shadow cover list (-c option) or both of them together (-e) while reading patches of the BigEarthNet. For the patch lists, it accepts csv files, which can be downloaded from the BigEarthNet website. After reading and eliminating patches, pixel values can be used as a numpy array for further purposes.
* Examples:
```
python eliminate_patches.py -r BigEarthNet-v1.0/ -s patches_with_seasonal_snow.csv
python eliminate_patches.py -r BigEarthNet-v1.0/ -c patches_with_cloud_and_shadow.csv
python eliminate_patches.py -r BigEarthNet-v1.0/ -e patches_with_seasonal_snow.csv patches_with_cloud_and_shadow.csv
python eliminate_snowy_cloudy_patches.py -r BigEarthNet-v1.0/ -s patches_with_seasonal_snow.csv
python eliminate_snowy_cloudy_patches.py -r BigEarthNet-v1.0/ -c patches_with_cloud_and_shadow.csv
python eliminate_snowy_cloudy_patches.py -r BigEarthNet-v1.0/ -e patches_with_seasonal_snow.csv patches_with_cloud_and_shadow.csv
```
* Requirements for running:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment