diff --git a/mseedpeek/mseedInfo.py b/mseedpeek/mseedInfo.py index 0cd528f24f0984fcfd5727a9f12e3f67b4be2e39..ea0a95fe30136933db7a5d551f0055bf27edc711 100755 --- a/mseedpeek/mseedInfo.py +++ b/mseedpeek/mseedInfo.py @@ -246,7 +246,8 @@ Notes for fields: * indicates mandatory information that has been applied to the record. D The state of quality control of the data is indeterminate. R Raw Waveform Data with no Quality Control - Q Quality Controlled Data, some processes have been applied to the data. + Q Quality Controlled Data, some processes have been applied to the + data. 3 Space (ASCII 32) Reserved; do not use this byte. 4 * Station identifier designation (see Appendix G). Left justify and pad with spaces. @@ -276,8 +277,8 @@ Notes for fields: * indicates mandatory information [Bit 4] A positive leap second happened during this record (A 61 second minute). [Bit 5] A negative leap second happened during this record (A 59 - second minute). A negative leap second clock correction has - not yet been used, but the U.S. National Bureau of + second minute). A negative leap second clock correction + has not yet been used, but the U.S. National Bureau of Standards has said that it might be necessary someday. [Bit 6] Event in progress 13 UBYTE: I/O flags and clock flags: @@ -319,13 +320,13 @@ Here is an algorithm and some sample rate combinations that describe how the sample rate factors and multipliers work: If Sample rate factor > 0 and Sample rate Multiplier > 0, - Then nominal Sample rate = Sample rate factor X Sample rate multiplier + Then nominal Sample rate = Sample rate factor X Sample rate multiplier If Sample rate factor > 0 and Sample rate Multiplier < 0, - Then nominal Sample rate = -1 X Sample rate factor / Sample rate multiplier + Then nominal Sample rate = -1 X Sample rate factor / Sample rate multiplier If Sample rate factor < 0 and Sample rate Multiplier > 0, - Then nominal Sample rate = -1 X Sample rate multiplier / Sample rate factor + Then nominal Sample rate = -1 X Sample rate multiplier / Sample rate factor If Sample rate factor < 0 and Sample rate Multiplier < 0, - Then nominal Sample rate = 1/ (Sample rate factor X Sample rate multiplier) + Then nominal Sample rate = 1/ (Sample rate factor X Sample rate multiplier) Sample rate\t\tSample rate factor\tSample rate multiplier 330 SPS\t\t33\t\t10 @@ -375,9 +376,11 @@ Notes for fields: 2 UWORD:\tByte number of next blockette. (Calculate this as the byte offset \tfrom the beginning of the logical record including the fixed \tsection of the data header; use 0 if no more blockettes will follow.) -3 FLOAT:\tAmplitude of signal (for units, see event detection flags, below; 0 if unknown). +3 FLOAT:\tAmplitude of signal (for units, see event detection flags, +\tbelow; 0 if unknown). 4 FLOAT:\tPeriod of signal, in seconds (0 if unknown). -5 FLOAT:\tBackground estimate (for units, see event detection flags, below; 0 if unknown). +5 FLOAT:\tBackground estimate (for units, see event detection flags, +\tbelow; 0 if unknown). 6 UBYTE:\tEvent detection flags: \t[Bit 0] If set: dilatation wave; if unset: compression \t[Bit 1] If set: units above are after deconvolution @@ -716,8 +719,8 @@ Notes for fields: \thandles down to 100microsecs. This field is an offset from that value. \tThe recommended value is from -50 to +49microsecs. At the users \toption, this value may be from 0 to +99microsecs. -6 UBYTE:\tReception quality is a number from 0 to 100% of maximum clock accuracy -\tbased only on information from the clock. +6 UBYTE:\tReception quality is a number from 0 to 100% of maximum clock +\taccuracy based only on information from the clock. 7 ULONG:\tException count is an integer count, with its meaning based on the \ttype of exception, such as 15 missing timemarks. 8 CHAR*16:\tException type describes the type of clock exception, such as @@ -894,7 +897,8 @@ Notes for fields: \t 01 = first blockette of file. \t 10 = continuation of file. \t 11 = last blockette of file. -8 UBYTE:\tNumber of Opaque Header fields. Each opaque header field is a variable +8 UBYTE:\tNumber of Opaque Header fields. Each opaque header field is a +\tvariable \tlength ascii string, terminated by the character ~. 9 VAR:\tOpaque Data Header string, which contains the ascii variable length \tfields. Each field is terminated by a "~". The definition of the fields @@ -906,6 +910,6 @@ Notes for fields: \t c Model type - model type of equipment (eg "Z12"). \t d Software Version - software version number (eg ""). \t e Firmware Version - firmware version number (eg "1G0C"). -10 OPAQUE:\tOpaque Data - bytes of opaque data. Total length of opaque data in +10 OPAQUE: Opaque Data - bytes of opaque data. Total length of opaque data in \tbytes is blockette_length - 15 - length (opaque_data_header_string) """ diff --git a/mseedpeek/mseedpeek.py b/mseedpeek/mseedpeek.py index e7832cdd4b8de30f7deaf016ea3d333ff26420c4..732e39a1eeee872f37acfa3aa7a0718e68ea8797 100644 --- a/mseedpeek/mseedpeek.py +++ b/mseedpeek/mseedpeek.py @@ -377,16 +377,16 @@ class MainWindow(QtWidgets.QWidget): <Build Trace db>""") help_text.setTextColor(Black) help_text.insertPlainText(""": Searchs the directories listed in the "Data- - Directories" entry box (a colon separated list) and builds a list of mseed - files found indexing them on unique values of <dir>:<file_name>. It then - creates a dropdown menu with entries for each data directory found.""") # noqa: E501 +\tDirectories" entry box (a colon separated list) and builds a list of mseed +\tfiles found indexing them on unique values of <dir>:<file_name>. It then +\tcreates a dropdown menu with entries for each data directory found.""") # noqa: E501 help_text.setTextColor(Red) help_text.insertPlainText(""" <Find>""") help_text.setTextColor(Black) help_text.insertPlainText(""": Launches a file browser allowing the user to - add directories to the "Data Directories" entry box. Double clicking selects - the new directory.""") # noqa: E501 +\tadd directories to the "Data Directories" entry box. Double clicking selects +\tthe new directory.""") # noqa: E501 help_text.setTextColor(Red) help_text.insertPlainText(""" <Clear>""") @@ -404,7 +404,7 @@ class MainWindow(QtWidgets.QWidget): <Standard>""") help_text.setTextColor(Black) help_text.insertPlainText(""": This is the default. It displays Station, Channel, Location Code, - Net Code, and the nominal Sample Rate.""") # noqa: E501 +\tNet Code, and the nominal Sample Rate.""") # noqa: E501 help_text.setTextColor(Red) help_text.insertPlainText(""" <Verbose>""") @@ -436,12 +436,11 @@ class MainWindow(QtWidgets.QWidget): <Flush Dictionaries>""") help_text.setTextColor(Black) help_text.insertPlainText( - """: Clears cached trace header data. - As you view mseed headers, mseedpeek maintains a cache of""" + - """ previously viewed headers for quick, future access.""" + - """ If you wish to monitor changes to mseed files you""" + - """ need to flush the dictionaries so that the new""" + - """ changes will be displayed.""") + """: Clears cached trace header data. As you view mseed header""" + + """s,\n\tmseedpeek maintains a cache of previously viewed""" + + """ headers for\n\tquick, future access. If you wish to """ + + """ monitor changes to mseed files you\n\tneed to flush the """ + + """dictionaries so that the new changes will be displayed.""") help_text.setTextColor(Green) help_text.insertPlainText(""" @@ -750,8 +749,8 @@ class MainWindow(QtWidgets.QWidget): if self.dir_list: (num_files, err_files) = self.find_trace() - text = "Done. " + str(num_files) + " mseed files found. ***\ - " + str(err_files) + " files with errors." + text = ("Done. " + str(num_files) + " mseed files found. ***") + text += (str(err_files) + " files with errors.") self.update_infobar(text, "green") def hide_show(self, action):