|
Re: Implementing -scale functionality of gdal_translate
Hi Sean, I'm having some trouble with the implementation of this and was wondering if you might be able to give me a hand. Here's the code I am working with: https://pastebin.com/kecx0D2b. What I'm
Hi Sean, I'm having some trouble with the implementation of this and was wondering if you might be able to give me a hand. Here's the code I am working with: https://pastebin.com/kecx0D2b. What I'm
|
By
linden.kyle@...
·
#142
·
|
|
Reading an image by overlapped blocks of chosen depth
In rasterio, reading image array in the unit of blocks is pretty convenient and useful. However, Overlapping blocks could be very useful for certain applications which requires kernel wise processing
In rasterio, reading image array in the unit of blocks is pretty convenient and useful. However, Overlapping blocks could be very useful for certain applications which requires kernel wise processing
|
By
mail2abhisek.maiti@...
·
#143
·
|
|
Re: Implementing -scale functionality of gdal_translate
Ok, so it appears the issue was that I was attempting to do a windowed read outside the bounds of the geotiff (for TMS edge tiles) and `src.read()` was only returning the data inside the bounds since
Ok, so it appears the issue was that I was attempting to do a windowed read outside the bounds of the geotiff (for TMS edge tiles) and `src.read()` was only returning the data inside the bounds since
|
By
linden.kyle@...
·
#144
·
|
|
Re: Implementing -scale functionality of gdal_translate
Hi,
I apologize for being slow to reply, I've been occupied with fixing bugs in the last couple of releases.
In theory it is possible to add an option to the read method which will cast the data
Hi,
I apologize for being slow to reply, I've been occupied with fixing bugs in the last couple of releases.
In theory it is possible to add an option to the read method which will cast the data
|
By
Sean Gillies
·
#145
·
|
|
Re: Implementing -scale functionality of gdal_translate
Sean, no problem. Thanks for writing back. I'll keep that in mind for the future. What I ended up doing instead was modifying the tile window transform (which is passed to the reproject method) in the
Sean, no problem. Thanks for writing back. I'll keep that in mind for the future. What I ended up doing instead was modifying the tile window transform (which is passed to the reproject method) in the
|
By
linden.kyle@...
·
#146
·
|
|
Re: Implementing -scale functionality of gdal_translate
So I'm seeing some odd behavior now. I ended up trying the masked_array solution, but I'm seeing breaks in my data at the tile boundaries.
Here's what the data looks like if I use reprojection with
So I'm seeing some odd behavior now. I ended up trying the masked_array solution, but I'm seeing breaks in my data at the tile boundaries.
Here's what the data looks like if I use reprojection with
|
By
linden.kyle@...
·
#147
·
|
|
Re: Reading an image by overlapped blocks of chosen depth
I've put a couple of methods in my answer to your SO question, by expanding the block windows and also for arbitrary windows (unrelated to internal blocks/tiles).
I've put a couple of methods in my answer to your SO question, by expanding the block windows and also for arbitrary windows (unrelated to internal blocks/tiles).
|
By
Luke
·
#148
·
|
|
Re: Reading an image by overlapped blocks of chosen depth
I was not aware of the boundless reading. Fantastic implementation. Thanks.
I was not aware of the boundless reading. Fantastic implementation. Thanks.
|
By
mail2abhisek.maiti@...
·
#149
·
|
|
Rasterio 1.0.18
Hi all,
We've made three new releases this week to fix regressions introduced in version 1.0.14. Please upgrade to 1.0.18 to take advantage of the changes in 1.0.14, but without suffering from the
Hi all,
We've made three new releases this week to fix regressions introduced in version 1.0.14. Please upgrade to 1.0.18 to take advantage of the changes in 1.0.14, but without suffering from the
|
By
Sean Gillies
·
#150
·
|
|
Re: Implementing -scale functionality of gdal_translate
Hi,
Your code looks okay. I recommend padding your read window by a few pixels on each side so that tile_window, tile_data, and tile_transform are slight dilated. I think this is very likely to
Hi,
Your code looks okay. I recommend padding your read window by a few pixels on each side so that tile_window, tile_data, and tile_transform are slight dilated. I think this is very likely to
|
By
Sean Gillies
·
#151
·
|
|
Re: Implementing -scale functionality of gdal_translate
That worked perfectly. Thanks for all your help.
That worked perfectly. Thanks for all your help.
|
By
linden.kyle@...
·
#152
·
|
|
Rasterio 1.0.20
Hi all,
Rasterio 1.0.20 is on PyPI today. I hope you'll like the changes: https://github.com/mapbox/rasterio/blob/master/CHANGES.txt#L4-L24.
I discovered that 1.0.19 was defective while building linux
Hi all,
Rasterio 1.0.20 is on PyPI today. I hope you'll like the changes: https://github.com/mapbox/rasterio/blob/master/CHANGES.txt#L4-L24.
I discovered that 1.0.19 was defective while building linux
|
By
Sean Gillies
·
#153
·
|
|
Output to grib2?
Is there anyway to output to grib2 after performing map algebra? For example, If you are performing a calculation between two grib2 bands, which rasterio does quite well, are you able to transform the
Is there anyway to output to grib2 after performing map algebra? For example, If you are performing a calculation between two grib2 bands, which rasterio does quite well, are you able to transform the
|
By
Shane Mill - NOAA Affiliate
·
#154
·
|
|
Re: Output to grib2?
Hi Shane,
Rasterio's rio-convert command can convert from GeoTIFF to GRIB, so it should be possible
$ rio convert -f GRIB ~/code/rasterio/tests/data/RGB.byte.tif /tmp/rgb.grb2
$ rio info
Hi Shane,
Rasterio's rio-convert command can convert from GeoTIFF to GRIB, so it should be possible
$ rio convert -f GRIB ~/code/rasterio/tests/data/RGB.byte.tif /tmp/rgb.grb2
$ rio info
|
By
Sean Gillies
·
#155
·
|
|
Re: Output to grib2?
Sean, thanks for the quick response! You are correct, that does work. I think my issue may have been that I was using gdalinfo to check the resulting grib2 file, and my gdal version was older. When I
Sean, thanks for the quick response! You are correct, that does work. I think my issue may have been that I was using gdalinfo to check the resulting grib2 file, and my gdal version was older. When I
|
By
Shane Mill - NOAA Affiliate
·
#156
·
|
|
Python 2/3 compatibility management in rasterio
Hello everyone,
First of all, this is my occasion to say thanks for the rasterio project. It has been very helpful simplifying my life last year. I write a sofware that depends on rasterio, should
Hello everyone,
First of all, this is my occasion to say thanks for the rasterio project. It has been very helpful simplifying my life last year. I write a sofware that depends on rasterio, should
|
By
adrienoyono@...
·
#157
·
|
|
Re: Python 2/3 compatibility management in rasterio
Hi,
We've always intended to keeping testing dependencies separate and the recent inclusion of mock in runtime dependencies was a mistake. It's been corrected, but it will be a few more days until we
Hi,
We've always intended to keeping testing dependencies separate and the recent inclusion of mock in runtime dependencies was a mistake. It's been corrected, but it will be a few more days until we
|
By
Sean Gillies
·
#158
·
|
|
Re: Output to grib2?
Hey Sean,
I know that you were saying that you don't use grib2 often, but I wanted to follow up with the previous question.
I am able to output the numpy array to GRIB. Say that you have one band, you
Hey Sean,
I know that you were saying that you don't use grib2 often, but I wanted to follow up with the previous question.
I am able to output the numpy array to GRIB. Say that you have one band, you
|
By
Shane Mill - NOAA Affiliate
·
#159
·
|
|
Re: Python 2/3 compatibility management in rasterio
Awesome ! Many thanks !! I will stay tuned to the release of 1.0.22 then
Awesome ! Many thanks !! I will stay tuned to the release of 1.0.22 then
|
By
adrienoyono@...
·
#160
·
|
|
Rasterio 1.0.22
Hi all,
Rasterio wheels and sdist for 1.0.22 are on PyPI today. This release fixes two bugs reported in 1.0.21.
Changes=======1.0.22 (2019-03-20)-------------------- Add JPEG2000 to enums.Compression
Hi all,
Rasterio wheels and sdist for 1.0.22 are on PyPI today. This release fixes two bugs reported in 1.0.21.
Changes=======1.0.22 (2019-03-20)-------------------- Add JPEG2000 to enums.Compression
|
By
Sean Gillies
·
#161
·
|