Skip to content

Commit

Permalink
added clean.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJDufour committed Aug 4, 2024
1 parent fa1ac24 commit 0acc681
Show file tree
Hide file tree
Showing 9 changed files with 76 additions and 0 deletions.
54 changes: 54 additions & 0 deletions clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# start in data directory
cd data

# setup test-data
echo "---------- Cleaning GeoTIFF Test Data ----------"
cd geotiff-test-data
sh clean.sh
cd ..
echo "---------- Finished Cleaning GeoTIFF Data ----------"

# setup test-data
echo "---------- Cleaning GeoJSON Test Data ----------"
cd geojson-test-data
sh clean.sh
cd ..
echo "---------- Finished Cleaning GeoJSON Data ----------"

# setup gadm
echo "---------- Cleaning GADM Data ----------"
cd gadm
sh clean.sh
cd ..
echo "---------- Finished Cleaning GADM Data ----------"

# setup ghsl
echo "---------- Cleaning GHSL Data ----------"
cd ghsl
sh clean.sh
cd ..
echo "---------- Finished Cleaning GHSL Data ----------"

# setup mapspam
echo "---------- Cleaning MapSpam Data ----------"
cd mapspam
sh clean.sh
cd ..
echo "---------- Finished Cleaning MapSpam Data ----------"

# setup rgb
echo "---------- Cleaning RGB Raster ----------"
cd rgb
sh clean.sh
cd ..
echo "---------- Finished Cleaning RGB Raster ----------"

# setup veneto
echo "---------- Cleaning Veneto Raster ----------"
cd veneto
sh clean.sh
cd ..
echo "---------- Finished Cleaning Veneto Raster ----------"

# go back to root
cd ..
3 changes: 3 additions & 0 deletions data/gadm/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

rm ./arcgis/*.json ./geojsons/*.geojson
3 changes: 3 additions & 0 deletions data/geojson-test-data/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

rm -r eez_land_union/ gadm/ spec/ wikipedia/
3 changes: 3 additions & 0 deletions data/geotiff-test-data/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

rm *.cog *.tif *.tiff
3 changes: 3 additions & 0 deletions data/ghsl/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

rm ./tiles/*.tif
3 changes: 3 additions & 0 deletions data/mapspam/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

rm ./tiles/*.tif
3 changes: 3 additions & 0 deletions data/rgb/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

rm wildfires.tiff
3 changes: 3 additions & 0 deletions data/veneto/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

rm *.tif
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"build:prod:lite": "npm run build:prod:node:lite && npm run build:prod:web:lite",
"build:prod:node:lite": "GEOBLAZE_WEBPACK_ENTRY='./lite/index.js' GEOBLAZE_WEBPACK_OUTPUT_FILENAME='geoblaze.lite.node.min.js' webpack --mode production --target node",
"build:prod:web:lite": "GEOBLAZE_WEBPACK_ENTRY='./lite/index.js' GEOBLAZE_WEBPACK_OUTPUT_FILENAME='geoblaze.lite.web.min.js' webpack --mode production --target web",
"clean": "sh clean.sh",
"create-expected-data": "cd data && pipenv run python3 create_expected_truth_data.py > expected_data.txt",
"dev": "webpack --mode development --target node --watch",
"document": "npx documentation build src/** --config documentation.yml -f html -o docs && echo 'docs.geoblaze.io' > docs/CNAME",
Expand Down

0 comments on commit 0acc681

Please sign in to comment.