Skip to content

Commit 1ffc171

Browse files
committed
bug fix: Double.NaN
1 parent fd5d240 commit 1ffc171

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/firefly/java/edu/caltech/ipac/visualize/plot/plotdata/FitsExtract.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ static Number valueFromFitsFile(ImageHDU hdu, int x, int y, int plane, int ptSiz
128128

129129
if (bscale==1.0D && bzero==0D && !isNaN(aveValue) && aveValue.doubleValue()!=blankValue) return aveValue;
130130
if (arrayType==Float.TYPE && Float.isNaN(aveValue.floatValue())) return Float.NaN;
131-
if (arrayType==Double.TYPE && Double.isNaN(aveValue.doubleValue())) return Float.NaN;
131+
if (arrayType==Double.TYPE && Double.isNaN(aveValue.doubleValue())) return Double.NaN;
132132

133133
double newValue= ImageStretch.getFluxStandard( aveValue.doubleValue(), blankValue, bscale, bzero, bitpix);
134134
if (Double.isNaN(newValue)) return newValue;

0 commit comments

Comments
 (0)