Some times you may have a WKT Polygon string that is to log for sentinel API to accept, in this caase you can use this script to obtain the bounding box of the polygon and use it in
Some times you may have a WKT Polygon string that is to long for sentinel API to accept, in this case you can use this script to obtain the bounding box of the polygon and use it with **APISentinel**. This script also has the option to be used with ``gdal_translate`` id the second parameter is set to **False** .
products=sentinel.getProducts(polygonToBox.getWKTPolygonBoundingBox(merida,True),('20150101','20181024'),{"platformname":"Sentinel-2","cloudcoverpercentage":"[0 TO 40]"})
This script uses [Sen2Cor](http://step.esa.int/main/third-party-plugins-2/sen2cor/) to convert all L1C products in a directory to L2C products. The script takes as an arguments the name of the a directory with a `L1C` Subdirectory where the products are located and the number of jobs to run in parallel.
This script uses [Sen2Cor](http://step.esa.int/main/third-party-plugins-2/sen2cor/) to convert all L1C products in a directory to L2C products. The script takes as an arguments the name of the a directory with a `L1C` Subdirectory where the products are located and the number of jobs to run in parallel.