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

Remove end_filename

This was used in old times to distinguish between triplets of
shapefiles. Now we have the philosophy of creating a dedicated
directory for a triplet. So the script `distribution_function.py` just
has to be run in the triplet directory.
parent 2a24718e
No related branches found
No related tags found
No related merge requests found
...@@ -16,7 +16,7 @@ def plot_distr_funct(x, label = None, ax = None): ...@@ -16,7 +16,7 @@ def plot_distr_funct(x, label = None, ax = None):
print("maximum value:", x[-1]) print("maximum value:", x[-1])
print("number of values:", nx, "\n") print("number of values:", nx, "\n")
def read(end_filename = ""): def read():
"""Read the three dbf files and return speed, radius and amplitude of """Read the three dbf files and return speed, radius and amplitude of
outermost contour, radius and amplitude of maximum speed contour, outermost contour, radius and amplitude of maximum speed contour,
as Numpy arrays. as Numpy arrays.
...@@ -26,9 +26,9 @@ def read(end_filename = ""): ...@@ -26,9 +26,9 @@ def read(end_filename = ""):
""" """
with shapefile.Reader("extremum" + end_filename) as extremum, \ with shapefile.Reader("extremum") as extremum, \
shapefile.Reader("outermost_contour" + end_filename) as outerm_cont, \ shapefile.Reader("outermost_contour") as outerm_cont, \
shapefile.Reader("max_speed_contour" + end_filename) as max_speed_cont: shapefile.Reader("max_speed_contour") as max_speed_cont:
speed = [] speed = []
rad_outer = [] rad_outer = []
rad_speed = [] rad_speed = []
...@@ -121,15 +121,7 @@ def plot_all(dict_list, label = None): ...@@ -121,15 +121,7 @@ def plot_all(dict_list, label = None):
label) label)
if __name__ == "__main__": if __name__ == "__main__":
import argparse d = read()
parser = argparse.ArgumentParser()
parser.add_argument("-e", "--end_filename",
help = "add character string after "
"extremum, outermost_contour and max_speed_contour",
default = "")
args = parser.parse_args()
d = read(args.end_filename)
plot_all([d]) plot_all([d])
plt.show() plt.show()
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