Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion vulnerability_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def nrt_calculation(self, in_fn, deforestation_hrp, mask):
# Set up bin width as spatial resolution
in_ds = gdal.Open(in_fn)
P = in_ds.GetGeoTransform()[1]
bin_width =int(P)
bin_width = P
# Calculate the histogram
hist, bin_edges = np.histogram(distance_arr_masked_1d, bins=np.arange(distance_arr_masked_1d.min(),
distance_arr_masked_1d.max() + bin_width,
Expand Down