I am new to rasterio. I'm trying to open a tif file using this code:
import rasterio
dataset= rasterio.open('/home/zaianir/Documents/DB/serie_temporelle_s2/serie_temporelle_s2/Sentinel2_T31TCJ_MASKS.tif')
But I get this error:
AttributeError: module 'rasterio' has no attribute 'open'
How do I avoid this error?
rasteriodocumentation? It looks like it does not have anopenfunction. – PolyGeo Dec 05 '19 at 10:46openfunction. Please double check your file path. Also make sure you have a good install of rasterio. Doesimport rasteriowork? If these do not yield results, try a fresh install in a conda environment. – Aaron Jan 07 '20 at 13:58