1. 04 Mar, 2016 2 commits
  2. 25 Feb, 2016 3 commits
  3. 08 Feb, 2016 8 commits
    • thomas.forbriger's avatar
    • thomas.forbriger's avatar
      [MERGE] (master|issue7_refract): solve zero-offset scaling issues in refract · 33d32e44
      thomas.forbriger authored
      Merge branch 'issue7_refract'
      
      Advance refract version number to 4.14
      
      This merge commit solves issues when scaling traces with an offset-dependent
      scaling factor. The modifications are prepared on branch issue7_refract.
      The issue observed with the previous version of refract was:
      
      Refract offers a power-law amplitude scaling. This must fail in cases where
      one of the traces is located at zero offset. In such cases the entire plot
      fails, which can confuse users not aware of this side-effect.
      
      This problem actually was caused by three problems in the code:
      1 When using the zero offset (least offset) trace as a reference for offset
        dependent scaling (as is the default), a division by zero happens in
        subroutine mpcfactors.
      2 Zero offset traces may come with an mpc-scaling factor equal to zero. This
        means, the trace should be down-scaled to a straight line in any case.
        The current concept of trace scaling does this by leaving the sample values
        of the trace as they are, by using a viewport for the trace according to
        current clipping (derived in function settracevp) and by setting the world
        coordinates for the trace's viewport appropriately (i.e. to infinity). In
        the latter step there happens the nasty division by zero (division by mpc
        factor). This problem is present, even if the zero offset trace is not used
        as a reference.
      3 For a negative exponent the mpc factor of the zero offset trace would become
        infinite even for a finite reference value.
      
      These problems are addressed in the following way be this merge commit:
      1 Problem is solved by referring amplitude scaling factors to the average
        scaled amplitude in a given offset range in scaling mode 2 and 3 (as was
        provided only in mode 3 so far), which now is the default way, the scaling
        reference is defined.
      2 Problem is solved by setting an upper limit to the world coordinate range
        (in counts) in the trace's viewport, such that the trace is displayed as a
        straight line without causing numerical overflow. This is achieved by
        applying a lower limit ti mpc factors in subroutine refract_settracevp
      3 Problem is solved by enforcing non-negative exponent value.
      33d32e44
    • thomas.forbriger's avatar
      [FEATURE] (issue7_refract): robust display of zero offset trace · 5f44aa20
      thomas.forbriger authored
      By introducing an upper limit for the world coordinate range (in counts) in
      the display rectangle (viewport) of the trace, the program now is reobust in
      cases where zero-offset traces shall be displayed with offset dependend
      amplitude scaling.
      
      This is the final commit to resolve issue7.
      5f44aa20
    • thomas.forbriger's avatar
    • thomas.forbriger's avatar
    • thomas.forbriger's avatar
    • thomas.forbriger's avatar
      [WP][DOC] (issue7_refract): add introductory comment · b0b3bac7
      thomas.forbriger authored
      Explain the different rectangle definitions used with in settracevp.
      b0b3bac7
    • thomas.forbriger's avatar
      [TASK] (issue7_refract): remove obsolete file · 8805bcdb
      thomas.forbriger authored
      sub/refract_settracevpold.f
      was kept for historical reasons to provide a reference to an obsolete way to
      set the trace view port. This file is from pre-CVS times. Source code history
      now is recorded in the repository. The file is obsolete.
      8805bcdb
  4. 01 Feb, 2016 1 commit
  5. 07 Jan, 2016 1 commit
  6. 08 Dec, 2015 1 commit
    • thomas.forbriger's avatar
      [FEATURE] (issue7_refract): make offset dependent scaling more robust · 0fabb93e
      thomas.forbriger authored
      - With the previous commits the average scaled amplitude in a given offset
        range is made the standard reference for amplitude scaling in modes 2 and 3.
      - This commit makes sure that the scaling exponent will never become negative.
      
      A negative scaling exponent would result in a singularity of scaled amplitudes
      at zero offset. Since amplitudes always are expected to decay with offset,
      negative exponents are not required for amplitude scaling.
      0fabb93e
  7. 07 Dec, 2015 17 commits
  8. 28 Nov, 2015 1 commit
  9. 26 Nov, 2015 1 commit
  10. 23 Nov, 2015 2 commits
  11. 20 Nov, 2015 1 commit
  12. 04 Nov, 2015 2 commits