Instrument

Contains information relevant to Instrument object

Classes and Functions

class Instrument(data=None)

Class for instrument information. Comes from css instrument format.

Parameters:

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

Variables:
  • header_type (int) – 12
  • response (Response) – response file to which this response is attached to
  • band (str) – Frequency band. Maximum of 1 character
  • instrument_name (str) – Name of the instrument. Maximum of 50 characters
  • instrument_type (str) – Type of the instrument. Maximum of 6 characters
  • digital (str) – data type: d - digital a - analog. Maximum of 1 characters
  • samprate (float) – sampling rate in samples/sec
  • ncalib (float) – nominal calibration (nn/count)
  • ncalper (float) – nominal calibration period (sec)
  • resp_dir (str) – Directory for instrument response file. Maximum of 64 characters
  • resp_file_name (str) – Maximum of 32 characters
  • rsptype (str) – response type. Maximum of 6 characters
  • response_id (int) – id of the response of this instrument
  • lddate (date) – load date
  • s_id (int) – id of this instrument, also used to combine instrument with a sensor on initial insert when reading Geotool files.
  • INSTRUMENT_NAME (int) – Enumeration of the data list. Value of 0
  • INSTRUMENT_TYPE (int) – Enumeration of the data list. Value of 1
  • BAND (int) – Enumeration of the data list. Value of 2
  • DIGITAL (int) – Enumeration of the data list. Value of 3
  • SAMPRATE (int) – Enumeration of the data list. Value of 4
  • NCALIB (int) – Enumeration of the data list. Value of 5
  • NCALPER (int) – Enumeration of the data list. Value of 6
  • RESP_DIR (int) – Enumeration of the data list. Value of 7
  • RESP_FILE_NAME (int) – Enumeration of the data list. Value of 8
  • RSPTYPE (int) – Enumeration of the data list. Value of 9
  • RESPONSE ID (int) – Enumeration of the data list. Value of 10
  • LDDATE (int) – Enumeration of the data list. Value of 11
  • S_ID (int) – Enumeration of the data list. Value of 12
readInstrumentStringToInstrument(ins_line)

Function for reading instrument info to a Instrument object

Parameters:ins_line (str) – css intrument line
Returns:Instrument object