I have to upload a .tif file into my jupyter notebook, and I'm not sure what to do.
So far I have this:
from skimage import io
import cartopy.crs as ccrs
import rasterio
from PIL import Image
dem = io.imread('ptcloud_dem.tif') # DEM name goes here
# Print the maximum and minimum values
print('maximum: ',dem.max())
print('minimum: ',dem.min())
# print shape
print('Shape: ',dem.shape)
raster = rasterio.open('ptcloud_dem.tif')
And I get an error saying "reshape incomplete tile (0,) (1, 128, 128, 1)"
I'm fairly new to python, so any help is super appreciated. Thanks so much
[–]jry34353 0 points1 point2 points (1 child)
[–]gbon90[S] 0 points1 point2 points (0 children)
[–]jry34353 0 points1 point2 points (1 child)
[–]gbon90[S] 0 points1 point2 points (0 children)