|
Re: TypeError: open() takes at most 8 arguments (14 given) when writing
I think the issue is that you need to use `rasterio.open`.
I think the issue is that you need to use `rasterio.open`.
|
By
Alan Snow
·
#709
·
|
|
TypeError: open() takes at most 8 arguments (14 given) when writing
Hi guys,
I'm trying to write to an array to a tiff as follows:
profile.update(driver="GTiff", count=1)
with open('res.tiff', 'w', **profile) as dst:
dst.write(thresh.astype(rio.uint8), 1)
However, I'm
Hi guys,
I'm trying to write to an array to a tiff as follows:
profile.update(driver="GTiff", count=1)
with open('res.tiff', 'w', **profile) as dst:
dst.write(thresh.astype(rio.uint8), 1)
However, I'm
|
By
ashnair0007@...
·
#708
·
|
|
16 bit to 8 bit conversion using rasterio
How can I convert a 16 bit tiff to an 8 bit tiff using rasterio. I can do this via gdal_translate so I was wondering if there's a rasterio equivalent?
How can I convert a 16 bit tiff to an 8 bit tiff using rasterio. I can do this via gdal_translate so I was wondering if there's a rasterio equivalent?
|
By
ashnair0007@...
·
#707
·
|
|
Re: Merge bug?
Yes, all rasters have nodata set to match the correct nodata value. QGIS correctly mask the nodata zone(transparent).
Yes, all rasters have nodata set to match the correct nodata value. QGIS correctly mask the nodata zone(transparent).
|
By
Marco
·
#706
·
|
|
Re: Merge bug?
One thing to check would be if the nodata values are properly set on the rasters. If they are not, then merging could cause the nodata values to fill in those areas instead of the correct values.
One thing to check would be if the nodata values are properly set on the rasters. If they are not, then merging could cause the nodata values to fill in those areas instead of the correct values.
|
By
Alan Snow
·
#705
·
|
|
Merge bug?
I want to make a mosaic of satellite images.
I have 7 images clipped each one to fill my BBOX exactly. Loading that images in QGIS i can see that is totally fulfilled and without gaps.
Now, reading
I want to make a mosaic of satellite images.
I have 7 images clipped each one to fill my BBOX exactly. Loading that images in QGIS i can see that is totally fulfilled and without gaps.
Now, reading
|
By
Marco
·
#704
·
|
|
Rasterio 1.2.0
Hi all,
A source distribution and binary wheels for manylinux1 and macosx are on PyPI now: https://pypi.org/project/rasterio/1.2.0/#files. These wheels include PROJ 7.2.1 and GDAL 3.2.1 and no longer
Hi all,
A source distribution and binary wheels for manylinux1 and macosx are on PyPI now: https://pypi.org/project/rasterio/1.2.0/#files. These wheels include PROJ 7.2.1 and GDAL 3.2.1 and no longer
|
By
Sean Gillies
·
#703
·
|
|
rasterio 1.2b4
Hi all,
I think this may be it, the last pre-1.2.0 release. Would love to know if you find any issues with it.
What a day!
--
Sean Gillies
Hi all,
I think this may be it, the last pre-1.2.0 release. Would love to know if you find any issues with it.
What a day!
--
Sean Gillies
|
By
Sean Gillies
·
#702
·
|
|
rio-color 1.0.2
Hi all,
Version 1.0.2 of rio-color is on PyPI today. It has one bug fix, a change to the rasterio requirement's version specifier which filters out pre-releases. Installing rio-color 1.0.1 could
Hi all,
Version 1.0.2 of rio-color is on PyPI today. It has one bug fix, a change to the rasterio requirement's version specifier which filters out pre-releases. Installing rio-color 1.0.1 could
|
By
Sean Gillies
·
#701
·
|
|
Re: reading with a window doesn't honour window shape
Note that setting out_shape to (1200, 1200) will likely read a (1200, 1199) shaped chunk of data and resample it to (1200, 1200); which is not exactly the same as reading a 1200*1200 window.
Kind
Note that setting out_shape to (1200, 1200) will likely read a (1200, 1199) shaped chunk of data and resample it to (1200, 1200); which is not exactly the same as reading a 1200*1200 window.
Kind
|
By
Loïc Dutrieux
·
#700
·
|
|
Re: reading with a window doesn't honour window shape
Thanks Guillaume, that did the trick :)
Would also love to know the reason why that is needed.
best
Paolo
--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter:
Thanks Guillaume, that did the trick :)
Would also love to know the reason why that is needed.
best
Paolo
--
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter:
|
By
Paolo Corti
·
#699
·
|
|
Re: reading with a window doesn't honour window shape
Hi,
If you add `out_shape=(1200, 1200)` to your `read()` call it returns an array with the right shape. I don't know exactly why you need to specify this though.
Best,
Guillaume
Hi,
If you add `out_shape=(1200, 1200)` to your `read()` call it returns an array with the right shape. I don't know exactly why you need to specify this though.
Best,
Guillaume
|
By
Guillaume Lostis <guillaume@...>
·
#698
·
|
|
reading with a window doesn't honour window shape
Hi all
I have the following problem: I want to read a dataset using a window with a specific shape, but the window shape isn't always honored from the returned array.
You can replicate this problem
Hi all
I have the following problem: I want to read a dataset using a window with a specific shape, but the window shape isn't always honored from the returned array.
You can replicate this problem
|
By
Paolo Corti
·
#697
·
|
|
Re: gdal_proximity
Thanks. I'll give that a go.
Thanks. I'll give that a go.
|
By
Spencer Gardner
·
#696
·
|
|
Re: Rasterio installation on Amazon/AWS/EC2/notebook instance
Hi,
I don't know anything about AWS notebook instances and am not a regular conda user, so my help might be a little sketchy. In my experience, one cannot incrementally upgrade or install new packages
Hi,
I don't know anything about AWS notebook instances and am not a regular conda user, so my help might be a little sketchy. In my experience, one cannot incrementally upgrade or install new packages
|
By
Sean Gillies
·
#695
·
|
|
Re: gdal_proximity
Hi Spencer,
You're not overlooking anything. The rasterio project doesn't surface GDALComputeProximity. There are pointers to equivalent functionality in scipy at
Hi Spencer,
You're not overlooking anything. The rasterio project doesn't surface GDALComputeProximity. There are pointers to equivalent functionality in scipy at
|
By
Sean Gillies
·
#694
·
|
|
Rasterio installation on Amazon/AWS/EC2/notebook instance
I am attempting to install rasterio on an AWS notebook instance (essentially managed EC2 with Jupyter installed).
This should be straightforward but I have already sunk several hours without success.
I am attempting to install rasterio on an AWS notebook instance (essentially managed EC2 with Jupyter installed).
This should be straightforward but I have already sunk several hours without success.
|
By
robmarkcole@...
·
#693
·
|
|
Rasterio 1.2b3
Hi all,
Rasterio 1.2b3 is on PyPI and has a fix for https://github.com/mapbox/rasterio/issues/2079.
--
Sean Gillies
Hi all,
Rasterio 1.2b3 is on PyPI and has a fix for https://github.com/mapbox/rasterio/issues/2079.
--
Sean Gillies
|
By
Sean Gillies
·
#692
·
|
|
Georeference and warp a drone image based on sensor orientation and location using transform.from_gcps()
I have been flying some drone surveys over the ocean and need to properly project and georeference and warp my images. I have all the information I think I need: lat, lon, altitude, yaw, pitch, and
I have been flying some drone surveys over the ocean and need to properly project and georeference and warp my images. I have all the information I think I need: lat, lon, altitude, yaw, pitch, and
|
By
Patrick Gray
·
#691
·
|
|
Rasterio 1.2b2
Hi all,
Rasterio 1.2b2 is on PyPI now. We've made metadata reading more forgiving of unexpected values and changed the Cython language level for .pyx files to "3". See
Hi all,
Rasterio 1.2b2 is on PyPI now. We've made metadata reading more forgiving of unexpected values and changed the Cython language level for .pyx files to "3". See
|
By
Sean Gillies
·
#690
·
|