Skip to content
Snippets Groups Projects
Commit e5145ddb authored by Ann-Kathrin Margarete Edrich's avatar Ann-Kathrin Margarete Edrich
Browse files

changes to cut_and_interpolate.py

parent f9212cb9
No related branches found
No related tags found
No related merge requests found
Pipeline #1620085 passed
......@@ -871,8 +871,8 @@ class cut_and_interpolate:
f_nan = interp2d(x, np.flip(y), nan_map, kind='linear')
nan_new = f_nan(x_new, y_new)
# Set all by nan values affected pixels to no data value
data_interp[nan_new > 0] = self.prop_settings['no_value']
# Set all by nan values affected pixels to no data value
data_interp[nan_new > 0] = self.prop_settings['no_value']
return np.flipud(data_interp)
......@@ -916,7 +916,9 @@ class cut_and_interpolate:
nan_interp[:, i] = f(y_new)
# Set all by nan values affected pixels to no data value
data_interp[nan_interp > 0] = self.prop_settings['no_value']
if self.prop_settings['no_value'] != None:
data_interp[nan_interp > 0] = self.prop_settings['no_value']
return data_interp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment