From: <jde...@us...> - 2010-06-23 06:17:14
|
Revision: 26 http://netcdftools.svn.sourceforge.net/netcdftools/?rev=26&view=rev Author: jdempsey Date: 2010-06-23 06:17:07 +0000 (Wed, 23 Jun 2010) Log Message: ----------- ANDSWRON-662 - Correct type of _FillValue and missing_value variable attributes Modified Paths: -------------- trunk/src/main/java/au/csiro/netcdf/wron/MdbsyScenarioAConverter.java trunk/src/main/java/au/csiro/netcdf/wron/MdbsyScenarioCConverter.java Modified: trunk/src/main/java/au/csiro/netcdf/wron/MdbsyScenarioAConverter.java =================================================================== --- trunk/src/main/java/au/csiro/netcdf/wron/MdbsyScenarioAConverter.java 2010-06-23 05:14:03 UTC (rev 25) +++ trunk/src/main/java/au/csiro/netcdf/wron/MdbsyScenarioAConverter.java 2010-06-23 06:17:07 UTC (rev 26) @@ -623,11 +623,12 @@ command .execute(new File(outputFileName), variableNames[variableIndex], variableDataTypes[variableIndex], Arrays.asList(new Attribute("units", variableUnits[variableIndex]), new Attribute("long_name", - variableLongNames[variableIndex]), new Attribute("missing_value", - variableMissingValues[variableIndex]), new Attribute("_FillValue", - variableFillValues[variableIndex]), new Attribute("valid_min", - variableMinValues[variableIndex]), new Attribute("valid_max", - variableMaxValues[variableIndex])), dimensions, false /* isLargeFileSupport */, false/* fillValue */); + variableLongNames[variableIndex]), new Attribute("missing_value", Float + .valueOf(variableMissingValues[variableIndex])), new Attribute("_FillValue", Float + .valueOf(variableFillValues[variableIndex])), new Attribute("valid_min", Float + .valueOf(variableMinValues[variableIndex])), new Attribute("valid_max", Float + .valueOf(variableMaxValues[variableIndex]))), dimensions, + false /* isLargeFileSupport */, false/* fillValue */); } /** Modified: trunk/src/main/java/au/csiro/netcdf/wron/MdbsyScenarioCConverter.java =================================================================== --- trunk/src/main/java/au/csiro/netcdf/wron/MdbsyScenarioCConverter.java 2010-06-23 05:14:03 UTC (rev 25) +++ trunk/src/main/java/au/csiro/netcdf/wron/MdbsyScenarioCConverter.java 2010-06-23 06:17:07 UTC (rev 26) @@ -620,12 +620,12 @@ throws IllegalArgumentException, IOException, ParseException { NcDefineVariable command = new NcDefineVariable(); - command - .execute(new File(outputFileName), variableNames[variableIndex], variableDataTypes[variableIndex], - Arrays.asList(new Attribute("units", variableUnits[variableIndex]), new Attribute("long_name", - variableLongNames[variableIndex]), new Attribute("missing_value", - variableMissingValues[variableIndex]), new Attribute("_FillValue", - variableFillValues[variableIndex])), dimensions, false /* isLargeFileSupport */, false/* fillValue */); + command.execute(new File(outputFileName), variableNames[variableIndex], variableDataTypes[variableIndex], + Arrays.asList(new Attribute("units", variableUnits[variableIndex]), new Attribute("long_name", + variableLongNames[variableIndex]), new Attribute("missing_value", Float + .valueOf(variableMissingValues[variableIndex])), new Attribute("_FillValue", Float + .valueOf(variableFillValues[variableIndex]))), dimensions, false /* isLargeFileSupport */, + false/* fillValue */); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |