46 reputation
6
bio website
location
age
visits member for 3 years, 6 months
seen Nov 13 at 21:17

Oct
30
comment Fast raster combine using rasterio
Ah, good thought. Is it enough to check the stride on in_arr[x, y]? If so, it's telling me that the stride is 4 (sizeof int), so the memory should be contiguous.
Oct
29
awarded  Supporter
Oct
29
comment Fast raster combine using rasterio
Actually x and y are already cdef'ed above and if I just do something silly like out_arr[x_start + x, y_start + y] = in_arr[x, y, 0] (ie. the first element of the stack), it runs very quick. So that convinced me that the looping (although ugly) isn't slow. Note that I did try typed memoryviews as well, but that didn't seem to help. But point definitely taken about trying to use numpy more "creatively". I'm still trying to come up with the right syntax for that.
Oct
28
revised Fast raster combine using rasterio
array indexes mistakingly seen as hyperlinks
Oct
28
asked Fast raster combine using rasterio
Feb
14
awarded  Teacher
Jan
10
awarded  Scholar
Jan
10
accepted reusing cached tiles with leaflet, mbtiles and mbtiles-php
Jan
8
answered reusing cached tiles with leaflet, mbtiles and mbtiles-php
Jan
8
asked reusing cached tiles with leaflet, mbtiles and mbtiles-php
Dec
21
awarded  Student
Feb
22
awarded  Editor
Feb
22
revised Retrieve tile path of superoverlay in Google Earth Plugin using Javascript
added update on progress and screenshots
Feb
21
awarded  Tumbleweed
Feb
15
comment How does Nearest Neighbor Image Resampling work in ArcGIS?
Ah, of course, that makes sense from an efficiency standpoint.
Feb
15
comment How does Nearest Neighbor Image Resampling work in ArcGIS?
Those diagrams are quite useful. I would imagine that the rule (ie. bottom right cell) is based on the order of processing the cells. If processing proceeds first from left to right then top to bottom, each distance from the input cell center to the output cell center is calculated and this distance becomes the minimum distance (and nearest neighbor) if less than or equal to the current minimum distance. Because the right bottom cell is processed last, it 'wins'.
Feb
14
asked Retrieve tile path of superoverlay in Google Earth Plugin using Javascript