|
Implementing -scale functionality of gdal_translate
Is there any way to replicate the -scale functionality of gdal_translate in Rasterio to scale the input pixels of a geotiff to a different range?
Is there any way to replicate the -scale functionality of gdal_translate in Rasterio to scale the input pixels of a geotiff to a different range?
|
By
linden.kyle@...
·
#122
·
|
|
Re: Implementing -scale functionality of gdal_translate
Hi,
Rasterio's rio-convert program can linearly scale pixels and apply offsets:
$ rio convert --help
Usage: rio convert [OPTIONS] INPUTS... OUTPUT
Copy and convert raster datasets to other data
Hi,
Rasterio's rio-convert program can linearly scale pixels and apply offsets:
$ rio convert --help
Usage: rio convert [OPTIONS] INPUTS... OUTPUT
Copy and convert raster datasets to other data
|
By
Sean Gillies
·
#123
·
|
|
Re: Implementing -scale functionality of gdal_translate
Thanks, Sean. I apologize for not clarifying this, but even though I referenced the gdal translate tool I was looking to do this through the Rasterio API. I was able to take a look at the code for rio
Thanks, Sean. I apologize for not clarifying this, but even though I referenced the gdal translate tool I was looking to do this through the Rasterio API. I was able to take a look at the code for rio
|
By
linden.kyle@...
·
#124
·
|
|
Rasterio 1.0.14
Hi all,
Rasterio 1.0.14 is on PyPI now: https://pypi.org/project/rasterio/1.0.14/.
The changes are listed here: https://github.com/mapbox/rasterio/blob/master/CHANGES.txt#L4-L17. We've attempted to
Hi all,
Rasterio 1.0.14 is on PyPI now: https://pypi.org/project/rasterio/1.0.14/.
The changes are listed here: https://github.com/mapbox/rasterio/blob/master/CHANGES.txt#L4-L17. We've attempted to
|
By
Sean Gillies
·
#125
·
|
|
Re: Rasterio 1.0.14
Wow! This is awesome! I made similar changes to add GS support locally. I will pull 1.0.14 and see if all GCS related workflow works as expected in my Kubernetes cluster.
Thanks!
Madhav
Wow! This is awesome! I made similar changes to add GS support locally. I will pull 1.0.14 and see if all GCS related workflow works as expected in my Kubernetes cluster.
Thanks!
Madhav
|
By
Madhav Desetty
·
#126
·
|
|
Rasterio and pip 19
Hi all,
I was tripped up by the release of pip 19 and want to share what I learned so that you can avoid the same bruises.
Rasterio has a pyproject.toml file since version 1.0. This file specifies the
Hi all,
I was tripped up by the release of pip 19 and want to share what I learned so that you can avoid the same bruises.
Rasterio has a pyproject.toml file since version 1.0. This file specifies the
|
By
Sean Gillies
·
#127
·
|
|
Re: Rasterio and pip 19
Op vr 25 jan. 2019 om 22:45 schreef Sean Gillies via Groups.Io <sean@...>:
You can (nowadays) specify the numpy version depending on the python version in pyproject.toml, which should
Op vr 25 jan. 2019 om 22:45 schreef Sean Gillies via Groups.Io <sean@...>:
You can (nowadays) specify the numpy version depending on the python version in pyproject.toml, which should
|
By
Joris Van den Bossche
·
#128
·
|
|
Re: Rasterio 1.0.14
I setup rasterio 1.0.14 and try to do a rasterio.open with gs:// url and I get following error. I did set GOOGLE_APPLICATION_CREDENTIALS to json key file. What am I missing?
>>> import rasterio
>>>
I setup rasterio 1.0.14 and try to do a rasterio.open with gs:// url and I get following error. I did set GOOGLE_APPLICATION_CREDENTIALS to json key file. What am I missing?
>>> import rasterio
>>>
|
By
Madhav Desetty
·
#129
·
|
|
Re: Rasterio and pip 19
Thanks, Joris! I'm going to capture this in a rasterio ticket.
--
Sean Gillies
Thanks, Joris! I'm going to capture this in a rasterio ticket.
--
Sean Gillies
|
By
Sean Gillies
·
#130
·
|
|
Re: Rasterio 1.0.14
@Sean
I think something is not right with the PyPI distribution of rasterio 1.0.14. I did pip install rasterio into a clean virtualenv and it installed rasterio. See the pip show rasterio
@Sean
I think something is not right with the PyPI distribution of rasterio 1.0.14. I did pip install rasterio into a clean virtualenv and it installed rasterio. See the pip show rasterio
|
By
Madhav Desetty
·
#131
·
|
|
Re: Rasterio 1.0.14
Yes, you are absolutely right. Google cloud support landed in master and I failed to cherry pick it before 1.0.14 as I'd intended. Sorry! I'm going to release a 1.0.15 to fix this tonight.--
Sean
Yes, you are absolutely right. Google cloud support landed in master and I failed to cherry pick it before 1.0.14 as I'd intended. Sorry! I'm going to release a 1.0.15 to fix this tonight.--
Sean
|
By
Sean Gillies
·
#132
·
|
|
Re: Rasterio 1.0.14
Great! I am good for now through local rasterio 1.0.14 packaging but happy to test out GS support again once rasterio 1.0.15 is out.--
Madhav Desetty
Chief Software Architect
Airbus Aerial
(404)
Great! I am good for now through local rasterio 1.0.14 packaging but happy to test out GS support again once rasterio 1.0.15 is out.--
Madhav Desetty
Chief Software Architect
Airbus Aerial
(404)
|
By
Madhav Desetty
·
#133
·
|
|
Rasterio 1.0.15
Hi all,
1.0.15 is available on PyPI now and fixes two problems with 1.0.14 and its binary wheels. The first is that 1.0.14 didn't have the advertised Google cloud storage support. The second is that
Hi all,
1.0.15 is available on PyPI now and fixes two problems with 1.0.14 and its binary wheels. The first is that 1.0.14 didn't have the advertised Google cloud storage support. The second is that
|
By
Sean Gillies
·
#134
·
|
|
Re: Rasterio 1.0.15
@Sean
Just tested 1.0.15, GS support works great! Thanks...
Madhav
@Sean
Just tested 1.0.15, GS support works great! Thanks...
Madhav
|
By
Madhav Desetty
·
#135
·
|
|
Re: Rasterio 1.0.15
Hi again,
If you've installed a 1.0.15 rasterio wheel for Linux and are wondering where the HTTP/2 support is, it's in the new 1.0.15-1 wheels on PyPI now.
Contrary to what I announced earlier today,
Hi again,
If you've installed a 1.0.15 rasterio wheel for Linux and are wondering where the HTTP/2 support is, it's in the new 1.0.15-1 wheels on PyPI now.
Contrary to what I announced earlier today,
|
By
Sean Gillies
·
#136
·
|
|
Re: Rasterio 1.0.15
@Sean
I am building a Docker image with the requirements.txt file set to rasterio==1.0.15. Do I have to do anything specific to get the 1.0.15-1 wheels for Docker image running on Linux?
@Sean
I am building a Docker image with the requirements.txt file set to rasterio==1.0.15. Do I have to do anything specific to get the 1.0.15-1 wheels for Docker image running on Linux?
|
By
Madhav Desetty
·
#137
·
|
|
Re: Rasterio 1.0.15
Hi @Madhav,
On linux it should work with `rasterio==1.0.15`
Hi @Madhav,
On linux it should work with `rasterio==1.0.15`
|
By
vincent.sarago@...
·
#138
·
|
|
Re: Rasterio 1.0.15
Correct, there is no need to specify the build tag. There is also no way to override the build tag other than to specify the entire URL of the wheel, but that's a good thing.
--
Sean Gillies
Correct, there is no need to specify the build tag. There is also no way to override the build tag other than to specify the entire URL of the wheel, but that's a good thing.
--
Sean Gillies
|
By
Sean Gillies
·
#139
·
|
|
New rasterio versions don't handle blank SRS gracefully
Short version:
The following causes errors, in rasterio 1.0.15, but is fine in rasterio 1.0.9.
from rasterio.crs import CRS
print(CRS())The following are the only tests in rasterio to check blank
Short version:
The following causes errors, in rasterio 1.0.15, but is fine in rasterio 1.0.9.
from rasterio.crs import CRS
print(CRS())The following are the only tests in rasterio to check blank
|
By
nicholas.maxwell@...
·
#140
·
|
|
Re: New rasterio versions don't handle blank SRS gracefully
Hi Nicholas,
Thanks for the explanation. We have at least one more related regression in 1.0.15 and I intend to fix both of these in 1.0.16.--
Sean Gillies
Hi Nicholas,
Thanks for the explanation. We have at least one more related regression in 1.0.15 and I intend to fix both of these in 1.0.16.--
Sean Gillies
|
By
Sean Gillies
·
#141
·
|