Skip to content
Snippets Groups Projects
Commit 2e517c11 authored by leufen1's avatar leufen1
Browse files

extract no data flag value and mark as numpy nan

parent a6d3755c
Branches
Tags
2 merge requests!5New App; stable_night_lights,!4Lukas issue004 feat new app stable night lights
......@@ -37,6 +37,8 @@ def read_proxydata(filename, dummy=DEBUG and USE_DUMMY_STABLE_NIGHT_LIGHTS_DATA)
# construct data array and lonvec, latvec
data = rst.bands[0].data()
nodata_value = rst.bands[0].nodata_value
data[data == nodata_value] = np.nan
lonvec = np.linspace(xmin, xmax, cols)
latvec = np.linspace(ymin, ymax, rows)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment