Commit e6542a27 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

readme MD

parent fc4c5e73
......@@ -19,7 +19,7 @@ The class constructor requires a username and password from [copernicus project]
sudo pip install sentinelsat
sudo apt-get install libgdal-dev
```
### Example
### Download products example
```python
from geosentinel import APISentinel
sentinel = APISentinel('username', 'password')
......@@ -28,6 +28,7 @@ print len(products)
sentinel.downloadProducts(products,".")
```
## Download Tool
## L2A Products
## L2A Product conversion
To convert all the L1C products in a directory to L2C Products ``tools/L1CProductListToL2A.sh`` is used.
#!/bin/sh
#Convert L1C Products to L2A using L2A_Process
INPUTDIR=$1 #Top directory with a L1C Subirectory
JOBS=$(2:-8)
if [ "$#" -ne 1 ]; then
echo "Usage " $0 " <Directory with a L1C Subirectory> [jobs]"
exit
fi
cd $INPUTDIR/L1C
if [ ! -d ../L2A ]; then
mkdir ../L2A
fi
echo \n\n
cd $INPUTDIR/L2A
ls ../L1C/*.zip | parallel --jobs 12 L1CToL2A.sh
cd $INPUTDIR/L2A
ls ../L1C/*.zip | parallel --jobs $JOBS L1CToL2A.sh
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