Skip to content

Commit

Permalink
Correction for union
Browse files Browse the repository at this point in the history
  • Loading branch information
ozak committed Sep 17, 2020
1 parent 9ccf84e commit 7347ab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion georasters/georasters.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ def union(rasters):
lonmax = max([i.xmax for i in rasters])
latmin = min([i.ymin for i in rasters])
latmax = max([i.ymax for i in rasters])
shape = (np.abs(np.floor((latmax-latmin)/rasters[0].y_cell_size)).astype(int), np.floor((lonmax-lonmin)/rasters[0].x_cell_size).astype(int))
shape = (np.abs(np.round((latmax-latmin)/rasters[0].y_cell_size)).astype(int), np.round((lonmax-lonmin)/rasters[0].x_cell_size).astype(int))
out = ndv * np.ones(shape)
outmask = np.ones(shape).astype(bool)
for i in rasters:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def run_tests(self):
sys.exit(errno)

setup(name='georasters',
version='0.5.19b',
version='0.5.20',
description='Tools for working with Geographical Information System Rasters',
url='http://github.com/ozak/georasters',
keywords="gis geospatial geographic raster vector zonal statistics spatial analysis",
Expand Down

0 comments on commit 7347ab0

Please sign in to comment.