From a10c8ba05df310106105b3bf1d261c5e580158f1 Mon Sep 17 00:00:00 2001 From: Gianpaolo Coro Date: Thu, 7 Sep 2017 11:00:34 +0000 Subject: [PATCH] git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/SeaDataNetConnector@152848 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../seadatanet/SeaDataNetConnector_AutoCorrelation.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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