Skip to content
Snippets Groups Projects
  1. May 08, 2023
    • Erin (Josh) Rigler's avatar
      Modify TimeseriesUtility.py's split_trace() · b662348c
      Erin (Josh) Rigler authored
      The split_trace() function always dropped the last sample. This was
      seemingly part of a flawed logic designed to prevent traces being
      written to Edge by the MiniSeedInputClient that spanned midnight.
      This worked, but only if the original trace actually spanned midnight.
      For the majority of data that do not span midnight, this dropped a
      sample every time. The updated logic does what I believe was the
      original intent (that is, it breaks traces into more manageable
      chunks) without duplicating or losing any data. This is consistent
      with obspy's concept of data slices, where a starttime and endtime
      are always inclusive, but it deviates somewhat from MiniSeed logic,
      which assumes a starttime, plus a delta, plus a number of samples.
      
      It was necessary to update a couple unit tests for the MiniSeedFactory
      to work with this new logic, but I am certain that the original test
      logic was not based on anything but what the TimeseriesUtility.py
      function(s) returned when they were originally written.
      b662348c
  2. Apr 25, 2023
  3. Apr 24, 2023
  4. Apr 14, 2023
  5. Apr 13, 2023
  6. Apr 11, 2023
  7. Apr 10, 2023
  8. Apr 06, 2023
  9. Mar 29, 2023
  10. Mar 24, 2023
  11. Mar 22, 2023
  12. Mar 21, 2023
    • Geels, Brendan Ryan's avatar
      Merge branch 'minor_factory_fixes_March2023' into 'master' · d1998c64
      Geels, Brendan Ryan authored
      Minor factory fixes applied in March 2023
      
      Closes #77
      
      See merge request !214
      d1998c64
    • Erin (Josh) Rigler's avatar
      Fixes issue #77 · c2c6c644
      Erin (Josh) Rigler authored
      As per discussion in issue #77 with Dave K., this commit adds delta/2
      to the requested `endtime` to ensure that starttime and endtime are
      fully inclusive in Edge-related I/O factories. I would have liked to
      generalized this and reduce the duplicate code between EdgeFactory
      and MiniSeedFactory, but couldn't figure out how to do this without
      adding considerably *more* code to the project than what is in this
      commit.
      c2c6c644
  13. Mar 20, 2023
    • Erin (Josh) Rigler's avatar
      Force traces in stream to first dtype before merge · af72dc0f
      Erin (Josh) Rigler authored
      A Stream corresponding to a given network, station, location, and
      channel can (but probably shouldn't) have more than 1 trace returned
      from an ObsPy client.get_waveforms() function. This happens, for
      example, when the data type generated by a given station changes.
      This change forces the dtype of the data array for all Traces in
      the Stream to match the dtype of the data array in the first Trace
      of the Stream, thus allowing the Stream.merge() function to work
      as intended.
      af72dc0f
    • Erin (Josh) Rigler's avatar
      print nothing if sensor_sampling_rate is not invertable · a4bc6d95
      Erin (Josh) Rigler authored
      The _format_headers() function in IAGA2002Writer.py would choke when
      the sensor_sampling_rate parameter in the trace.stats metadata could
      not be inverted. This occurred, at least, when the "Digital Sampling"
      IAGA2002 header line was not parsed properly, or was blank.
      a4bc6d95
Loading