Browse Source

Add half a BBC sideband bandwidth to the frequency range covered by the ANTAB file created by the program when none is present for a station.

master
Bob Eldering 4 months ago
parent
commit
6f3de07135
  1. 18
      antab_editor_lib/station_widget.py

18
antab_editor_lib/station_widget.py

@ -126,12 +126,18 @@ def create_station_widget(station, experiment, meta_data, parent=None):
# create a dummy header, data
for mode, time_range in mode_time_range:
mode_channels = get_frequency_channels(vex, station, time_range)
min_frequency = min(channel.min_frequency
for channels in mode_channels.values()
for channel in channels) / units.MHz
max_frequency = max(channel.max_frequency
for channels in mode_channels.values()
for channel in channels) / units.MHz
# add half a BBC bandwidth to the frequency coverage,
# this seems to be the default thing to do in creating ANTAB files
min_frequency = min(
channel.min_frequency -
(channel.max_frequency - channel.min_frequency) / 2
for channels in mode_channels.values()
for channel in channels) / units.MHz
max_frequency = max(
channel.max_frequency +
(channel.max_frequency - channel.min_frequency) / 2
for channels in mode_channels.values()
for channel in channels) / units.MHz
channel_map = meta_data.get_channel_map(station, time_range)
header_dict = MultiDict({
"GAIN": {"STATION": station.upper(),

Loading…
Cancel
Save