Commit 0d502607 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

box

parent cf87bbdb
...@@ -27,7 +27,7 @@ def getWKTPolygonBoundingBox(polygon): ...@@ -27,7 +27,7 @@ def getWKTPolygonBoundingBox(polygon):
def main(argv): def main(argv):
print (argv[1]) print (argv[1])
getWKTPolygonBoundingBox(argv[1]) # getWKTPolygonBoundingBox(argv[1])
if __name__ == "__main__": if __name__ == "__main__":
main(sys.argv) main(sys.argv)
......
...@@ -43,7 +43,7 @@ do ...@@ -43,7 +43,7 @@ do
mkdir video mkdir video
fi fi
BOX=$(python3 "$HOME/git/GeoSentinel/geosentinel/polygonToBox.py" $3) BOX=$(python3 "$HOME/git/GeoSentinel/geosentinel/polygonToBox.py" $3)
gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -scale 0 4096 0 255 -of JPEG ndvi/$fileout2"_"$fileout1".tiff" video/$fileout2"_"$fileout1".jpg" # gdal_translate -projwin $BOX -projwin_srs WGS84 -ot Byte -scale 0 4096 0 255 -of JPEG ndvi/$fileout2"_"$fileout1".tiff" video/$fileout2"_"$fileout1".jpg"
cd .. cd ..
......
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