|
Using Rasterio with GDAL 2.4.x
Hi Christina, Yes. It is my understanding that if you download one of the GDAL wheels from https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal and then the matching rasterio wheel from https://www.lfd.uc
Hi Christina, Yes. It is my understanding that if you download one of the GDAL wheels from https://www.lfd.uci.edu/~gohlke/pythonlibs/#gdal and then the matching rasterio wheel from https://www.lfd.uc
|
By
Sean Gillies
· #424
·
|
|
Trying to make custom WKT for a non-Earth projection to spatially reference images taken with microscope
Hi Ryan, This sounds like a job for WKT2 EngineeringCRS. https://proj.org/development/reference/cpp/crs.html#classosgeo_1_1proj_1_1crs_1_1EngineeringCRS I do not know how to use it with rasterio, but
Hi Ryan, This sounds like a job for WKT2 EngineeringCRS. https://proj.org/development/reference/cpp/crs.html#classosgeo_1_1proj_1_1crs_1_1EngineeringCRS I do not know how to use it with rasterio, but
|
By
Sean Gillies
· #423
·
|
|
Memory error, rasterio merge
Hi Simon, Rasterio's merge function is not well optimized with respect to memory. An output array is allocated such that it covers all the inputs. If your inputs don't overlap, this could be 4TB or mo
Hi Simon, Rasterio's merge function is not well optimized with respect to memory. An output array is allocated such that it covers all the inputs. If your inputs don't overlap, this could be 4TB or mo
|
By
Sean Gillies
· #418
·
|
|
Reading NetCDF file as inMemoryFile
Vincent, Can you try naming the driver when you open the in-memory dataset? Something like with MemoryFile(...) as memfile: with memfile.open(driver="netCDF") as dataset: ....
Vincent, Can you try naming the driver when you open the in-memory dataset? Something like with MemoryFile(...) as memfile: with memfile.open(driver="netCDF") as dataset: ....
|
By
Sean Gillies
· #397
·
|
|
Define invalid regions of VRT file in a way that allows windowing
Hi Sean, You're correct, mask() does require a dataset object (no numpy array) and will read the entire dataset. Can you use multiple, smaller, VRTs? Using a shapefile is fine. If you want to remove t
Hi Sean, You're correct, mask() does require a dataset object (no numpy array) and will read the entire dataset. Can you use multiple, smaller, VRTs? Using a shapefile is fine. If you want to remove t
|
By
Sean Gillies
· #393
·
|
|
Rasterio 1.1.2
Hi all, An sdist and manylinux1 and macosx wheels for pythons 2.7, 3.5-3.8 are on PyPI now. Please note that these wheels contain the base PROJ datum grids (version 1.8) and are somewhat larger than p
Hi all, An sdist and manylinux1 and macosx wheels for pythons 2.7, 3.5-3.8 are on PyPI now. Please note that these wheels contain the base PROJ datum grids (version 1.8) and are somewhat larger than p
|
By
Sean Gillies
· #392
·
|
|
exporting single banc with a colormap to RGB.tif
Hi, The library doesn't automatically convert single band color-mapped data to 3-band RGB data. You'll need to construct a new output array filled with values from the colormap and then write that to
Hi, The library doesn't automatically convert single band color-mapped data to 3-band RGB data. You'll need to construct a new output array filled with values from the colormap and then write that to
|
By
Sean Gillies
· #391
·
|
|
rasterio vsicurl issues with docker-compose
Thank you for following up. Getting a resolution, when we can, is super important for a forum like this. In this case, the error rasterio._err.CPLE_OpenFailedError: '/vsicurl/http://oin-hotosm.s3.amaz
Thank you for following up. Getting a resolution, when we can, is super important for a forum like this. In this case, the error rasterio._err.CPLE_OpenFailedError: '/vsicurl/http://oin-hotosm.s3.amaz
|
By
Sean Gillies
· #386
·
|
|
New cp38 wheels for rasterio 1.1.1
Hi all, Manylinux1 and macosx wheels for Python 3.8 (tagged cp38) are on PyPI alongside the wheels for versions 3.7 and earlier that we uploaded on 2019-11-04. I hope you find them useful!
Hi all, Manylinux1 and macosx wheels for Python 3.8 (tagged cp38) are on PyPI alongside the wheels for versions 3.7 and earlier that we uploaded on 2019-11-04. I hope you find them useful!
|
By
Sean Gillies
· #384
·
|
|
need help installing rasterio with WebP
Hi Tom, I'm not an Anaconda user and don't know how to build packages for it. I think you'll want to find a conda channel that has rasterio packages with WebP support built in. I think that's most lik
Hi Tom, I'm not an Anaconda user and don't know how to build packages for it. I think you'll want to find a conda channel that has rasterio packages with WebP support built in. I think that's most lik
|
By
Sean Gillies
· #381
·
|
|
rio-hist 1.0.0
Hi all, Version 1.0.0 for rio-hist is on PyPI now. Note that there is no wheel for Python 2.7. I expect the package to work with 2.7, and the sdist will serve, but the project doesn't officially suppo
Hi all, Version 1.0.0 for rio-hist is on PyPI now. Note that there is no wheel for Python 2.7. I expect the package to work with 2.7, and the sdist will serve, but the project doesn't officially suppo
|
By
Sean Gillies
· #379
·
|
|
rio-hist 1.0b1 release
Thanks for test driving, Matt. It's a nice package and I'm glad to see it back in good condition. I'm reminded that we've talked about aggregating the plugins in mapbox org repos into a single project
Thanks for test driving, Matt. It's a nice package and I'm glad to see it back in good condition. I'm reminded that we've talked about aggregating the plugins in mapbox org repos into a single project
|
By
Sean Gillies
· #378
·
|
|
rio-hist 1.0b1 release
Hi all, I realized today that the rio-hist CLI plugin was nearly derelict. It didn't work with rasterio versions ~= 1.0 and hadn't been built in a long time. I gave it an overhaul, put a 1.0b1 release
Hi all, I realized today that the rio-hist CLI plugin was nearly derelict. It didn't work with rasterio versions ~= 1.0 and hadn't been built in a long time. I gave it an overhaul, put a 1.0b1 release
|
By
Sean Gillies
· #376
·
|
|
rasterio vsicurl issues with docker-compose
GDAL's verbose HTTP "logs" are printed directly to stderr and won't be captured by the Python logger. Can you try to record them somehow? I think we'll see some clues there. I don't want to speculate,
GDAL's verbose HTTP "logs" are printed directly to stderr and won't be captured by the Python logger. Can you try to record them somehow? I think we'll see some clues there. I don't want to speculate,
|
By
Sean Gillies
· #375
·
|
|
rasterio vsicurl issues with docker-compose
Hi, There's a big, but not obvious, difference between 1. rio info https://example.com/file.tif and 2. gdalinfo https://example.com/file.tif In the first case, rasterio dispatches https (or http) URLs
Hi, There's a big, but not obvious, difference between 1. rio info https://example.com/file.tif and 2. gdalinfo https://example.com/file.tif In the first case, rasterio dispatches https (or http) URLs
|
By
Sean Gillies
· #372
·
|
|
Problem with AAIGrid overwrite
I suspect the error is coming from the gdal module function, not from rasterio. If it was coming from rasterio, you'd see a log message instead.
I suspect the error is coming from the gdal module function, not from rasterio. If it was coming from rasterio, you'd see a log message instead.
|
By
Sean Gillies
· #366
·
|
|
Problem with AAIGrid overwrite
Amine, I'm unable to reproduce this with rasterio 1.1.0. The following script can be executed over and over again and the shade.asc file is overwritten with no error and no messages. import rasterio w
Amine, I'm unable to reproduce this with rasterio 1.1.0. The following script can be executed over and over again and the shade.asc file is overwritten with no error and no messages. import rasterio w
|
By
Sean Gillies
· #362
·
|
|
metadata and profile: What's the difference?
Indeed they are largely redundant. The meta property came first. Then we introduced a profile property to better support the pattern of using one dataset's profile as keyword arguments for creating ne
Indeed they are largely redundant. The meta property came first. Then we introduced a profile property to better support the pattern of using one dataset's profile as keyword arguments for creating ne
|
By
Sean Gillies
· #360
·
|
|
reproject from a tiff to another tiff gives "destination band 1 appears to be read only"
Hi, It's a good thing that you opened the destination (population) file in "r" mode. Otherwise, it could have been overwritten. You must create an output array for the reprojected data and pass it as
Hi, It's a good thing that you opened the destination (population) file in "r" mode. Otherwise, it could have been overwritten. You must create an output array for the reprojected data and pass it as
|
By
Sean Gillies
· #351
·
|
|
Clarification on rio bounds --sequence/--collection
Hi, I agree, it is confusing. And there is a bug here. The --sequence/--collection switch was intended to allow printing a sequence of JSON texts (GeoJSON feature or bbox) or a single GeoJSON feature
Hi, I agree, it is confusing. And there is a bug here. The --sequence/--collection switch was intended to allow printing a sequence of JSON texts (GeoJSON feature or bbox) or a single GeoJSON feature
|
By
Sean Gillies
· #344
·
|