diff --git a/docs/src/test/java/tests/cdmdatasets/TestNetcdfDatasetTutorial.java b/docs/src/test/java/tests/cdmdatasets/TestNetcdfDatasetTutorial.java index acfdb1d848..ac25b310a7 100644 --- a/docs/src/test/java/tests/cdmdatasets/TestNetcdfDatasetTutorial.java +++ b/docs/src/test/java/tests/cdmdatasets/TestNetcdfDatasetTutorial.java @@ -61,13 +61,8 @@ public void testUnpackDataTutorial() throws IOException { assertThat((Object) scaledvar).isNotNull(); assertThat(scaledvar.getDataType()).isEqualTo(DataType.FLOAT); - assertThat(scaledvar.attributes().hasAttribute("scale_factor")).isTrue(); - double scale_factor = scaledvar.attributes().findAttributeDouble("scale_factor", 1.0); - assertThat(scaledvar.attributes().hasAttribute("add_offset")).isTrue(); - double add_offset = scaledvar.attributes().findAttributeDouble("add_offset", 1.0); - double unpacked_data = - NetcdfDatasetTutorial.unpackData(scaledvar.readScalarShort(), scale_factor, add_offset); + NetcdfDatasetTutorial.unpackData(scaledvar.readScalarShort(), 1.0, 0.0); assertThat(unpacked_data).isNotNaN(); } }