Commit cf4f2180 authored by Ilias Daradimos's avatar Ilias Daradimos

Add option for manual power level range

Signed-off-by: default avatarIlias Daradimos <ilias@libre.space>
parent 9b3113c8
Pipeline #40737823 passed with stage
in 4 minutes and 16 seconds
......@@ -261,12 +261,16 @@ class Observer(object):
tmin, tmax = np.min(t_idx), np.max(t_idx)
fmin, fmax = np.min(freq), np.max(freq)
c_idx = spec > -200.0
if np.sum(c_idx) > 100:
vmin = np.mean(spec[c_idx]) - 2.0 * np.std(spec[c_idx])
vmax = np.mean(spec[c_idx]) + 6.0 * np.std(spec[c_idx])
if settings.SATNOGS_WATERFALL_AUTORANGE:
if np.sum(c_idx) > 100:
vmin = np.mean(spec[c_idx]) - 2.0 * np.std(spec[c_idx])
vmax = np.mean(spec[c_idx]) + 6.0 * np.std(spec[c_idx])
else:
vmin = -100
vmax = -50
else:
vmin = -100
vmax = -50
vmin = settings.SATNOGS_WATERFALL_MIN_VALUE
vmax = settings.SATNOGS_WATERFALL_MAX_VALUE
LOGGER.info('Plot waterfall file')
plt.figure(figsize=(10, 20))
plt.imshow(
......
......@@ -99,6 +99,11 @@ IQ_DUMP_FILENAME = environ.get('IQ_DUMP_FILENAME', None)
DISABLE_DECODED_DATA = bool(
strtobool(environ.get('DISABLE_DECODED_DATA', 'False')))
# Waterfall settings
SATNOGS_WATERFALL_AUTORANGE = environ.get('SATNOGS_WATERFALL_AUTORANGE', True)
SATNOGS_WATERFALL_MIN_VALUE = environ.get('SATNOGS_WATERFALL_MIN_VALUE', -100)
SATNOGS_WATERFALL_MAX_VALUE = environ.get('SATNOGS_WATERFALL_MAX_VALUE', -50)
# Logging configuration
DEFAULT_LOGGING = {
'version': 1,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment