Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MPI-DeviceAvailability
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
Show more breadcrumbs
Hauke Schulz
MPI-DeviceAvailability
Commits
783ce0ae
Commit
783ce0ae
authored
7 years ago
by
Tobias Machnitzki
Browse files
Options
Downloads
Patches
Plain Diff
Version 1.5 -- Renamed CORAL
parent
f403d10f
No related branches found
No related tags found
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
AvailabilitPlot.js
+3
-3
3 additions, 3 deletions
AvailabilitPlot.js
Availability_plot.py
+5
-5
5 additions, 5 deletions
Availability_plot.py
DeviceAvailability.py
+6
-6
6 additions, 6 deletions
DeviceAvailability.py
button_callback.js
+1
-1
1 addition, 1 deletion
button_callback.js
with
15 additions
and
15 deletions
AvailabilitPlot.js
+
3
−
3
View file @
783ce0ae
This diff is collapsed.
Click to expand it.
Availability_plot.py
+
5
−
5
View file @
783ce0ae
...
...
@@ -66,7 +66,7 @@ Ceilometer = nc.variables['Ceilometer'][:].copy().astype(float) * height
HATPRO
=
nc
.
variables
[
'
HATPRO
'
][:].
copy
().
astype
(
float
)
*
height
KIT
=
nc
.
variables
[
'
KIT
'
][:].
copy
().
astype
(
float
)
*
height
KATRIN
=
nc
.
variables
[
'
KATRIN
'
][:].
copy
().
astype
(
float
)
*
height
MBR2
=
nc
.
variables
[
'
MBR2
'
][:].
copy
().
astype
(
float
)
*
height
CORAL
=
nc
.
variables
[
'
CORAL
'
][:].
copy
().
astype
(
float
)
*
height
MRR
=
nc
.
variables
[
'
MRR
'
][:].
copy
().
astype
(
float
)
*
height
WindLidar
=
nc
.
variables
[
'
WindLidar
'
][:].
copy
().
astype
(
float
)
*
height
# RamanLidar = nc.variables['RamanLidar'][:].copy().astype(float)*height
...
...
@@ -79,8 +79,8 @@ BCOHAT = nc.variables['BCOHAT'][:].copy().astype(float) * height
# creating lists for easy acces within loops:
# !!!! BOTH LISTS HAVE TO HAVE THE SAME ORDER OF DEVICES !!!!
Devices
=
[
Allsky
,
WxSensor
,
Radiation
,
Disdro
,
HATPRO
,
BCOHAT
,
KIT
,
KATRIN
,
MBR2
,
MRR
,
Ceilometer
,
WindLidar
,
EARLI
,
LICHT
]
Devices_names
=
[
'
Allsky
'
,
'
Weather
'
,
'
Radiation
'
,
'
Disdro
'
,
'
HATPRO
'
,
'
BCOHAT
'
,
'
KIT
'
,
'
KATRIN
'
,
'
MBR2
'
,
'
MRR
'
,
'
Ceilometer
'
,
Devices
=
[
Allsky
,
WxSensor
,
Radiation
,
Disdro
,
HATPRO
,
BCOHAT
,
KIT
,
KATRIN
,
CORAL
,
MRR
,
Ceilometer
,
WindLidar
,
EARLI
,
LICHT
]
Devices_names
=
[
'
Allsky
'
,
'
Weather
'
,
'
Radiation
'
,
'
Disdro
'
,
'
HATPRO
'
,
'
BCOHAT
'
,
'
KIT
'
,
'
KATRIN
'
,
'
CORAL
'
,
'
MRR
'
,
'
Ceilometer
'
,
'
WindLidar
'
,
'
EARLI
'
,
'
LICHT
'
]
# appending zeros for nicer plotting:
...
...
@@ -101,7 +101,7 @@ colors = dict(
BCOHAT
=
'
#7D0D59
'
,
KIT
=
'
#7896E8
'
,
KATRIN
=
'
#396EFE
'
,
MBR2
=
'
#013EE4
'
,
CORAL
=
'
#013EE4
'
,
MRR
=
'
#143AA3
'
,
Ceilometer
=
'
#B5E195
'
,
WindLidar
=
'
#82CD4C
'
,
...
...
@@ -117,7 +117,7 @@ source = ColumnDataSource(
HATPRO
=
Devices
[
Devices_names
.
index
(
'
HATPRO
'
)],
KIT
=
Devices
[
Devices_names
.
index
(
'
KIT
'
)],
KATRIN
=
Devices
[
Devices_names
.
index
(
'
KATRIN
'
)],
MBR2
=
Devices
[
Devices_names
.
index
(
'
MBR2
'
)],
CORAL
=
Devices
[
Devices_names
.
index
(
'
CORAL
'
)],
MRR
=
Devices
[
Devices_names
.
index
(
'
MRR
'
)],
WindLidar
=
Devices
[
Devices_names
.
index
(
'
WindLidar
'
)],
# RamanLidar=RamanLidar,
...
...
This diff is collapsed.
Click to expand it.
DeviceAvailability.py
+
6
−
6
View file @
783ce0ae
...
...
@@ -33,7 +33,7 @@ NC_NAME = 'Availability.nc'
NC_PATH
=
""
# Define Paths:
MBR2
_path
=
"
/pool/OBS/BARBADOS_CLOUD_OBSERVATORY/Level_0/16_Cloud_radar_MBR2/
"
CORAL
_path
=
"
/pool/OBS/BARBADOS_CLOUD_OBSERVATORY/Level_0/16_Cloud_radar_MBR2/
"
WindLidar_path
=
"
/pool/OBS/BARBADOS_CLOUD_OBSERVATORY/Level_0/15_Wind_lidar/Proc/
"
Allsky_path
=
"
/pool/OBS/BARBADOS_CLOUD_OBSERVATORY/Level_0/1_Allskyimager/data/
"
Ceilometer_path
=
"
/pool/OBS/ACPC/Ceilometer/
"
...
...
@@ -90,7 +90,7 @@ Ceilometer = Device('Ceilometer', 'Ceilometer', Ceilometer_path)
HATPRO
=
Device
(
'
HATPRO
'
,
'
Microwave Radiometer HATPRO
'
,
HATPRO_path
)
KIT
=
Device
(
'
KIT
'
,
'
Cloud Radar KIT
'
,
KIT_path
)
KATRIN
=
Device
(
'
KATRIN
'
,
'
Cloud Radar KATRIN
'
,
KATRIN_path
)
MBR2
=
Device
(
'
MBR2
'
,
'
Cloud Radar
MBR2
'
,
MBR2
_path
)
CORAL
=
Device
(
'
CORAL
'
,
'
Cloud Radar
CORAL
'
,
CORAL
_path
)
MRR
=
Device
(
'
MRR
'
,
'
Micro Rain Radar MRR
'
,
MRR_path2
)
WindLidar
=
Device
(
'
WindLidar
'
,
'
Wind Lidar
'
,
WindLidar_path
)
RamanLidar
=
Device
(
'
RamanLidar
'
,
'
Raman Lidar
'
,
RamanLidar_path
)
...
...
@@ -176,11 +176,11 @@ async def get_availability(start_date, end_date):
else
:
KIT
.
_AvailabilityAppend
(
0
)
# Check for
MBR2
:
if
os
.
path
.
isdir
(
MBR2
_path
+
date_str
):
MBR2
.
_AvailabilityAppend
(
1
)
# Check for
CORAL
:
if
os
.
path
.
isdir
(
CORAL
_path
+
date_str
):
CORAL
.
_AvailabilityAppend
(
1
)
else
:
MBR2
.
_AvailabilityAppend
(
0
)
CORAL
.
_AvailabilityAppend
(
0
)
# Check for MRR:
MRR_file1
=
glob
.
glob
(
MRR_path1
+
year_str
+
month_str
+
"
/
"
+
month_str
+
day_str
+
"
.*
"
)
...
...
This diff is collapsed.
Click to expand it.
button_callback.js
+
1
−
1
View file @
783ce0ae
...
...
@@ -13,7 +13,7 @@ if (button == "Disdro") {page="http://bcoweb.mpimet.mpg.de/quicklooks/disdromete
if
(
button
==
"
HATPRO
"
)
{
page
=
""
}
if
(
button
==
"
KIT
"
)
{
page
=
"
NOT RUNNING
"
}
if
(
button
==
"
KATRIN
"
)
{
page
=
"
NOT RUNNING
"
}
if
(
button
==
"
MBR2
"
)
{
page
=
"
http://bcoweb.mpimet.mpg.de/quicklooks/mbr2ql/MBR2_QL.png
"
}
if
(
button
==
"
CORAL
"
)
{
page
=
"
http://bcoweb.mpimet.mpg.de/quicklooks/mbr2ql/MBR2_QL.png
"
}
if
(
button
==
"
MRR
"
)
{
page
=
"
http://bcoweb.mpimet.mpg.de/quicklooks/mrr-bco/mrr_yesterday.png
"
}
if
(
button
==
"
Ceilometer
"
)
{
page
=
"
http://bcoweb.mpimet.mpg.de/quicklooks/ceilometer/ceilo_ql.png
"
}
if
(
button
==
"
WindLidar
"
)
{
page
=
"
http://bcoweb.mpimet.mpg.de/quicklooks/windlidar/wl_yesterday.png
"
}
...
...
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