Fixed netcdf import with float type values
@@ -244,7 +244,7 @@ public class NetCDFReadTask extends AbstractTask {
ind = 0;
while (scanTimeIterator.hasNext()) {
if (scanTimeVariable.getDataType().getPrimitiveClassType() == float.class) {
- retentionTimes[ind] = ((Double) scanTimeIterator.next()) / 60d;
+ retentionTimes[ind] = ((Float) scanTimeIterator.next()) / 60d;
}
if (scanTimeVariable.getDataType().getPrimitiveClassType() == double.class) {
retentionTimes[ind] = ((Double) scanTimeIterator.next()) / 60d;
