From 3ecd345222a27c2496a6d508af6d927c4fc58181 Mon Sep 17 00:00:00 2001 From: Ashlin Richardson Date: Sun, 4 Aug 2024 21:18:35 -0700 Subject: [PATCH] update --- cpp/merge_small.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/cpp/merge_small.cpp b/cpp/merge_small.cpp index 65db5961..9564a490 100644 --- a/cpp/merge_small.cpp +++ b/cpp/merge_small.cpp @@ -7,11 +7,17 @@ int main(int argc, char ** argv){ if(!exists(small)){ run(str("mkdir small")); } - run(str("raster_warp_all.py -s 4 ./ ./small")); + + // clean up bad stuff + run("find ./ -name \"merge*.bin\" | xargs rm"); + run("find ./ -name \"tmp*.bin\" | xargs rm"); + run("find ./ -name \"*.vrt\" | xargs rm"); run("clean"); - run("find ./ -name \"*.vrt\" "); //| xargs rm") - run("find ./ -name \"tmp*\" "); - run("find ./ -name \"merge*\" "); + + // resample the imagery to smaller + run(str("raster_warp_all.py -s 4 ./ ./small")); + + // run the merging (could this be better parallelised) run(str("cd small; merge2.py")); return 0; }