aboutsummaryrefslogtreecommitdiff
path: root/docs/plot
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-09-20 18:17:43 +0200
committerKristian Evers <kristianevers@gmail.com>2018-09-20 18:17:43 +0200
commitcf0e6926b21019c835e4f0f11f1a4f11e5fd8fdc (patch)
tree18dae591bf42ab0bef2a1b2a91cf90900f035e53 /docs/plot
parent98e2e0996263aec2321d6fd98f1acd65a5b84147 (diff)
downloadPROJ-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')
-rw-r--r--docs/plot/environment.yml86
-rw-r--r--docs/plot/plot.py4
2 files changed, 88 insertions, 2 deletions
diff --git a/docs/plot/environment.yml b/docs/plot/environment.yml
new file mode 100644
index 00000000..3cf84a16
--- /dev/null
+++ b/docs/plot/environment.yml
@@ -0,0 +1,86 @@
+name: proj
+channels:
+ - defaults
+dependencies:
+ - blas=1.0=mkl
+ - bzip2=1.0.6=h1de35cc_5
+ - ca-certificates=2018.03.07=0
+ - cairo=1.14.12=hc4e6be7_4
+ - certifi=2018.8.24=py37_1
+ - click=6.7=py37_0
+ - click-plugins=1.0.3=py37_1
+ - cligj=0.4.0=py37_1
+ - curl=7.61.0=ha441bb4_0
+ - cycler=0.10.0=py37_0
+ - descartes=1.1.0=py37_0
+ - expat=2.2.6=h0a44026_0
+ - fiona=1.7.12=py37h0dff353_0
+ - fontconfig=2.13.0=h5d5b041_1
+ - freetype=2.9.1=hb4e5f40_0
+ - freexl=1.0.5=h1de35cc_0
+ - gdal=2.2.4=py37h6440ff4_1
+ - geos=3.6.2=h5470d99_2
+ - gettext=0.19.8.1=h15daf44_3
+ - giflib=5.1.4=h1de35cc_1
+ - glib=2.56.2=hd9629dc_0
+ - hdf4=4.2.13=h39711bb_2
+ - hdf5=1.10.2=hfa1e0ec_1
+ - icu=58.2=h4b95b61_1
+ - intel-openmp=2019.0=118
+ - jpeg=9b=he5867d9_2
+ - json-c=0.13.1=h3efe00b_0
+ - kealib=1.4.7=h40e48e4_6
+ - kiwisolver=1.0.1=py37h0a44026_0
+ - krb5=1.16.1=h24a3359_6
+ - libboost=1.67.0=hebc422b_4
+ - libcurl=7.61.0=hf30b1f0_0
+ - libcxx=4.0.1=h579ed51_0
+ - libcxxabi=4.0.1=hebd6815_0
+ - libdap4=3.19.1=h3d3e54a_0
+ - libedit=3.1.20170329=hb402a30_2
+ - libffi=3.2.1=h475c297_4
+ - libgdal=2.2.4=h7b1ea53_1
+ - libgfortran=3.0.1=h93005f0_2
+ - libiconv=1.15=hdd342a3_7
+ - libkml=1.3.0=hbe12b63_4
+ - libnetcdf=4.6.1=h4e6abe9_1
+ - libpng=1.6.34=he12f830_0
+ - libpq=10.5=hf30b1f0_0
+ - libspatialite=4.3.0a=ha12ebda_19
+ - libssh2=1.8.0=h322a93b_4
+ - libtiff=4.0.9=hcb84e12_2
+ - libuuid=1.0.3=h6bb4b03_2
+ - libxml2=2.9.8=hab757c2_1
+ - matplotlib=2.2.3=py37h54f8f79_0
+ - mkl=2019.0=118
+ - mkl_fft=1.0.4=py37h5d10147_1
+ - mkl_random=1.0.1=py37h5d10147_1
+ - munch=2.3.2=py37_0
+ - ncurses=6.1=h0a44026_0
+ - numpy=1.15.1=py37h6a91979_0
+ - numpy-base=1.15.1=py37h8a80b8c_0
+ - openjpeg=2.3.0=hb95cd4c_1
+ - openssl=1.0.2p=h1de35cc_0
+ - pcre=8.42=h378b8a2_0
+ - pip=10.0.1=py37_0
+ - pixman=0.34.0=hca0a616_3
+ - poppler=0.65.0=ha097c24_1
+ - poppler-data=0.4.9=0
+ - proj4=5.0.1=h1de35cc_0
+ - pyparsing=2.2.0=py37_1
+ - python=3.7.0=hc167b69_0
+ - python-dateutil=2.7.3=py37_0
+ - pytz=2018.5=py37_0
+ - readline=7.0=h1de35cc_5
+ - setuptools=40.2.0=py37_0
+ - shapely=1.6.4=py37h20de77a_0
+ - six=1.11.0=py37_1
+ - sqlite=3.24.0=ha441bb4_0
+ - tk=8.6.8=ha441bb4_0
+ - tornado=5.1=py37h1de35cc_0
+ - wheel=0.31.1=py37_0
+ - xerces-c=3.2.1=h44e365a_0
+ - xz=5.2.4=h1de35cc_4
+ - zlib=1.2.11=hf3cbc9b_2
+prefix: /usr/local/miniconda3/envs/proj
+
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]))