Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ashlinrichardson committed Aug 5, 2024
1 parent 02d4e68 commit 3ecd345
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions cpp/merge_small.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3ecd345

Please sign in to comment.