Changeset 1106


Ignore:
Timestamp:
13.01.2016 18:46:46 (4 years ago)
Author:
klaus
Message:

changed help text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • SHX/trunk/SeismicHandler/commands/help.py

    r1104 r1106  
    1515------------ 
    1616 
    17 # Open graphic window: 
    18     wdw/gc=x1h/main create xh1 0. 6.8 33.9 22. 
    19 # or 
    20     xopen 
     17    # Open graphic window: 
     18xopen 
     19    # or 
     20wdw/gc=x1h/main create xh1 0. 6.8 33.9 22. 
    2121 
    22 # Read 10 min of data from arclink server (server see setup in 
    23 # $HOME/.shx/shx.conf) and store metadata in local database 
    24     fetch gr.gra1. bh zne 7-aug-15_00:16 600 /storemeta 
    25     fetch gr.gra1.,gr.gra2.,gr.gra3. bh z 7-aug-15_00:16 600 /storemeta 
     22     _______________________________ 
     23    |                               | 
     24    | Read Data /Metadata (arclink) | 
     25    |_______________________________| 
    2626 
    27 # Read 7 min of GRF data from FDSN webserver (reads all stations with netcode 
    28 # 'GR', station with names beginning with 'GR' and all locations ocdes). 
    29     fdsnws gr gr* * bhz 26-Nov-2015_05:56:23 420 
    30 # Collect missing metadata from FDSN webserver for traces on screen 
    31     meta all complete 
     27    # Read 10 min of data from arclink server (server see setup in 
     28    # $HOME/.shx/shx.conf) and store metadata in local database 
     29fetch gr.gra1. bh zne 7-aug-15_00:16 600 /storemeta 
     30fetch gr.gra1.,gr.gra2.,gr.gra3. bh z 7-aug-15_00:16 600 /storemeta 
    3231 
    33 # Write first 3 traces to local Q file MYQFILE 
    34     write myqfile 1-3 
     32    # Read 10 min of z-component data from all stations within area centered 
     33    # at (51.0,10.0) and +- 2.0 degrees interval in lat and lon. Read the first 
     34    # channel found in the list of 'bh,sh,hh,eh'. Store all data and metadata 
     35    # locally, use arclink interface. 
     36fetch_area 51. 10. 2. bh,sh,hh,eh 7-aug-15_00:16:30 600 /comp=z /save /storemeta 
    3537 
    36 # Read data from local Q file MYQFILE 
    37     read myqfile all 
     38     ________________________________________ 
     39    |                                        | 
     40    | Read Data / Metadata (FDSN webservice) | 
     41    |________________________________________| 
     42 
     43    # Read 7 min of GRF data from FDSN webserver (reads all stations with  
     44    # netcodes 'GR' and 'TH', station with names beginning with 'GR' and all 
     45    # locations codes, channels BHZ). 
     46fdsnws gr,sx gr* * bhz 26-Nov-2015_05:56:23 420 
     47 
     48    # Read all stations around location (51.,10.) with a maximum distance of 
     49    # 2 deg, all location codees, BHZ channels, using FSDN webservice: 
     50fdsnws 51.,10.,2. * * bhz 7-aug-15_00:16:30 600 
     51 
     52    # Collect missing metadata from FDSN webserver for traces on screen, 
     53    # delete all traces with no metadata available. 
     54meta all complete /del_incomplete 
     55    # Check metadata 
     56meta all list 
     57 
     58     ________________________________________ 
     59    |                                        | 
     60    | Read / Write supported data formats    | 
     61    |________________________________________| 
     62 
     63    # Read a data file from a http server with automatic file format 
     64    # determination, example file (SEISAN format): 
     65    #     http://examples.obspy.org/2001-01-13-1742-24S.KONO__004 
     66    # and a local wav file 
     67switch capcnv off 
     68reado http:\\\\examples.obspy.org\\2001-01-13-1742-24S.KONO__004 2-4 
     69reado \\home\\user\\datapath\\MyMusic.wav 
     70 
     71    # Write first 3 traces to local Q file MYQFILE 
     72write myqfile 1-3 
     73    # Read data from local Q file MYQFILE 
     74read myqfile all 
    3875     
    39 # Get eventlist from FDSN webserver with locations around (-9.6,-71.3) with 
    40 # magnitudes of 6 and larger. 
    41     events -9.6 -71.3 3. 6.0 
    42 # Modify the origin times in this list to trace start times according to P 
    43 # arrival at location (49.,11.) and a constant time offset of 60 s. 
    44     events -9.6 -71.3 3. 6.0 ;; 60. 49. 11. p 
     76     ________________ 
     77    |                | 
     78    | Event catalogs | 
     79    |________________| 
    4580 
    46 # Read 10 min of z-component data from all stations within area centered 
    47 # at (51.0,10.0) and +- 2.0 degrees interval in lat and lon. Read the first 
    48 # channel found in the list of 'bh,sh,hh,eh'. Store all data and metadata 
    49 # locally, use arclink interface. 
    50     fetch_area 51. 10. 2. bh,sh,hh,eh 7-aug-15_00:16:30 600 /comp=z /save /storemeta 
    51 # Similar (BHZ channels) with FSDN webservice: 
    52     fdsnws 51.,10.,2. * * bhz 7-aug-15_00:16:30 600 
    53     meta all complete 
     81    # Get eventlist from FDSN webserver with locations around (-9.6,-71.3) with 
     82    # magnitudes of 6 and larger. 
     83events -9.6 -71.3 3. 6.0 
     84    # Modify the origin times in this list to trace start times according to P 
     85    # arrival at location (49.,11.) and a constant time offset of 60 s. 
     86events -9.6 -71.3 3. 6.0 ;; 60. 49. 11. p 
    5487 
    55 # Read a data file from a http server with automatic file format determination, 
    56 # example file (SEISAN format): 
    57 #     http://examples.obspy.org/2001-01-13-1742-24S.KONO__004 
    58     switch capcnv off 
    59     reado http:\\examples.obspy.org\2001-01-13-1742-24S.KONO__004 2-4 
    60  
     88     __________________________ 
     89    |                          | 
     90    | Event processing example | 
     91    |__________________________| 
     92     
     93    # Get read times (60s offset, P Phases) for German stations around (49.,11.) 
     94    # for events (mb>=6.0) in a region around (-9.6,-71.3) into file EVCAT.STX. 
     95echo_ch evcat 
     96events -9.6 -71.3 3. 6.0 ;; 60. 49. 11. p 
     97echo_ch 
     98    # Define variables and read time, epicenter lat and lon for the second 
     99    # event of this list into them. 
     100sdef rtime 
     101sdef lat 
     102sdef lon 
     103calc s &rtime = %evcat(2) parse 1 
     104calc s &lat = %evcat(2) parse 2 
     105calc s &lon = %evcat(2) parse 3 
     106    # Read data from networks GR and GE using FDSN webservices 
     107fdsnws gr * * bhz "rtime 420 
     108fdsnws ge * * bhz "rtime 420 /addr=gfz 
     109meta all complete /del_incomplete 
     110demean all 
     111norm sw 
     112zoom all 1.5 
     113    # Sort traces by distance using the epicenter read from catalog 
     114sort_by_distance "lat "lon 
     115    # Compute slowness and azimuth of a plane wave using traces 17-51 within 
     116    # a time window between 53s and 69s in the frequency range between 
     117    # 0.4 and 3Hz with a maximum slowness of 15s/deg, create a color map. 
     118sdef slo 
     119sdef az 
     120fk 17-51 53. 69. 0.4 3.0 15.0 &slo &az /slownessmap=slmap.png 
     121echo "slo "az 
     122    # The result (slowness and azimuth values, content of slmap.png) depends 
     123    # on the event selected (the catalog is changing with time). 
    61124""" 
    62125 
Note: See TracChangeset for help on using the changeset viewer.