Skip to content

Commit

Permalink
#1 - PreProcessor adjust
Browse files Browse the repository at this point in the history
  • Loading branch information
obriensystems committed Sep 7, 2020
1 parent 35f4b9c commit 0d588e6
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions radar.se/src/main/java/org/obrienscience/radar/PreProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ public void reduceRadarImages(String site, String anInputDir, String anOutputDir
BufferedImage reducedImage = null;
long filesize = 0;
System.out.println("_retrieving files from:... " + inputDir);
RadarSite radarSite = null;
//RadarSite radarSite = null;
try {
File[] files = dir.listFiles();
int counter = 0;
Expand Down Expand Up @@ -596,7 +596,7 @@ public void convertToPNG(String site, String anInputDrive, String anInputDir, St
*/
public static void main(String[] args) {
String param = null;
String site = ApplicationService.RADAR_SITE_IDENTIFIERS[3];//."wbi_precip";//_te";
String site = ApplicationService.RADAR_SITE_IDENTIFIERS[0];//."wbi_precip";//_te";
if(null != args && args.length > 0) {
param = args[0];
if(null != param) {
Expand All @@ -607,8 +607,12 @@ public static void main(String[] args) {

boolean view = false;
PreProcessor aProcessor = new PreProcessor(view);
aProcessor.reduceRadarImages(site, "/Volumes/evo512d/_radar_unprocessed_image_to_persist/", "/Volumes/evo512bfat" + FILTERED_DATA_DIR, view, true, true);//, aRadarView);
for(int index = 0; index < ApplicationService.RADAR_SITE_IDENTIFIERS.length; index++) {
//aProcessor.reduceRadarImages(site, "/Volumes/evo512d/_radar_unprocessed_image_to_persist/", "/Volumes/evo512bfat" + FILTERED_DATA_DIR, view, true, true);//, aRadarView);
aProcessor.reduceRadarImages(ApplicationService.RADAR_SITE_IDENTIFIERS[index], "d:/_radar_unprocessed_image_to_persist/", "f:" + FILTERED_DATA_DIR, view, true, true);//, aRadarView);
//aProcessor.reduceRadarImages(ApplicationService.RADAR_SITE_IDENTIFIERS[index], "x:/_radar_unprocessed_image_to_persist/", "x:" + FILTERED_DATA_DIR, view, true, true);//, aRadarView);
//aProcessor.convertToPNG(site, "D", FILTERED_DATA_DIR, "D", FILTERED_DATA_DIR_PNG);
}
}

@Override
Expand Down

0 comments on commit 0d588e6

Please sign in to comment.