|
Re: Using Python rasterio package to read gif file and world file, re-project to another picture
Hi Guodong,
If you save the .gif and the .gfw file to the same directory, so that they are siblings, rasterio will find the .gfw automatically when the .gif file is opened. This behavior is inherited
Hi Guodong,
If you save the .gif and the .gfw file to the same directory, so that they are siblings, rasterio will find the .gfw automatically when the .gif file is opened. This behavior is inherited
|
By
Sean Gillies
·
#439
·
|
|
Using Python rasterio package to read gif file and world file, re-project to another picture
Hello,
I want to re-project a radar image (https://radar.weather.gov/Conus/RadarImg/latest_radaronly.gif) which is in NAD83/EPSG4326 to WGS84/Pseudo-Mercator/EPSG3857. There is a world file
Hello,
I want to re-project a radar image (https://radar.weather.gov/Conus/RadarImg/latest_radaronly.gif) which is in NAD83/EPSG4326 to WGS84/Pseudo-Mercator/EPSG3857. There is a world file
|
By
gd.zhu@...
·
#438
·
|
|
Re: Creating rasterio dataset without IO
Thanks for the suggestion.
Those functions are exactly what I would like to use, but I am having troubles with them. I think it's a rasterio issue.
I have tried using rioxarray and XGeo, but the
Thanks for the suggestion.
Those functions are exactly what I would like to use, but I am having troubles with them. I think it's a rasterio issue.
I have tried using rioxarray and XGeo, but the
|
By
Nic Annau <nicannau@...>
·
#437
·
Edited
|
|
Re: Creating rasterio dataset without IO
Nic,
if your goal is to mask the data, you can replicate some of the processing steps in the `mask` chain:
https://github.com/mapbox/rasterio/blob/master/rasterio/mask.py
Specifically, you'd need to
Nic,
if your goal is to mask the data, you can replicate some of the processing steps in the `mask` chain:
https://github.com/mapbox/rasterio/blob/master/rasterio/mask.py
Specifically, you'd need to
|
By
Brendan Ward
·
#436
·
|
|
Re: Creating rasterio dataset without IO
Hi Nic,
I think you are looking for rioxarray. An example of what you want to do is here:
https://corteva.github.io/rioxarray/stable/examples/clip_geom.html
Best,
Alan
Hi Nic,
I think you are looking for rioxarray. An example of what you want to do is here:
https://corteva.github.io/rioxarray/stable/examples/clip_geom.html
Best,
Alan
|
By
Alan Snow
·
#435
·
|
|
Creating rasterio dataset without IO
Hello,
The `rasterio.mask.mask` function is great for masking a raster using a polygon, however, I'm hoping to eliminate unnecessary IO and provide `rasterio.mask.mask` with a modified raster instead
Hello,
The `rasterio.mask.mask` function is great for masking a raster using a polygon, however, I'm hoping to eliminate unnecessary IO and provide `rasterio.mask.mask` with a modified raster instead
|
By
Nic Annau <nicannau@...>
·
#434
·
|
|
Re: Convert gray band from dataset to RGB with rasterio for population density
Hi,
Sorry for the slow response.
I downloaded a small portion of the data, GHS_POP_E2015_GLOBE_R2019A_4326_9ss_V1_0_18_4.tif, a block that covers some of the South of France and North Africa. It's the
Hi,
Sorry for the slow response.
I downloaded a small portion of the data, GHS_POP_E2015_GLOBE_R2019A_4326_9ss_V1_0_18_4.tif, a block that covers some of the South of France and North Africa. It's the
|
By
Sean Gillies
·
#433
·
|
|
Re: Convert gray band from dataset to RGB with rasterio for population density
This is a re worded question that probably sounds a bit better: https://gis.stackexchange.com/questions/351639/rasterio-change-singelband-gray-to-singleband-pseudo-color-for-multiple-colors
Quoted:
This is a re worded question that probably sounds a bit better: https://gis.stackexchange.com/questions/351639/rasterio-change-singelband-gray-to-singleband-pseudo-color-for-multiple-colors
Quoted:
|
By
@pyaw
·
#432
·
|
|
Re: Convert gray band from dataset to RGB with rasterio for population density
Here are some edits from stack that came about since my question may not be interpreted correctly:
Edit: I am using the full dataset (Global dataset) which is located in the hyperlink below the map
Here are some edits from stack that came about since my question may not be interpreted correctly:
Edit: I am using the full dataset (Global dataset) which is located in the hyperlink below the map
|
By
@pyaw
·
#431
·
|
|
Convert gray band from dataset to RGB with rasterio for population density
https://gis.stackexchange.com/questions/351614/convert-gray-band-from-dataset-to-rgb-with-rasterio-for-population-density
I'm pretty new to GIS so please correct and terminology or logical fallacies:
https://gis.stackexchange.com/questions/351614/convert-gray-band-from-dataset-to-rgb-with-rasterio-for-population-density
I'm pretty new to GIS so please correct and terminology or logical fallacies:
|
By
@pyaw
·
#430
·
|
|
Re: Translating/shifting a raster in memory
Hi,
If you open a rasterio dataset in "r+" mode, you can modify its transform attribute. Here's a code example:
from affine import Affine
import rasterio
with rasterio.open("example.tif", "r+") as
Hi,
If you open a rasterio dataset in "r+" mode, you can modify its transform attribute. Here's a code example:
from affine import Affine
import rasterio
with rasterio.open("example.tif", "r+") as
|
By
Sean Gillies
·
#429
·
|
|
Re: Using Rasterio with GDAL 2.4.x
Hi Christina,
Because Gohlke's wheels are not known to pip, you must either
1) install the appropriate GDAL wheel *before* installing the rasterio wheel, or
2) use the --find-links option documented
Hi Christina,
Because Gohlke's wheels are not known to pip, you must either
1) install the appropriate GDAL wheel *before* installing the rasterio wheel, or
2) use the --find-links option documented
|
By
Sean Gillies
·
#428
·
|
|
Re: Using Rasterio with GDAL 2.4.x
Hi,
Thank you for your responses. I have previously installed rasterio via the Gohlke wheel file alongside QGIS quite successfully by using a properly configured osgeo4w shell to ensure it
Hi,
Thank you for your responses. I have previously installed rasterio via the Gohlke wheel file alongside QGIS quite successfully by using a properly configured osgeo4w shell to ensure it
|
By
Ratcliff, Christina (A&F, Waite Campus)
·
#427
·
|
|
Translating/shifting a raster in memory
Hi all, I'm trying to apply dx, dy corrections to a DEM raster. This requires shifting the entire raster, and I was wondering if it is possible to do this in rasterio?
Hi all, I'm trying to apply dx, dy corrections to a DEM raster. This requires shifting the entire raster, and I was wondering if it is possible to do this in rasterio?
|
By
matas.lauzadis@...
·
#426
·
|
|
Re: Using Rasterio with GDAL 2.4.x
You can install QGIS from conda-forge nowadays, so that could be an option to install both QGIS and rasterio that should be compatible with each other (I think, didn't try on windows):
You can install QGIS from conda-forge nowadays, so that could be an option to install both QGIS and rasterio that should be compatible with each other (I think, didn't try on windows):
|
By
Joris Van den Bossche
·
#425
·
|
|
Re: 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
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
|
By
Sean Gillies
·
#424
·
|
|
Re: 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
·
|
|
Using Rasterio with GDAL 2.4.x
Hi,
I’m trying to determine if it is possible to install Rasterio against GDAL 2.4.x on windows using the Gohlke wheels.
When installing rasterio versions 1.0.25 and above, it detects that
Hi,
I’m trying to determine if it is possible to install Rasterio against GDAL 2.4.x on windows using the Gohlke wheels.
When installing rasterio versions 1.0.25 and above, it detects that
|
By
Ratcliff, Christina (A&F, Waite Campus)
·
#422
·
|
|
Trying to make custom WKT for a non-Earth projection to spatially reference images taken with microscope
I'm working with non spatially-referenced images produced from a laser ablation system. Along with the image, the software produces an "align" file of the same name - an xml file that contains the XY
I'm working with non spatially-referenced images produced from a laser ablation system. Along with the image, the software produces an "align" file of the same name - an xml file that contains the XY
|
By
Ryan Avery
·
#421
·
|
|
Re: Unexpected result using rasterio windowed writing - Access window out of range in RasterIO()
Replying to myself to show my last update on the situation...
I have made some interesting improvements:
I am now able to write the full extent of raster `A` correctly over raster `B`, having the same
Replying to myself to show my last update on the situation...
I have made some interesting improvements:
I am now able to write the full extent of raster `A` correctly over raster `B`, having the same
|
By
umbertofilippo@...
·
#420
·
|