libgs.utils.Defaults¶
-
class
libgs.utils.Defaults[source]¶ Defines default values used by the different classes.
Note
Many (probably most) of these values are configurable in other ways (through class interfaces, constructors, etc…) This class just holds all the fallback values (defaults).
Attributes
API_ADDRThe host to bind the REST API to API_PORTThe port to bind the REST API to DASH_PORTDashboard port DATA_PATHFor backwards compatability only. DBDatabase connection (See SQLAlchemy for syntax) DB_BIN_PATHPath to store datafiles in (that are not stored in db) GS_ROTATOR_POLLING_INTERVALDeprecated. LOG_BACKUPCOUNTNumber of log files to keep LOG_FILELog file name LOG_FORMATlog format string LOG_MAXFILESIZEMax log filesize in bytes LOG_PATHPath to store log files in LOG_STRING_LENlength of log format string MAX_TRACK_DTMax allowed dt (in seconds) in data used for gs tracking MONITOR_SAVE_DT_NOTRACKThe time inteval (in seconds) at which to save monitor values to database while not tracking MONITOR_SAVE_DT_TRACKThe time inteval (in seconds) at which to save monitor values to database while tracking RECORD_SPECTRAIf false, spectra will not be recorded and stored in database RECORD_SPECTRA_DTIf spectrum recording enabled, time delay between subsequent recorded spectra (in seconds) RECORD_SPECTRA_MAX_LENIf spectrum recording enabled, maximum number of spectra to record in a single pass RESTAPI_DEBUG_MODEPut restapi in debug mode (more verbose error messages) RESTAPI_TABLE_LIMITMax rows to return by restapi if nothing has been explicitly given ROTATOR_ANTENNA_BEAMWIDTHDefault antenna beamwidth (normally overridden in rotator class). ROTATOR_MAX_AZDefault maximum azimuth angle for antenna rotator (normally overridden in rotator class) ROTATOR_MAX_ELDefault maximum elevation for antenna rotator (normally overridden in rotator class) ROTATOR_MIN_AZDefault minimum azimuth angle for antenna rotator (normally overridden in rotator class) ROTATOR_MIN_ELDefault minimum elevation for antenna rotator (normally overridden in rotator class) ROTATOR_SLEW_TIMEOUTDefault timeout for slewing antennae (normally overridden in rotator class) ROTATOR_STOWED_AZDefault azimuth angle to stow antennae to (normally overridden in rotator class) ROTATOR_STOWED_ELDefault elevation angle to stow antennae to (normally overridden in rotator class) TX_REPLY_TIMEOUTCommunications timeout after requesting data, and waiting for reply UI_LOG_LENLength of log to keep in UI USE_LOG_COLOURColor log entries VIS_FREQUENCY_PLOT_UPDATE_DELAYUpdate delay for frequency plot (should be around .2 - 2) WFALL_COLORMAPBokeh colormap, see bokeh.pydata.org/en/0.12.6/docs/reference/palettes.html WFALL_JPG_COLORMAPMatplotlib colormap, see matplotlib.org/examples/color/colormaps_reference.html WFALL_JPG_DPIDPI for recorded waterfall plots WFALL_JPG_HEIGHTHeight of each recorded waterfall plot(in pixels) if dpi = 100 WFALL_JPG_OUT_SCALEScaling of DPI on output of recorded waterfall plots.. WFALL_JPG_WIDTHWidth of each recorded waterfall plot (in pixels) if dpi=100 WFALL_JPG_WIDTH_EXTRAExtra width of each recorded waterfall plot in pixels if dpi = 100 XMLRPC_CLI_TIMEOUTDefault client timeout for xmlrpc calls XMLRPC_GS_SERVER_ADDRThe host to bind the XMLRPC ground station interface to XMLRPC_GS_SERVER_PORTThe port to bind the XMLRPC ground station interface to XMLRPC_SCH_SERVER_ADDRThe host to bind the XMLRPC scheduler interface to XMLRPC_SCH_SERVER_PORTThe port to bind the XMLRPC scheduler interface to