Skip to content

Commit

Permalink
#6 duplicationprocessor used for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
obriensystems committed Oct 2, 2018
1 parent 6e769e0 commit 76c2a68
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ private void copyFile(String src, String dest) {
}

}
public void merge(String _site, String _aDir, String _bDir){//, String _cDir) {
String aDir = _aDir + "/" + _site + "/";
String bDir = _bDir + "/" + _site + "/";
public void merge(String _site, String _destDir, String _srcDir){//, String _cDir) {
String aDir = _destDir + "/" + _site + "/";
String bDir = _srcDir + "/" + _site + "/";
//String cDir = _cDir + "/" + _site + "/";
String filename;
long filesize;
Expand Down Expand Up @@ -236,18 +236,22 @@ public static void main(String[] args) {

DuplicationProcessor processor = new DuplicationProcessor();
//site = "xwl";
/* for(int i=0;i<sites.length;i++) {
processor.merge(sites[i],
"/Volumes/8tb/_radar_unprocessed_image_to_persist", // to
for(int i=0;i<sites.length;i++) {
processor.merge(sites[i],
"E:/_radar_unprocessed_image_to_persist/",
"X:/_to_process/mm3_2017/_radar_unprocessed_image_to_persist/");
//rocessor.merge(sites[i],
// "/Volumes/8tb/_radar_unprocessed_image_to_persist", // to
// "/Volumes/ppro2/_radar_unprocessed_image_to_persist" // from
// "/Users/michaelobrien/_radar_unprocessed_image_to_persist", // new
// "/_radar_unprocessed_image_to_persist", // new
"/Volumes/Untitled/_to_process/biomos14/_radar_unprocessed_image_to_persist"
);
// "/Volumes/Untitled/_to_process/biomos14/_radar_unprocessed_image_to_persist"
// );
}
*/ for(int i=0;i<sitesSat.length;i++) {
for(int i=0;i<sitesSat.length;i++) {
////processor.process(site,"/_radar_unprocessed_image_to_persist", "/Users/michaelobrien/_filtered_data/");
processor.process(sitesSat[i],"e:/_radar_unprocessed_image_to_persist");//, "/Volumes/gdrive2/_filtered_data/");
//processor.process(sitesSat[i],"e:/_radar_unprocessed_image_to_persist");//, "/Volumes/gdrive2/_filtered_data/");
// processor.process(sitesSat[i],"X:/_to_process/mm3_2017/_radar_unprocessed_image_to_persist");
//processor.process(sitesSat[i],"e:/Users/michaelobrien/_radar_unprocessed_image_to_persist");//, "/Volumes/gdrive2/_filtered_data_mbp/");
//processor.process(site,"/Volumes/Untitled/_to_process/biomos14/_radar_unprocessed_image_to_persist/", "/Volumes/8tb/_radar_unprocessed_image_to_persist/");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ private void verifyDirectory(String aDir) {

/**
* Sort and delete all duplicate images
* deprecated - use DuplicationProcessor
* @param site
*/
public void process(String site, String anInputDir, String anOutputDir) {
Expand Down Expand Up @@ -121,10 +122,12 @@ public static void main(String[] args) {

MergeProcessor processor = new MergeProcessor();


// don't use use DuplicationProcessor
//processor.process(site,"/_radar_unprocessed_image_to_persist", "/Users/michaelobrien/_filtered_data/");
processor.process(site,"/Volumes/Untitled/_to_process/biomos14/_radar_unprocessed_image_to_persist/",
"/Volumes/8tb/_radar_unprocessed_image_to_persist/");
// processor.process(site,"X:/_to_process/mm3_2017/_radar_unprocessed_image_to_persist/",
// "E:/_radar_unprocessed_image_to_persist/");
//processor.process(site,"/Volumes/Untitled/_to_process/biomos14/_radar_unprocessed_image_to_persist/",
//"/Volumes/8tb/_radar_unprocessed_image_to_persist/");
}


Expand Down

0 comments on commit 76c2a68

Please sign in to comment.