|
Re: Python rasterio for saveing GeoTIFF files and read in ArcGIS or QGIS
Dear Sean,
Thank you very much for your help.
I appreciate it.
Regards
Gabriel
Dear Sean,
Thank you very much for your help.
I appreciate it.
Regards
Gabriel
|
By
Gabriel Cotlier
·
#218
·
|
|
Re: Python rasterio for saveing GeoTIFF files and read in ArcGIS or QGIS
Thank you for providing a complete example of your code and the ArcMap error message. Without those details, it can be hard to provide help.
When you open the files for writing, there is one thing
Thank you for providing a complete example of your code and the ArcMap error message. Without those details, it can be hard to provide help.
When you open the files for writing, there is one thing
|
By
Sean Gillies
·
#217
·
|
|
Python rasterio for saveing GeoTIFF files and read in ArcGIS or QGIS
After following the steps in the tutorial of the Planet website (https://developers.planet.com/tutorials/convert-planetscope-imagery-from-radiance-to-reflectance/), I want to save each individual band
After following the steps in the tutorial of the Planet website (https://developers.planet.com/tutorials/convert-planetscope-imagery-from-radiance-to-reflectance/), I want to save each individual band
|
By
Gabriel Cotlier
·
#216
·
|
|
save
After following the steps in the tutorial of the Planet website (https://developers.planet.com/tutorials/convert-planetscope-imagery-from-radiance-to-reflectance/), I want to save each individual band
After following the steps in the tutorial of the Planet website (https://developers.planet.com/tutorials/convert-planetscope-imagery-from-radiance-to-reflectance/), I want to save each individual band
|
By
Gabriel Cotlier
·
#215
·
|
|
Rasterio 1.0.23
Hi all,
Rasterio 1.0.23 is on PyPI now. It has a number of important bug fixes:
- rio-calc output is divided into chunks of user-specified size to constrain the amount of memory used (#1668).-
Hi all,
Rasterio 1.0.23 is on PyPI now. It has a number of important bug fixes:
- rio-calc output is divided into chunks of user-specified size to constrain the amount of memory used (#1668).-
|
By
Sean Gillies
·
#214
·
|
|
Re: Can't read in a Landsat geotiff and use multiple threads to write out different windows at the same time
Thanks Sean, very helpful and makes sense.--
Ryan Avery
Graduate Student, WAVES Lab
Department of Geography
University of California, Santa Barbara
http://caylor.eri.ucsb.edu/people/avery/
Thanks Sean, very helpful and makes sense.--
Ryan Avery
Graduate Student, WAVES Lab
Department of Geography
University of California, Santa Barbara
http://caylor.eri.ucsb.edu/people/avery/
|
By
Ryan Avery
·
#213
·
|
|
Re: Can't read in a Landsat geotiff and use multiple threads to write out different windows at the same time
The VRT_SHARED_SOURCE option only affects the connection pool within the VRT driver code and that's not relevant to your code as far as I can see.
A single opened rasterio dataset cannot be safely
The VRT_SHARED_SOURCE option only affects the connection pool within the VRT driver code and that's not relevant to your code as far as I can see.
A single opened rasterio dataset cannot be safely
|
By
Sean Gillies
·
#212
·
|
|
Can't read in a Landsat geotiff and use multiple threads to write out different windows at the same time
I moved this github issue over here since it seems like more of a usage/help question. Below is the issue with a reproducible example if you have a Landsat
I moved this github issue over here since it seems like more of a usage/help question. Below is the issue with a reproducible example if you have a Landsat
|
By
Ryan Avery
·
#211
·
|
|
Re: NameError: name 'Window' is not defined
Thanks for both your help! I see the import statement in the docs now, cheers!
-Quin
Thanks for both your help! I see the import statement in the docs now, cheers!
-Quin
|
By
quinsen.joel@...
·
#210
·
|
|
Re: NameError: name 'Window' is not defined
Thanks for the help, rickD!
In https://github.com/mapbox/rasterio/commit/eebf54b74fa0f718cb8baaa44aa20616e405b4e4 I added the missing Window class import. Read the Docs should be updated in a couple
Thanks for the help, rickD!
In https://github.com/mapbox/rasterio/commit/eebf54b74fa0f718cb8baaa44aa20616e405b4e4 I added the missing Window class import. Read the Docs should be updated in a couple
|
By
Sean Gillies
·
#209
·
|
|
Re: NameError: name 'Window' is not defined
you just need the class in your namespace, try:
`from rasterio.windows import Window`
I would agree it's not easy from the docs to know where to go and find this.
cheers
~rickD
you just need the class in your namespace, try:
`from rasterio.windows import Window`
I would agree it's not easy from the docs to know where to go and find this.
cheers
~rickD
|
By
debboutr@...
·
#208
·
|
|
Re: NameError: name 'Window' is not defined
Hi Quin,
The Window class is defined in the rasterio.windows module and you must explicitly import it into your program's code like this:
from rasterio.windows import Window
Example code in our
Hi Quin,
The Window class is defined in the rasterio.windows module and you must explicitly import it into your program's code like this:
from rasterio.windows import Window
Example code in our
|
By
Sean Gillies
·
#207
·
|
|
NameError: name 'Window' is not defined
Hello. I'm new to this forum, so let me know if there are any problems with my question here.
I am trying to use rasterio's windowed reading ability and I am hoping to use the following structure as
Hello. I'm new to this forum, so let me know if there are any problems with my question here.
I am trying to use rasterio's windowed reading ability and I am hoping to use the following structure as
|
By
quinsen.joel@...
·
#206
·
|
|
Re: WarpedVRT and resampling ?
Hi Sean, sorry for not being really clear.
> Can you explain what processes produced those images? What program produced the blurry one and what program produced the non-blurry one? Which resampling
Hi Sean, sorry for not being really clear.
> Can you explain what processes produced those images? What program produced the blurry one and what program produced the non-blurry one? Which resampling
|
By
vincent.sarago@...
·
#205
·
|
|
Re: WarpedVRT and resampling ?
Hi Vincent,
Can you explain what processes produced those images? What program produced the blurry one and what program produced the non-blurry one? Which resampling algorithms were used?
Yes, you
Hi Vincent,
Can you explain what processes produced those images? What program produced the blurry one and what program produced the non-blurry one? Which resampling algorithms were used?
Yes, you
|
By
Sean Gillies
·
#204
·
|
|
WarpedVRT and resampling ?
This was previously discussed on multiple Issues and PR:
- https://github.com/mapbox/rasterio/issues/1206
- https://github.com/mapbox/rasterio/pull/1238
-
This was previously discussed on multiple Issues and PR:
- https://github.com/mapbox/rasterio/issues/1206
- https://github.com/mapbox/rasterio/pull/1238
-
|
By
vincent.sarago@...
·
#203
·
|
|
Re: tempfile.NamedTemporaryFile behaving as /vsimem and eating all the machine memory
Vincent.
At https://github.com/mapbox/rasterio/blob/master/rasterio/__init__.py#L191, a big GeoTIFF is created in RAM. Then at https://github.com/mapbox/rasterio/blob/master/rasterio/__init__.py#L199
Vincent.
At https://github.com/mapbox/rasterio/blob/master/rasterio/__init__.py#L191, a big GeoTIFF is created in RAM. Then at https://github.com/mapbox/rasterio/blob/master/rasterio/__init__.py#L199
|
By
Sean Gillies
·
#202
·
|
|
Re: tempfile.NamedTemporaryFile behaving as /vsimem and eating all the machine memory
Thanks Sean this is really helpful and love the `temp.name` solution.
About the second point, do you have any idea why `/vsimem` driver need so much memory when exiting/closing ? Should I raise this
Thanks Sean this is really helpful and love the `temp.name` solution.
About the second point, do you have any idea why `/vsimem` driver need so much memory when exiting/closing ? Should I raise this
|
By
vincent.sarago@...
·
#201
·
|
|
Re: tempfile.NamedTemporaryFile behaving as /vsimem and eating all the machine memory
Hi Vincent,
This is expected (if not well-documented) behavior. tempfile.NamedTemporaryFile() returns an open Python file object, not a filename. GDAL can't use a Python file object, so in that case
Hi Vincent,
This is expected (if not well-documented) behavior. tempfile.NamedTemporaryFile() returns an open Python file object, not a filename. GDAL can't use a Python file object, so in that case
|
By
Sean Gillies
·
#200
·
|
|
Re: Is it possible to create a rasterio object without exporting a file?
Thank you, Alan!
that example is very helpful. i'll dig into this a bit deeper. xarray seems like a powerful tool for raster processing.
i've wanted to plan with it a bit more regardless.
Leah
Thank you, Alan!
that example is very helpful. i'll dig into this a bit deeper. xarray seems like a powerful tool for raster processing.
i've wanted to plan with it a bit more regardless.
Leah
|
By
Leah Wasser
·
#199
·
|