rasterio Questions
2
Solved
I have a conda environment with rasterio installed and a whole load of other libraries, including gdal.
When I do:
import rasterio
on jupyter notebook, it loads fine and I can utilise it's meth...
2
I've been having trouble dealing with no data values in Python's rasterio package when applying a polygon mask on a raster data set. This particular raster is Landsat uint8 with 7 bands and the no ...
2
Solved
I am trying to change the CRS of a raster tif file. When I assign new CRS using the following code:
with rio.open(solar_path, mode='r+') as raster:
raster.crs = rio.crs.CRS({'init': 'epsg:27700'}...
4
How can I add a colorbar after using rio.plot.show?
I've tried a bunch of things but have gotten various errors
Here's one way I tried:
fig, ax = plt.subplots(figsize = (16, 16))
retted = rio.pl...
Asparagus asked 20/4, 2020 at 16:13
4
I need to save out a 3 band geotiff to file. I am currently using rasterio and when I go to write out the 3 band imagery I get the error Source shape (1, 3445, 4703, 4) is inconsistent with given i...
2
I have 3 variables namely R, G, B. I want to make a PNG image based on the three using rasterio. I tried using np.dstack to stack the 3 images and use the result to write it.
Using rasterio, I trie...
2
3
Solved
I have a series of unreferenced aerial images that I would like to georeference using python. The images are identical spatially (they are actually frames extracted from a video), and I obtained gr...
1
when running pip install mapbox-tilesets I get the following error on my windows 10 computer during the Collecting rasterio process specifically the requirement to build wheel where I get the error...
2
Solved
Expected behavior and actual behavior.
I expected to compile a script using rasterio into an executable using pyinstaller. The script runs fine from within my python environment. However I am not ...
Shere asked 5/11, 2018 at 7:3
2
I am working on windows 10 and encountered an error while executing pip install rasterio in anaconda prompt.
(base) C:\Users\skywalker>pip install rasterio
Collecting rasterio
Using cached ht...
0
I am trying to re-projected a .tiff file to EPSG:32638 with the following code.
Versions I have installed:
Rasterio version 1.1.5
Numpy version 1.18.1
This is the code I am using:https://rasterio...
Isocyanide asked 17/6, 2020 at 13:9
1
Solved
I have the following numpy array:
supervised.shape
(1270, 1847)
I am trying to use the following code to save it to GeoTIFF using rasterio:
with rasterio.open('/my/path/ReferenceRaster.tif') as...
Unlucky asked 6/11, 2019 at 8:31
3
Solved
I am trying to update my rasterio version from 0.25 to 0.32 on a python 2.7 installation, but running up against foll. issue. Any info on how to fix it?
Running setup.py clean for rasterio
Failed...
1
Solved
Trying to process a large satellite image (~10GB). For memory efficient processing chunk of image (block/tile) is being loaded into memory in each iteration.
The sample code for this as below:
...
Pack asked 3/2, 2019 at 8:43
1
Solved
I am reading a jpg image and its associated world file in Python with Rasterio like this:
import rasterio
with rasterio.open('/path/to/file.jpg') as src:
print(src.width, src.height)
print(src....
1
Solved
I'm using some Sentinel-2 satellite images in python. Now I have no issues using the newer ones (past 2016). But I need to use some from 2016. These are not preprocessed in the same way by the Euro...
2
Solved
I am using the following packages:
import pandas as pd
import numpy as np
import xarray as xr
import geopandas as gpd
I have the following objects storing data:
print(precip_da)
Out[]:
<xa...
Perennial asked 18/7, 2018 at 9:35
1
Solved
I'd like to take raster (satellite imagery) data, and build a Dataset or DataArray, to speed up my image processing (I have to work on multi-band, multi-date satellite imagery a lot).
The data com...
Toughen asked 11/1, 2018 at 0:40
1
Solved
I have a raster time series stored in multiple GeoTIFF files (*.tif) that I'd like to convert to a single NetCDF file. The data is uint16.
I could probably use gdal_translate to convert each imag...
Snowstorm asked 23/10, 2017 at 22:15
1
Solved
I am trying to create a land mask to apply to satellite imagery, that will set the pixels in a raster intersecting with a land mass to 0.
After experimenting with gdal, skimage, pyplot etc. I've f...
1
© 2022 - 2024 — McMap. All rights reserved.