Commit 89d7ed96 authored by Hoek, Steven's avatar Hoek, Steven
Browse files

Change which does not involve a lot

parent b0162fb1
......@@ -103,6 +103,7 @@ class CsfRaster(Raster, GridEnvelope2D):
result = [None, None, None]
# The following works only for CSF version 2
# TODO check that this also works for Python 64-bits
if sys.version[0] == '2':
minimum = sys.maxint
else:
......@@ -111,9 +112,9 @@ class CsfRaster(Raster, GridEnvelope2D):
# Assume that raster is to be copied
if cellrepr == 'CR_UINT1':
nodatavalue = minimum
nodatavalue = minimum # should be 2147483647
elif cellrepr == 'CR_INT4':
nodatavalue = maximum
nodatavalue = maximum # should be -2147483648
else:
if not np.isnan(raster.nodatavalue):
nodatavalue = raster.nodatavalue
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment