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

Polish

parent 034d96fe
No related branches found
No related tags found
No related merge requests found
...@@ -28,13 +28,11 @@ for ishape, rec in enumerate(readers["extremum"].iterRecords()): ...@@ -28,13 +28,11 @@ for ishape, rec in enumerate(readers["extremum"].iterRecords()):
if rec["days_1950"] == days_1950 and rec["eddy_index"] == eddy_index: if rec["days_1950"] == days_1950 and rec["eddy_index"] == eddy_index:
break break
else: else:
sys.exit("Not found") sys.exit("Eddy with this date and index not found")
#--
for basename in ["extremum", "outermost_contour", "max_speed_contour"]: for layer in ["extremum", "outermost_contour", "max_speed_contour"]:
filename = path.join(args.directory, basename) shapeRec = readers[layer].shapeRecord(ishape)
shapeRec = readers[basename].shapeRecord(ishape) print("\n", layer, ":")
print("\n", filename, ":")
if shapeRec.shape.shapeType == shapefile.NULL: if shapeRec.shape.shapeType == shapefile.NULL:
dct = shapeRec.record.as_dict() dct = shapeRec.record.as_dict()
......
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