Browse Source

Fix default data rate in EVN+other selection

pull/1/head
Benito Marcote 8 months ago
parent
commit
ec7d4c0dae
  1. 17
      app.py
  2. 38
      data/stations_catalog.inp

17
app.py

@ -802,11 +802,11 @@ def main_page(results_visible=False, summary_output=None, fig_elev_output=None,
html.Br(),
html.H4("When is your source visible?"),
html.Br(),
dbc.Alert([html.H4("Info on plots", className='alert-heading'),
html.P("A single click on one station in the legend will "
"hide/show it. Double-click will hide/show "
dbc.Alert([html.H4("Interactive plots", className='alert-heading'),
html.P(["A single click on one station in the legend will "
"hide/show it.", html.Br(), "Double-click will hide/show "
"all other antennas. You can also save the plot "
"as png."),
"as png."]),
], color='info', dismissable=True),
html.Br(),
html.P("The following plot shows the source elevation for the "
@ -918,11 +918,16 @@ def select_antennas(selected_band, selected_networks, is_eEVN, is_line):
for s in all_antennas] + [datarate if not is_line else 256]
else:
datarate = -1
if 'EVN' in selected_networks:
datarate = default_datarates['EVN'] if selected_band not in ('18cm', '21cm') else 1024
else:
for an_array in selected_networks:
datarate = max(datarate, default_datarates[an_array] if not ((an_array == 'EVN') and \
(selected_band in ('18cm', '21cm'))) else 1024)
for an_array in selected_networks:
selected_antennas += [ant for ant in default_arrays[an_array] \
if all_antennas[ant].has_band(selected_band)]
datarate = max(datarate, default_datarates[an_array] if not ((an_array == 'EVN') and \
(selected_band in ('18cm', '21cm'))) else 1024)
return [True if s.codename in selected_antennas else False for s in all_antennas] + \
[False if s.has_band(selected_band) else True for s in all_antennas] + \

38
data/stations_catalog.inp

@ -750,6 +750,44 @@ SEFD_3.6 = 320.0
SEFD_1.3 = 700
[MeerKAT 1]
station = MeerKAT (single dish)
code = Me1
network = Other
possible_networks =
country = South Africa
diameter = 1 x 13.5 m
#img =
#link =
position = 5109360.13332123, 2006852.58604291, -3238948.12747888
min_elevation = 10.0
real_time = no
SEFD_49 = 600.0
SEFD_30 = 390.0
SEFD_21 = 395.0
SEFD_18 = 400.0
[MeerKAT]
station = MeerKAT (phased-up array)
code = Me
network = Other
possible_networks =
country = South Africa
diameter = 64 x 13.5 m
#img =
#link =
position = 5109360.13332123, 2006852.58604291, -3238948.12747888
min_elevation = 10.0
real_time = no
SEFD_49 = 10.0
SEFD_30 = 6.5
SEFD_21 = 6.5
SEFD_18 = 6.7
[Metsahovi]
station = Metsahovi

Loading…
Cancel
Save