Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
Detection eddies
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Authenticating with a password
with git over http
works again
. More information
here
.
Show more breadcrumbs
IPSL
LMD
DPAO
Detection eddies
Commits
4411c857
Commit
4411c857
authored
2 years ago
by
Lionel GUEZ
Browse files
Options
Downloads
Patches
Plain Diff
Polish
parent
51e63056
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Trajectories/trajectories.py
+6
-14
6 additions, 14 deletions
Trajectories/trajectories.py
with
6 additions
and
14 deletions
Trajectories/trajectories.py
+
6
−
14
View file @
4411c857
#!/usr/bin/env python3
#!/usr/bin/env python3
"""
This script loads a segmented cf graph in the gt format, iterates
"""
This script loads the graph of segments, with cost functions and
on all of the edges and cost functions and generates the trajectories
identifies trajectories.
as done in MATLAB. Segments (nodes) have a new vertex property called
"
traj_prop
"
that holds the trajectory ID that that segment belongs to. The
Inputs: the graph of segments produced by Graph-tool (gt or graphml
output is either an expanded JSON file and/or an edgelist file with
format). Output: trajectories as lists of segments and as lists of
all of the trajectories.
instantaneous eddies, in JSon files.
Inputs:
the gt segmented cf graph
Output:
trajectories.json that contains all of the trajectories
"""
"""
import
graph_tool
import
graph_tool
from
os
import
path
import
json
import
json
import
csv
from
graph_tool
import
util
,
search
import
sys
import
sys
import
numpy
as
np
import
numpy
as
np
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment