|
Re: Asyncio + Rasterio for slow network requests?
Hi All,
I'll answer for Kyle but he can jump back if needed.
The problem Kyle was facing was due to GDAL3 (running on AWS Lambda, CentOS) being extremely slow for image reprojection.
We faced this
Hi All,
I'll answer for Kyle but he can jump back if needed.
The problem Kyle was facing was due to GDAL3 (running on AWS Lambda, CentOS) being extremely slow for image reprojection.
We faced this
|
By
vincent.sarago@...
·
#479
·
|
|
Re: Asyncio + Rasterio for slow network requests?
Hey Kyle,
maybe I can help out here.
- asyncio's run_in_executor does the exact same thing as using a thread pool, it's just a different API. Until both GDAL and rasterio explicitly support this,
Hey Kyle,
maybe I can help out here.
- asyncio's run_in_executor does the exact same thing as using a thread pool, it's just a different API. Until both GDAL and rasterio explicitly support this,
|
By
Dion Häfner
·
#478
·
|
|
Re: Asyncio + Rasterio for slow network requests?
Hi,
First of all, I'm not very familiar with rio-tiler. Hopefully, Vincent will help us out.
A constant time regardless of the amount of overlap suggests to me that your source files may lack the
Hi,
First of all, I'm not very familiar with rio-tiler. Hopefully, Vincent will help us out.
A constant time regardless of the amount of overlap suggests to me that your source files may lack the
|
By
Sean Gillies
·
#477
·
|
|
Re: Silencing PROJ errors/warnings
The warnings are bare when using rasterio (neither of those two prefixes).
Packages were all installed via conda/conda-forge on Windows 10:
gdal version 3.0.4
rasterio version 1.1.3
proj version
The warnings are bare when using rasterio (neither of those two prefixes).
Packages were all installed via conda/conda-forge on Windows 10:
gdal version 3.0.4
rasterio version 1.1.3
proj version
|
By
gberardinelli@...
·
#476
·
|
|
Re: Silencing PROJ errors/warnings
Hi Greg,
Do you see a bare "proj_create_from_database: datum not found" or do you see
ERROR 1: PROJ: proj_create_from_database: datum not found
as in https://github.com/OSGeo/gdal/issues/2321?
Which
Hi Greg,
Do you see a bare "proj_create_from_database: datum not found" or do you see
ERROR 1: PROJ: proj_create_from_database: datum not found
as in https://github.com/OSGeo/gdal/issues/2321?
Which
|
By
Sean Gillies
·
#475
·
|
|
Silencing PROJ errors/warnings
Hi all,
As of GDAL 3 I've started seeing warnings written to stderr on open, such as:
It's possible that these datasets have malformed projection information, but in cases where I don't care I'd like
Hi all,
As of GDAL 3 I've started seeing warnings written to stderr on open, such as:
It's possible that these datasets have malformed projection information, but in cases where I don't care I'd like
|
By
gberardinelli@...
·
#474
·
|
|
Re: Applying Color Ramp to Single-Band Grayscale Images
Hi,
Have you seen https://rasterio.readthedocs.io/en/latest/topics/color.html#writing-colormaps ? It shows how to write a colormap (or color "ramp") to a new file. You can also open an existing file
Hi,
Have you seen https://rasterio.readthedocs.io/en/latest/topics/color.html#writing-colormaps ? It shows how to write a colormap (or color "ramp") to a new file. You can also open an existing file
|
By
Sean Gillies
·
#473
·
|
|
Re: [EXTERNAL] [rasterio] Applying Color Ramp to Single-Band Grayscale Images
Actually, that second link looked like he had the format where it was using decimal based values, that might work. I'll give it a try. Thanks!
Actually, that second link looked like he had the format where it was using decimal based values, that might work. I'll give it a try. Thanks!
|
By
nathan.raley@...
·
#472
·
|
|
Re: [EXTERNAL] [rasterio] Applying Color Ramp to Single-Band Grayscale Images
Thanks Trent,
I have looked into that, but the part of using the colormap.txt portion still is a bit confusing. I haven't been able to find sufficient documentation on how to create that file to
Thanks Trent,
I have looked into that, but the part of using the colormap.txt portion still is a bit confusing. I haven't been able to find sufficient documentation on how to create that file to
|
By
nathan.raley@...
·
#471
·
|
|
Re: [EXTERNAL] [rasterio] Applying Color Ramp to Single-Band Grayscale Images
Nathan,
Not sure about using rasterio, but have you tried gdaldem using "color-relief"?
more: https://khufkens.com/2016/03/09/map-colours-onto-data-values-in-gdal/
shows creating a colorized image
Nathan,
Not sure about using rasterio, but have you tried gdaldem using "color-relief"?
more: https://khufkens.com/2016/03/09/map-colours-onto-data-values-in-gdal/
shows creating a colorized image
|
By
Hare, Trent M
·
#470
·
|
|
Applying Color Ramp to Single-Band Grayscale Images
Does anyone have any methods of applying a color ramp to a grayscale image?
I have a NDVI calculated image I am trying to apply color ramp for the decimal based value ranges, but have no idea how to
Does anyone have any methods of applying a color ramp to a grayscale image?
I have a NDVI calculated image I am trying to apply color ramp for the decimal based value ranges, but have no idea how to
|
By
nathan.raley@...
·
#469
·
|
|
Asyncio + Rasterio for slow network requests?
I'm trying to improve performance of dynamic satellite imagery tiling,
I'm trying to improve performance of dynamic satellite imagery tiling,
|
By
kylebarron2@...
·
#468
·
|
|
Re: Overwrite raster in place
It's not possible to change the shape of a raster dataset, the number of bands, or the data type in place.
--
Sean Gillies
It's not possible to change the shape of a raster dataset, the number of bands, or the data type in place.
--
Sean Gillies
|
By
Sean Gillies
·
#467
·
|
|
Overwrite raster in place
I have two rasters, and one of them has one more column than the other. So I want to remove the last column in the larger one.
How can I change the raster width in place without having to do a with
I have two rasters, and one of them has one more column than the other. So I want to remove the last column in the larger one.
How can I change the raster width in place without having to do a with
|
By
himat15@...
·
#466
·
|
|
Re: Rasterio Python Library Merging R, G, B Bands to Create a GeoReferenced GeoTiff
Hi,
I have a couple comments on the code. You need to pass `tiled=True` to rasterio.open(), "tiled", and you should pass blockxsize and blockysize parameters as well. These must be multiples of 16.
Hi,
I have a couple comments on the code. You need to pass `tiled=True` to rasterio.open(), "tiled", and you should pass blockxsize and blockysize parameters as well. These must be multiples of 16.
|
By
Sean Gillies
·
#465
·
|
|
Re: Decimated and windowed read in rasterio
Thanks to @Sean Gillies.
Posting here the solution I also posted on gis.stackexchange.com (https://gis.stackexchange.com/a/353869/9518).
Maybe it would be useful for others in search of a solution for
Thanks to @Sean Gillies.
Posting here the solution I also posted on gis.stackexchange.com (https://gis.stackexchange.com/a/353869/9518).
Maybe it would be useful for others in search of a solution for
|
By
umbertofilippo@...
·
#464
·
Edited
|
|
Re: Decimated and windowed read in rasterio
The overview_level did the trick!
Thank you so much, I was after this for a long time.
Umberto Minora
The overview_level did the trick!
Thank you so much, I was after this for a long time.
Umberto Minora
|
By
umbertofilippo@...
·
#463
·
|
|
Re: Decimated and windowed read in rasterio
This is very interesting, I could not find the reference to overview_level in the documentation.
Definitely going to test it!
My aim is to read a specific overview (the greatest level) from a raster
This is very interesting, I could not find the reference to overview_level in the documentation.
Definitely going to test it!
My aim is to read a specific overview (the greatest level) from a raster
|
By
umbertofilippo@...
·
#462
·
|
|
Re: Any way to ensure cell resolutions stay square?
Try going the other way - multiply the resolution by a scale factor (i.e. 3 in your case) and divide the dimensions - see example gist
Try going the other way - multiply the resolution by a scale factor (i.e. 3 in your case) and divide the dimensions - see example gist
|
By
Luke
·
#461
·
|
|
Any way to ensure cell resolutions stay square?
I am resampling a raster to become a different resolution, but it seems like the resolutions are not entirely accurate.
Here is the code I have (the code is very standard, taken from the
I am resampling a raster to become a different resolution, but it seems like the resolutions are not entirely accurate.
Here is the code I have (the code is very standard, taken from the
|
By
himat15@...
·
#460
·
|