Commit 89773db9 authored by CEVAER's avatar CEVAER
Browse files

Modified rasterio import

parent 9a10d52e
import numpy as np
import rasterio
from rasterio import features
import owi
import os
import xarray as xr
......@@ -25,7 +25,7 @@ matplot = False
def contour_indices(arr, lon):
arr[arr.mask] = 0
shapes = next(rasterio.features.shapes(arr))
shapes = next(features.shapes(arr))
coords = shapes[0]['coordinates'][0]
idx = np.array(coords, dtype='i4')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment