Update app.py
Browse files
app.py
CHANGED
@@ -88,13 +88,15 @@ if file_str:
|
|
88 |
print(deg_pixel_x,deg_pixel_y )
|
89 |
print('_'*50 + ' Ende '+ '_'*50)
|
90 |
|
|
|
|
|
91 |
area_box = [(start_x+int(i/size/2)*deg_pixel_x*size, start_y+int(j/size/2)*deg_pixel_y*size), (start_x+int(i/size/2) *
|
92 |
deg_pixel_x*size+size*deg_pixel_x, start_y+int(j/size/2)*deg_pixel_y*size+size*deg_pixel_y)]
|
93 |
|
94 |
array = geo_tiff.read_box(area_box.copy())
|
95 |
|
96 |
|
97 |
-
|
98 |
|
99 |
Image.MAX_IMAGE_PIXELS = 10000000000
|
100 |
with Image.open(file) as im:
|
|
|
88 |
print(deg_pixel_x,deg_pixel_y )
|
89 |
print('_'*50 + ' Ende '+ '_'*50)
|
90 |
|
91 |
+
size = (416, 416)
|
92 |
+
|
93 |
area_box = [(start_x+int(i/size/2)*deg_pixel_x*size, start_y+int(j/size/2)*deg_pixel_y*size), (start_x+int(i/size/2) *
|
94 |
deg_pixel_x*size+size*deg_pixel_x, start_y+int(j/size/2)*deg_pixel_y*size+size*deg_pixel_y)]
|
95 |
|
96 |
array = geo_tiff.read_box(area_box.copy())
|
97 |
|
98 |
|
99 |
+
|
100 |
|
101 |
Image.MAX_IMAGE_PIXELS = 10000000000
|
102 |
with Image.open(file) as im:
|