Skip to content
Snippets Groups Projects
Commit 4c823b26 authored by Riccardo Boero's avatar Riccardo Boero :innocent:
Browse files

Added temporary directory suffix for reprojections.

parent 5512604c
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,9 @@ def main(zip_path):
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Reproject GeoTIFF files in a ZIP archive to EPSG:4326.')
parser.add_argument('zip_path', type=str, help='Path to the ZIP file containing GeoTIFFs.')
parser.add_argument('--suffix', type=str, help='User-defined suffix for the temporary directory.', default='default_suffix')
args = parser.parse_args()
print("Processing file at path:", args.zip_path) # Debug print
main(args.zip_path)
print("Processing file at path:", args.zip_path, "with temporary directory suffix:", args.suffix)
main(args.zip_path, args.suffix)
......@@ -8,7 +8,7 @@ pip install git+https://FACT_token:glpat-1zG-TQx___xLsPjj2vsG@git.nilu.no/fact/u
for y in {2017..2021}
do
echo "Starting processing year ${y}"
python fix_geotiffs.py ../geodata/data/lulc${y}.zip > proj${y}.txt 2>&1 &
python fix_geotiffs.py ../geodata/data/lulc${y}.zip --suffix ${y} > proj${y}.txt 2>&1 &
done
wait
echo "*** All years concluded!!!"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment