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

Follow PEP 8 - Code lay-out - Imports

parent 78f5fff8
No related branches found
No related tags found
No related merge requests found
import shapefile
import math
from os import path
import numpy as np
import sys
import bisect
import os
import shapefile
import numpy as np
class SHPC_class:
"""We are assuming that eddies are indexed from 1, without jump, for
each date.
......
#!/usr/bin/env python3
import networkx as nx
import shapefile
from os import path
from networkx import nx_agraph
import os
import json
import util_eddies
import networkx as nx
import shapefile
from networkx import nx_agraph
import util_eddies
def read_eddy_graph(edgelist, shpc_dir=None, orientation="Cyclones"):
if os.access(edgelist, os.R_OK):
......
#!/usr/bin/env python3
import json
import util_eddies
import bisect
import sys
import util_eddies
if len(sys.argv) != 4:
sys.exit("Required arguments: last-date input-file output-file")
......
#!/usr/bin/env python3
import util_eddies
import random
import numpy as np
import util_eddies
def get_extr_coord(traj, e_overestim, SHPC, orientation):
"""Get the coordinates of the extrema of instantaneous eddies along a
......@@ -63,13 +64,15 @@ def get_duration(expanded_traj):
if __name__ == "__main__":
import util_eddies
import matplotlib.pyplot as plt
import json
import cartopy.crs as ccrs
import argparse
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
import cartopy.feature as cfeature
import util_eddies
parser = argparse.ArgumentParser()
parser.add_argument("expanded_traj", help="JSon file")
parser.add_argument("SHPC", help="directory")
......
......@@ -12,14 +12,16 @@ instantaneous eddies in each trajectory are in ascending order.
"""
import graph_tool
from graph_tool import topology
import json
import sys
import util_eddies
import numpy as np
import time
import graph_tool
from graph_tool import topology
import numpy as np
import util_eddies
def new_traj(ind_traj, traj_prop, n, traj_vert_ind):
"""Assign new trajectory to vertex index n."""
......
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