Skip to content

Commit fbd8c73

Browse files
authored
Merge pull request #560 from USACE/dss-py
nodata simplification
2 parents e8ec124 + 574bd7f commit fbd8c73

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • async_packager/src/cumulus_packager/writers

async_packager/src/cumulus_packager/writers/dss7.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,7 @@ def writer(
123123
# Flip the dataset up/down because tif and dss have different origins
124124
data = numpy.flipud(data)
125125
DSS_UNDEFINED_VALUE = -3.4028234663852886e+38
126-
data = numpy.array(data, dtype=numpy.float64)
127-
numpy.putmask(
128-
data, data == nodata, numpy.nan
129-
) # Replace nodata with NaN for processing
126+
data[data == nodata] = numpy.nan # Replace nodata with NaN for processing
130127
# GeoTransforma and lower X Y
131128
xsize = warp_ds.RasterXSize
132129
ysize = warp_ds.RasterYSize

0 commit comments

Comments
 (0)