Sql2Response

This module contains all information for getting the response information out of the database.

Functions and Classes

getResponse(station, channel, date=datetime.datetime(2023, 8, 22, 8, 48, 50, 288627), db_conn=None)

Function for getting response information from the database.

Parameters:
  • station (string) – Station code of the station
  • channel (string) – Channel code of the channel
  • date (datetime) – date for which you want the response
Returns:

Response object

getResponseFromDB(response_id, db_conn=None)

Function for reading a response from database by id

Parameters:response_id (int) – id of the Response wanted
Returns:PazResponse or FapResponse object
responses2instruments(instruments, db_conn=None)

Function for attaching responses to instrument information

Parameters:instruments (list) – List of instruments to which the responses will be attached to