[SAC-HELP] sort and plot commands don't play

Frederik Tilmann tilmann at gfz-potsdam.de
Wed Nov 13 00:49:48 PST 2013


I have a problem in that the plot commands (p1,ppk) do not show the 
files in the same order as they are listed in memory after a sort.

What I am trying to do is to display a north- to south record section of 
noise correlation functions with respect to a target station.  The 
coordinates of both stations are place in evla and stla, but it is not 
well defined in which variable a given station ends up in (evla, or stla).

So to plot all the functions relative to J10S I use

r sumtraces-nonorm-0.03-0.10/*ZWZW*J10?J[0-9][0-9]*_sum.sac 
sumtraces-nonorm-0.03-0.10/*ZWZW*J[0-9][0-9]?J10?*_sum.sac
sort evla ascend stla ascend
lh evla stla

Everything looks good, stations are in the right order in the lh list.

But if I then do
p1
or ppk
they come out in the wrong order, plotting the J03-J10 after J10-J11 
(correct would have been J09-J10 as in the lh listing). I attach a 
screenshot demonstrating this effect.
I tried
sort commit  evla ascend stla ascend
but this this did not make a difference.

This is on 101.5c
  SEISMIC ANALYSIS CODE [02/01/2012 (Version 101.5c)]


Any ideas would be appreciated

Regards
Frederik




Output of lh command

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J10BJ23B..HHZHHZ_sum.sac - 1
  -------------------------------------------------------------------

      evla = 5.253600e+01
      stla = 5.481430e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J10BJ22B..HHZHHZ_sum.sac - 2
  -------------------------------------------------------------------

      evla = 5.270155e+01
      stla = 5.481430e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J10BJ21B..HHZHHZ_sum.sac - 3
  -------------------------------------------------------------------

      evla = 5.287174e+01
      stla = 5.481430e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J10BJ20B..HHZHHZ_sum.sac - 4
  -------------------------------------------------------------------

      evla = 5.305374e+01
      stla = 5.481430e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J10BJ19B..HHZHHZ_sum.sac - 5
  -------------------------------------------------------------------

      evla = 5.320426e+01
      stla = 5.481430e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J10BJ18B..HHZHHZ_sum.sac - 6
  -------------------------------------------------------------------

      evla = 5.339244e+01
      stla = 5.481430e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J10BJ17B..HHZHHZ_sum.sac - 7
  -------------------------------------------------------------------

      evla = 5.355617e+01
      stla = 5.481430e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J10BJ25B..HHZHHZ_sum.sac - 8
  -------------------------------------------------------------------

      evla = 5.366659e+01
      stla = 5.481430e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J10BJ15B..HHZHHZ_sum.sac - 9
  -------------------------------------------------------------------

      evla = 5.390106e+01
      stla = 5.481430e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J10BJ14S..HHZHHZ_sum.sac - 10
  -------------------------------------------------------------------

      evla = 5.411258e+01
Waiting

      stla = 5.481430e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J10BJ13B..HHZHHZ_sum.sac - 11
  -------------------------------------------------------------------

      evla = 5.427260e+01
      stla = 5.481430e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J10BJ12B..HHZHHZ_sum.sac - 12
  -------------------------------------------------------------------

      evla = 5.444247e+01
      stla = 5.481430e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J10BJ11S..HHZHHZ_sum.sac - 13
  -------------------------------------------------------------------

      evla = 5.460217e+01
      stla = 5.481430e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J09BJ10B..HHZHHZ_sum.sac - 14
  -------------------------------------------------------------------

      evla = 5.481430e+01
      stla = 5.640510e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J08SJ10B..HHZHHZ_sum.sac - 15
  -------------------------------------------------------------------

      evla = 5.481430e+01
      stla = 5.617126e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J07BJ10B..HHZHHZ_sum.sac - 16
  -------------------------------------------------------------------

      evla = 5.481430e+01
      stla = 5.603592e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J04BJ10B..HHZHHZ_sum.sac - 17
  -------------------------------------------------------------------

      evla = 5.481430e+01
      stla = 5.577234e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J03EJ10B..HHZHHZ_sum.sac - 18
  -------------------------------------------------------------------

      evla = 5.481430e+01
      stla = 5.530829e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J02SJ10B..HHZHHZ_sum.sac - 19
  -------------------------------------------------------------------

      evla = 5.481430e+01
      stla = 5.512811e+01

   FILE: sumtraces-nonorm-0.03-0.10/mat__ZWZW.J01EJ10B..HHZHHZ_sum.sac - 20
  -------------------------------------------------------------------

      evla = 5.481430e+01
Waiting

      stla = 5.497167e+01
SAC>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sac-p1-output.png
Type: image/png
Size: 22544 bytes
Desc: not available
URL: <http://www.iris.washington.edu/pipermail/sac-help/attachments/20131113/172f22e7/attachment.png>


More information about the sac-help mailing list