|
Re: MemoryFile loses Profile information
On further inspection, when I switched to saving my outputs as GeoTIFF, the resultant images are both geo-coded fine (Disk vs. In Memory to S3).
I'm guessing something is going wrong when .jp2 is
On further inspection, when I switched to saving my outputs as GeoTIFF, the resultant images are both geo-coded fine (Disk vs. In Memory to S3).
I'm guessing something is going wrong when .jp2 is
|
By
ciaran.evans@...
·
#499
·
|
|
MemoryFile loses Profile information
Hi there,
I'm currently re-writing a process that was stacking .jp2 bands into one image and writing the resultant stack to disk.
I'm moving this up to AWS so want to use MemoryFile's instead.
My
Hi there,
I'm currently re-writing a process that was stacking .jp2 bands into one image and writing the resultant stack to disk.
I'm moving this up to AWS so want to use MemoryFile's instead.
My
|
By
ciaran.evans@...
·
#498
·
|
|
Re: Speed up reading rasters
Hello, thank you so much for your recommendation, it speed it up x5. Very useful. Now I am having a problem that i do not understand.
I have the following script, where i access 10 random tiles of my
Hello, thank you so much for your recommendation, it speed it up x5. Very useful. Now I am having a problem that i do not understand.
I have the following script, where i access 10 random tiles of my
|
By
Carlos García Rodríguez
·
#497
·
|
|
Re: Speed up reading rasters
On dimanche 26 avril 2020 03:04:56 CEST carlogarro@... wrote:
> Hello, I need to read many huge datasets and the speed time is very
> important to avoid a bottleneck. I have to read a tiff file that
On dimanche 26 avril 2020 03:04:56 CEST carlogarro@... wrote:
> Hello, I need to read many huge datasets and the speed time is very
> important to avoid a bottleneck. I have to read a tiff file that
|
By
Even Rouault
·
#496
·
|
|
Speed up reading rasters
Hello, I need to read many huge datasets and the speed time is very important to avoid a bottleneck.
I have to read a tiff file that has 20 bands, and a window of 224,224.
Now I am doing like this,
Hello, I need to read many huge datasets and the speed time is very important to avoid a bottleneck.
I have to read a tiff file that has 20 bands, and a window of 224,224.
Now I am doing like this,
|
By
Carlos García Rodríguez
·
#495
·
|
|
Re: Why does shape not return the number of channels
Correct, the dataset's shape is not the same as the shape of dataset.read().
--
Sean Gillies
Correct, the dataset's shape is not the same as the shape of dataset.read().
--
Sean Gillies
|
By
Sean Gillies
·
#494
·
|
|
Re: Issue with bounds2raster (contextily) using rasterio
You can try the following:
from rasterio.crs import CRS
raster = rio.open(
path,
"w",
driver="GTiff",
height=h,
width=w,
count=b,
You can try the following:
from rasterio.crs import CRS
raster = rio.open(
path,
"w",
driver="GTiff",
height=h,
width=w,
count=b,
|
By
geoterraimage1@...
·
#493
·
|
|
Re: CRS & EPSG issues
So my issue is resolved. The issue was caused by having a GDAL installation on my windows machine, as well as all the GDAL paths set up. This was conflicting with the GDAL setup in each conda
So my issue is resolved. The issue was caused by having a GDAL installation on my windows machine, as well as all the GDAL paths set up. This was conflicting with the GDAL setup in each conda
|
By
geoterraimage1@...
·
#492
·
|
|
Issue with bounds2raster (contextily) using rasterio
Hi,
I've been using bounds2raster in contextily to save some raster tiles from OSM, but my code has started throwing up this error.
>8--------------------------------------------------------
File
Hi,
I've been using bounds2raster in contextily to save some raster tiles from OSM, but my code has started throwing up this error.
>8--------------------------------------------------------
File
|
By
Tony
·
#491
·
|
|
Re: CRS & EPSG issues
On my windows PC, I am running Anaconda to handle my environments.
My guess is that the issue resides in the GDAL installation on windows, that was performed prior to installing anaconda.
PROJ_LIB
On my windows PC, I am running Anaconda to handle my environments.
My guess is that the issue resides in the GDAL installation on windows, that was performed prior to installing anaconda.
PROJ_LIB
|
By
geoterraimage1@...
·
#490
·
|
|
Re: CRS & EPSG issues
> ERROR 1: PROJ: proj_create_from_database: cannot build geodeticCRS 4326:
> SQLite error on SELECT name, ellipsoid_auth_name, ellipsoid_code,
> prime_meridian_auth_name, prime_meridian_code,
> ERROR 1: PROJ: proj_create_from_database: cannot build geodeticCRS 4326:
> SQLite error on SELECT name, ellipsoid_auth_name, ellipsoid_code,
> prime_meridian_auth_name, prime_meridian_code,
|
By
Even Rouault
·
#489
·
|
|
CRS & EPSG issues
(flask-cog-terracotta) PS E:\00_UBUNTU_DRIVE\WATER_MONITORING_APPLICATION> python
Python 3.7.6 | packaged by conda-forge | (default, Mar 23 2020, 22:22:21) [MSC v.1916 64 bit (AMD64)] on win32
Type
(flask-cog-terracotta) PS E:\00_UBUNTU_DRIVE\WATER_MONITORING_APPLICATION> python
Python 3.7.6 | packaged by conda-forge | (default, Mar 23 2020, 22:22:21) [MSC v.1916 64 bit (AMD64)] on win32
Type
|
By
geoterraimage1@...
·
#488
·
|
|
rio.plot.show with colorbar?
How can I add a colorbar after using rio.plot.show?
I've tried a bunch of things but have gotten various errors
Here's one way I tried:
fig, ax = plt.subplots(figsize = (16, 16))
How can I add a colorbar after using rio.plot.show?
I've tried a bunch of things but have gotten various errors
Here's one way I tried:
fig, ax = plt.subplots(figsize = (16, 16))
|
By
himat15@...
·
#487
·
|
|
Why does shape not return the number of channels
I was pretty surprised when I realized that my bug was due to ds.shape not showing the number of channels in its shape
i.e.
with rio.open(f, 'r') as ds:
ds_arr = ds.read()
I was pretty surprised when I realized that my bug was due to ds.shape not showing the number of channels in its shape
i.e.
with rio.open(f, 'r') as ds:
ds_arr = ds.read()
|
By
himat15@...
·
#486
·
|
|
Re: Inverted axis in numpy
Hi Gabriel,
I am not sure if I understood what you meant!!
Were you expecting to have the width in the first axis?
I think this behaviour (height first) is normal in rasterio and in many libraries
Hi Gabriel,
I am not sure if I understood what you meant!!
Were you expecting to have the width in the first axis?
I think this behaviour (height first) is normal in rasterio and in many libraries
|
By
Armstrong Manuvakola Ezequias Ngolo
·
#485
·
|
|
Inverted axis in numpy
Hi everyone. I started using rasterio a few days ago to read some DSM/DTM and process them using numba.
I was trying to debug some weird behaviour in my numba function and i realized that the "read"
Hi everyone. I started using rasterio a few days ago to read some DSM/DTM and process them using numba.
I was trying to debug some weird behaviour in my numba function and i realized that the "read"
|
By
gabriel@...
·
#484
·
|
|
Re: Asyncio + Rasterio for slow network requests?
Hey Sean,
Sorry, I should have been clearer.
As it stands, my statement is false: GDAL is of course designed to be thread-safe, so doing concurrent reads in different threads *should* work. But in
Hey Sean,
Sorry, I should have been clearer.
As it stands, my statement is false: GDAL is of course designed to be thread-safe, so doing concurrent reads in different threads *should* work. But in
|
By
Dion Häfner
·
#483
·
|
|
Re: Asyncio + Rasterio for slow network requests?
Hi Kyle, Dion:
Thank you for the details.
Dion, can you say a little more about reads not being thread-safe?
It's intended that we can call GDAL's RasterIO functions in different threads concurrently
Hi Kyle, Dion:
Thank you for the details.
Dion, can you say a little more about reads not being thread-safe?
It's intended that we can call GDAL's RasterIO functions in different threads concurrently
|
By
Sean Gillies
·
#482
·
|
|
Re: Asyncio + Rasterio for slow network requests?
Sorry for the slow response. As Vincent noted, just moving back to GDAL 2.4 made the process ~8x faster, from 1.7s to read to ~200ms to read each source tile.
> A constant time regardless of the
Sorry for the slow response. As Vincent noted, just moving back to GDAL 2.4 made the process ~8x faster, from 1.7s to read to ~200ms to read each source tile.
> A constant time regardless of the
|
By
kylebarron2@...
·
#481
·
|
|
Re: Asyncio + Rasterio for slow network requests?
Hi Vincent,
Thanks for the update. This situation points out a downside of using the warped VRT: it abstracts everything (network, reprojection, caching) and makes diagnosing problems difficult.
--
Hi Vincent,
Thanks for the update. This situation points out a downside of using the warped VRT: it abstracts everything (network, reprojection, caching) and makes diagnosing problems difficult.
--
|
By
Sean Gillies
·
#480
·
|