Commit ca3294e1 authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Bugfix Issue #7: GeoArray.get_subset()

updated __version__ and __versionalias__
parent 9586436b
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
__author__ = """Daniel Scheffler""" __author__ = """Daniel Scheffler"""
__email__ = 'danschef@gfz-potsdam.de' __email__ = 'danschef@gfz-potsdam.de'
__version__ = '0.3.2' __version__ = '0.3.3'
__versionalias__ = 'v20170614.01' __versionalias__ = 'v20170616.01'
from .baseclasses import GeoArray from .baseclasses import GeoArray
......
...@@ -1235,9 +1235,9 @@ class GeoArray(object): ...@@ -1235,9 +1235,9 @@ class GeoArray(object):
:return: :return:
""" """
sub_arr = self[xslice if xslice else slice(None), sub_arr = self[yslice if yslice else slice(None), # row
yslice if yslice else slice(None), xslice if xslice else slice(None), # col
zslice if zslice else slice(None)] zslice if zslice else slice(None)] # band
sub_ulXY = imXY2mapXY((xslice.start, yslice.start), self.gt) sub_ulXY = imXY2mapXY((xslice.start, yslice.start), self.gt)
sub_gt = (sub_ulXY[0], self.gt[1], self.gt[2], sub_ulXY[1], self.gt[4], self.gt[5]) sub_gt = (sub_ulXY[0], self.gt[1], self.gt[2], sub_ulXY[1], self.gt[4], self.gt[5])
sub_gA = GeoArray(sub_arr, sub_gt, self.prj) sub_gA = GeoArray(sub_arr, sub_gt, self.prj)
......
...@@ -20,7 +20,7 @@ test_requirements = [ ...@@ -20,7 +20,7 @@ test_requirements = [
setup( setup(
name='geoarray', name='geoarray',
version='0.3.2', version='0.3.3',
description="Fast Python interface for geodata - either on disk or in memory.", description="Fast Python interface for geodata - either on disk or in memory.",
long_description=readme + '\n\n' + history, long_description=readme + '\n\n' + history,
author="Daniel Scheffler", author="Daniel Scheffler",
......
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