Skip to content

Commit

Permalink
Merge branch 'scale-offset' of https://github.com/haileyajohnson/netc…
Browse files Browse the repository at this point in the history
…df-java into scale-offset
  • Loading branch information
haileyajohnson committed Jul 6, 2023
2 parents 5a56969 + 8627be3 commit a141b29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cdm/core/src/main/java/ucar/nc2/dataset/VariableDS.java
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ public boolean hasMissingValue() {

@Override
public double[] getMissingValues() {
return convertMissing != null ? convertMissing.getMissingValues() : new double[] {0};
return convertMissing != null ? convertMissing.getMissingValues() : new double[0];
}

@Override
Expand Down Expand Up @@ -759,7 +759,7 @@ public Number convertUnsigned(Number value) {
}

public Number convertUnsigned(Number value, DataType dataType) {
return unsignedConversion != null ? unsignedConversion.convertUnsigned(value, dataType) : value;
return unsignedConversion != null ? UnsignedConversion.convertUnsigned(value, dataType) : value;
}

@Override
Expand Down
2 changes: 0 additions & 2 deletions cdm/core/src/main/java/ucar/nc2/filter/ConvertMissing.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
import ucar.ma2.IndexIterator;
import ucar.nc2.Attribute;
import ucar.nc2.constants.CDM;
import ucar.nc2.constants.DataFormatType;
import ucar.nc2.dataset.VariableDS;
import ucar.nc2.iosp.netcdf3.N3iosp;
import ucar.nc2.util.Misc;

public class ConvertMissing {
Expand Down

0 comments on commit a141b29

Please sign in to comment.