Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
df-aggregator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Oleksandr Barabash
df-aggregator
Commits
a213f3e1
Unverified
Commit
a213f3e1
authored
Jul 31, 2022
by
Corey Koval
Committed by
GitHub
Jul 31, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4 from godsic/heading-arrow
Indicate receiver heading with gray dashed line
parents
ab83dbfc
62fdf1f7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletions
+19
-1
df-aggregator.py
df-aggregator.py
+19
-1
No files found.
df-aggregator.py
View file @
a213f3e1
...
...
@@ -32,7 +32,7 @@ from sklearn.cluster import DBSCAN
from
sklearn.preprocessing
import
StandardScaler
,
minmax_scale
from
geojson
import
MultiPoint
,
Feature
,
FeatureCollection
from
czml3
import
Packet
,
Document
,
Preamble
from
czml3.properties
import
Position
,
Polyline
,
Polyline
Outline
Material
,
Color
,
Material
from
czml3.properties
import
Position
,
Polyline
,
Polyline
Material
,
PolylineOutlineMaterial
,
PolylineDash
Material
,
Color
,
Material
from
multiprocessing
import
Process
,
Queue
from
bottle
import
route
,
run
,
request
,
get
,
put
,
response
,
redirect
,
template
,
static_file
from
bottle.ext.websocket
import
GeventWebSocketServer
,
websocket
...
...
@@ -627,6 +627,7 @@ def write_rx_czml():
green
=
[
0
,
255
,
0
,
255
]
orange
=
[
255
,
140
,
0
,
255
]
red
=
[
255
,
0
,
0
,
255
]
gray
=
[
128
,
128
,
128
,
255
]
receiver_point_packets
=
[]
lob_packets
=
[]
top
=
Preamble
(
name
=
"Receivers"
)
...
...
@@ -666,6 +667,23 @@ def write_rx_czml():
positions
=
Position
(
cartographicDegrees
=
[
lob_start_lon
,
lob_start_lat
,
height
,
lob_stop_lon
,
lob_stop_lat
,
height
])
)))
heading_start_lat
=
x
.
latitude
heading_start_lon
=
x
.
longitude
heading_stop_lat
,
heading_stop_lon
=
v
.
direct
(
heading_start_lat
,
heading_start_lon
,
x
.
heading
,
x
.
lob_length
())
lob_packets
.
append
(
Packet
(
id
=
f
"HEADING-{x.station_id}-{index}"
,
polyline
=
Polyline
(
material
=
PolylineMaterial
(
polylineDash
=
PolylineDashMaterial
(
color
=
Color
(
rgba
=
gray
),
gapColor
=
Color
(
rgba
=
[
0
,
0
,
0
,
0
])
)),
clampToGround
=
True
,
width
=
2
,
positions
=
Position
(
cartographicDegrees
=
[
heading_start_lon
,
heading_start_lat
,
height
,
heading_stop_lon
,
heading_stop_lat
,
height
])
)))
else
:
lob_packets
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment