Skip to content
Snippets Groups Projects
Commit 86072b68 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Limit which field data is unpacked

parent 4a64f87d
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ import numpy as np ...@@ -6,7 +6,7 @@ import numpy as np
cont_list = shapefile.Reader("cont_list") cont_list = shapefile.Reader("cont_list")
ssh_lev = [] ssh_lev = []
for rec in cont_list.iterRecords(): ssh_lev.append(rec.ssh) for rec in cont_list.iterRecords(fields = ["ssh"]): ssh_lev.append(rec[0])
ssh_lev = np.array(ssh_lev) ssh_lev = np.array(ssh_lev)
left = 0.95 * ssh_lev.min() left = 0.95 * ssh_lev.min()
right = 1.05 * ssh_lev.max() right = 1.05 * ssh_lev.max()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment