diff --git a/src/org/gcube/dataanalysis/seadatanet/SeaDataNetConnector_AutoCorrelation.java b/src/org/gcube/dataanalysis/seadatanet/SeaDataNetConnector_AutoCorrelation.java index 74684c3..b730581 100644 --- a/src/org/gcube/dataanalysis/seadatanet/SeaDataNetConnector_AutoCorrelation.java +++ b/src/org/gcube/dataanalysis/seadatanet/SeaDataNetConnector_AutoCorrelation.java @@ -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 statResultMap = new LinkedHashMap(); @@ -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