title: AttributeError: module 'rasterio' has no attribute 'mask'
body: <p>I am trying to learn sentinelsat by following some tutorials. Part of the codes goes like this.</p>
  <pre><code>import rasterio as rio
  import geopandas as gpd
  
  nReserve = gpd.read_file('NReserve/NaturalReserve_Polygon.shp')
  
  nReserve_proj = nReserve.to_crs({'init': 'epsg:32633'})
  
  with rio.open(&quot;RGB.tiff&quot;) as src:
      out_image, out_transform = rio.mask.mask(src, nReserve_proj.geometry,crop=True)
      out_meta = src.meta.copy()
      out_meta.update({&quot;driver&quot;: &quot;GTiff&quot;,
                   &quot;height&quot;: out_image.shape[1],
                   &quot;width&quot;: out_image.shape[2],
                   &quot;transform&quot;: out_transform})
      
  with rio.open(&quot;RGB_masked.tif&quot;, &quot;w&quot;, **out_meta) as dest:
      dest.write(out_image)
  </code></pre>
  <p>The line <code>out_image, out_transform = rio.mask.mask(src, nReserve_proj.geometry,crop=True)</code> is giving me error. The error goes like this --</p>
  <pre><code>AttributeError                            Traceback (most recent call last)
  &lt;ipython-input-45-c1fc22fa2c5d&gt; in &lt;module&gt;()
        2 
        3 with rio.open(&quot;RGB.tiff&quot;) as src:
  ----&gt; 4     out_image, out_transform = rio.mask.mask(src, nReserve_proj.geometry,crop=True)
        5     out_meta = src.meta.copy()
        6     out_meta.update({&quot;driver&quot;: &quot;GTiff&quot;,
  
  AttributeError: module 'rasterio' has no attribute 'mask'
  </code></pre>
  <p>But rasterio's documentation it shows rasterio.mask.mask() exists. from doc --</p>
  <pre><code>rasterio.mask.mask(dataset, shapes, all_touched=False, invert=False, nodata=None, filled=True, crop=False, pad=False, pad_width=0.5, indexes=None)
  </code></pre>
  <p>What went wrong here? I am new so I am not understanding what to check.</p>