Commit 15e07a64 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

SCL to JSON

parent 0f87be5e
...@@ -122,6 +122,19 @@ This script uses `gdal_merge.py` and `gdal_translate` to merge all the images w ...@@ -122,6 +122,19 @@ This script uses `gdal_merge.py` and `gdal_translate` to merge all the images w
### Example ### Example
```bash ```bash
mergeImagesByDirectory.sh /home/geoint/NAS/images/ mergeImagesByDirectory.sh /home/geoint/NAS/images/
```
## Count Total Area for Each L2A SCL Calss (`geosentinel/L2ASCLtoJSON`)
This script count the total number of each of the 12 classes in a SCL image form a Sentinel-2 L2A product.
```json
{
"wkt":"POLYGON((-89.62955474853516 21.05230266883862,-89.55093383789061 21.05230266883862,-89.52930450439452 20.965126493194475,-89.6484375 20.873408465645696,-89.72877502441405 20.95294341625548,-89.65805053710938 21.056788298627097,-89.62955474853516 21.05230266883862))" ,
"filename":"/home/geoint/NAS/data/mergecrop/20180214SCL_20m_merged.tif"
}
```bash
L2ASCLtoJSON.py meridaSCL.json > SCLresult.json
``` ```
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