Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wave QC
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
Container Registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSUG
RESIF
Wave QC
Merge requests
!124
Resolve "Improve colorbar colors"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Improve colorbar colors"
132-improve-colorbar-colors
into
main
Overview
0
Commits
3
Pipelines
3
Changes
1
Merged
Simon Panay
requested to merge
132-improve-colorbar-colors
into
main
1 year ago
Overview
0
Commits
3
Pipelines
3
Changes
1
Expand
Closes
#132 (closed)
#131 (closed)
Edited
1 year ago
by
Simon Panay
0
0
Merge request reports
Compare
main
version 1
214a409d
1 year ago
main (base)
and
latest version
latest version
ff708cc9
3 commits,
1 year ago
version 1
214a409d
1 commit,
1 year ago
1 file
+
25
−
27
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
waveqc/utils.py
+
25
−
27
Options
@@ -6,20 +6,22 @@ from obspy.clients.fdsn.header import platform_
from
.config
import
settings
ZMAX
=
350
HEATMAP_LAYOUT_NETWORK
=
{
"
colorbar
"
:
{
"
title_text
"
:
"
Data Quality
"
,
"
title_text
"
:
"
Data Quality
and Completeness
"
,
"
title_side
"
:
"
top
"
,
"
labelalias
"
:
{
0
:
"
Station closed
"
,
50
:
"
No data
"
,
100
:
"
Not readable
"
,
150
:
"
"
,
200
:
"
Deconvolution fails
"
,
250
:
"
"
,
300
:
"
Deconvolution pass
"
,
350
:
"
"
,
}
,
"
tickvals
"
:
[
25
,
75
,
125
,
200
,
260
,
300
,
340
],
"
ticktext
"
:
[
"
Channel closed
"
,
"
No data
"
,
"
Not readable
"
,
"
Deconvolution fails
"
,
"
0%
"
,
"
Deconvolution pass
"
,
"
100%
"
,
]
,
"
lenmode
"
:
"
pixels
"
,
"
len
"
:
300
,
"
yanchor
"
:
"
top
"
,
@@ -34,29 +36,25 @@ HEATMAP_LAYOUT_NETWORK = {
"
<extra></extra>
"
),
"
colorscale
"
:
[
# [0, "whitesmoke"], # noqa: ERA001
# [0.17, "#a50026"], # noqa: ERA001
# [0.33, "#f46d43"], # noqa: ERA001
# [0.66, "#ffffbf"], # noqa: ERA001
# [0.67, "#d9ef8b"], # noqa: ERA001
# [0.999, "#1a9850"],
# [250/ZMAX, "#d9ef8b"], # noqa: ERA001
# [0.99, "#1a9850"],
# [1, "#006837"],
[
0
,
"
black
"
],
[
0.0
7
1
,
"
black
"
],
[
0.100
,
"
whitesmoke
"
],
[
0.
2
00
,
"
whitesmoke
"
],
[
0.250
,
"
#a50026
"
],
[
0.350
,
"
#a50026
"
],
[
0.429
,
"
#f46d43
"
],
[
0.713
,
"
#ffffbf
"
],
[
0.714
,
"
#e0f3f8
"
],
[
0.99
9
,
"
#4575b4
"
],
[
50
/
ZMAX
-
0.0
0
1
,
"
black
"
],
[
50
/
ZMAX
,
"
whitesmoke
"
],
[
100
/
ZMAX
-
0.00
1
,
"
whitesmoke
"
],
[
100
/
ZMAX
,
"
#a50026
"
],
[
150
/
ZMAX
-
0.001
,
"
#a50026
"
],
[
150
/
ZMAX
,
"
#f46d43
"
],
[
250
/
ZMAX
-
0.001
,
"
#f46d43
"
],
[
250
/
ZMAX
,
"
#e0f3f8
"
],
[
0.99
,
"
#4575b4
"
],
[
1
,
"
#313695
"
],
],
"
xgap
"
:
1
,
"
ygap
"
:
1
,
"
zmin
"
:
0
,
"
zmax
"
:
350
,
"
zmax
"
:
ZMAX
,
}
HEATMAP_LAYOUT_QUALITY
=
HEATMAP_LAYOUT_NETWORK
|
{
"
colorbar_len
"
:
0.5
,
Loading