diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2018-09-20 18:17:43 +0200 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2018-09-20 18:17:43 +0200 |
| commit | cf0e6926b21019c835e4f0f11f1a4f11e5fd8fdc (patch) | |
| tree | 18dae591bf42ab0bef2a1b2a91cf90900f035e53 /docs/plot/plot.py | |
| parent | 98e2e0996263aec2321d6fd98f1acd65a5b84147 (diff) | |
| download | PROJ-cf0e6926b21019c835e4f0f11f1a4f11e5fd8fdc.tar.gz PROJ-cf0e6926b21019c835e4f0f11f1a4f11e5fd8fdc.zip | |
Update plot.py script
Added conda environment file too, hopefully making it simpler to get
started in the future.
Diffstat (limited to 'docs/plot/plot.py')
| -rw-r--r-- | docs/plot/plot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/plot/plot.py b/docs/plot/plot.py index 04a3d423..139281bf 100644 --- a/docs/plot/plot.py +++ b/docs/plot/plot.py @@ -62,7 +62,7 @@ from shapely.ops import transform from descartes import PolygonPatch PROJ = '../../src/proj' -PROJ_LIB = '../../nad' +PROJ_LIB = '../../data' LINE_LOW = 'data/coastline.geojson' LINE_MED = 'data/coastline50.geojson' @@ -118,7 +118,7 @@ def interp_coords(coords, tol): xy.append((x[offset:i], y[offset:i])) # Interpolate between points above tolerance. - n = np.ceil(dsts[i] / tol) + n = int(np.ceil(dsts[i] / tol)) x1 = np.linspace(x[i], x[i + 1], n + 1) y1 = np.linspace(y[i], y[i + 1], n + 1) xy.append((x1[:-1], y1[:-1])) |
