SiteChan

Contains information relevant to SiteChan object

class SiteChan(data)

Class for site channel information. Comes from css sitechan format.

Parameters:

data (array) – all the relevant data for SiteChan in an array. These values are accessed by its numerations.

Variables:
  • sensors (Array) – All sensors attached to this sitechan
  • station_code (string) – Code of the station to which sitechan refers to.
  • channel_code (string) – channel code of the sitechan.
  • on_date (datetime) – date when the station started working.
  • off_date (datetime) – date when the station was closed.
  • channel_type (string) – type of the channel.
  • emplacement_depth (float) – depth relative to station elevation.
  • horizontal_angle (float) – angle horizontally.
  • vertical_angle (float) – angle verically.
  • description (string) – description of the channel.
  • load_date (datetime) – date of the time when this information was created.
  • s_id (int) – id of the sitechan in the database.
  • station_id (int) – id of the station in the database.
  • STATION_CODE (int) – Enumeration of the data list. Value of 0
  • CHANNEL_CODE (int) – Enumeration of the data list. Value of 1
  • ON_DATE (int) – Enumeration of the data list. Value of 2
  • OFF_DATE (int) – Enumeration of the data list. Value of 3
  • CHANNEL_TYPE (int) – Enumeration of the data list. Value of 4
  • EMPLACEMENT_DEPTH (int) – Enumeration of the data list. Value of 5
  • HORIZONTAL_ANGLE (int) – Enumeration of the data list. Value of 6
  • VERTICAL_ANGLE (int) – Enumeration of the data list. Value of 7
  • DESCRIPTION (int) – Enumeration of the data list. Value of 8
  • LOAD_DATE (int) – Enumeration of the data list. Value of 9
  • S_ID (int) – Enumeration of the data list. Value of 10
  • STATION_ID (int) – Enumeration of the data list. Value of 11
readSiteChanStringToSiteChan(chan_line)

Function for reading channel info to SiteChan object from css sitechan string

Parameters:chan_line (str) – css sitechan string
Returns:SiteChan object