This commit is contained in:
Gianpaolo Coro 2017-09-07 11:00:34 +00:00
parent 8c3a512035
commit a10c8ba05d
1 changed files with 3 additions and 5 deletions

View File

@ -40,10 +40,6 @@ import com.vividsolutions.jts.io.WKTReader;
public class SeaDataNetConnector_AutoCorrelation extends StandardLocalExternalAlgorithm {
//TODO
//download file from thredds
//currents resolution at 1
// Statistical result by DIVA
LinkedHashMap<String, String> statResultMap = new LinkedHashMap<String, String>();
@ -142,7 +138,9 @@ public class SeaDataNetConnector_AutoCorrelation extends StandardLocalExternalAl
AnalysisLogger.getLogger().debug("Use currents: " + config.getParam(UseCurrentsP));
AnalysisLogger.getLogger().debug("Currents weight: " + config.getParam(CurrentsWeightP));
int currentsWeight = Integer.parseInt(config.getParam(CurrentsWeightP));
AnalysisLogger.getLogger().debug("Converting weights");
int currentsWeight = (int) Math.round(Double.parseDouble(""+config.getParam(CurrentsWeightP)));
if (currentsWeight<0)
currentsWeight=0;
else