The SOD demo
Files that configure SOD's operation are called recipes.
The -demo
flag tells SOD to run the
demo recipe
included in SOD. This recipe gathers seismograms for channels in the
II network for earthquakes with a magnitude of 6 or greater in January of 2003.
Creating directories for SOD runs
SOD uses a database to keep track of its actions. Every time it runs, a directory SodDb is created to store it. This database needs to be isolated between runs of SOD. If a recipe is run in a directory where it ran previously, SOD will exit immediately, thinking all work is done. Therefore, we run SOD in a new directory for each invocation of each recipe. Start the command prompt, create a directory "demo", and cd into it.
Running the demo
From the demo directory, invoke the command sod -demo
on Unix systems and sod.bat -demo
on Windows.
If the Install went well, you should see some output like the following:
0 [main] INFO edu.sc.seis.sod.Start - Valid strategy file Fiji Islands Region (-20.6, -177.7) 2003/01/04 05:15:03 GMT 6.0 MB Channel: II.19861024T00:00:00.000Z.PFO.00.BHE.20020107T22:00:00.000Z Channel: II.19861024T00:00:00.000Z.PFO.00.BHN.20020107T22:00:00.000Z Channel: II.19861024T00:00:00.000Z.PFO.00.BHZ.20020107T22:00:00.000Z Channel: II.19861024T00:00:00.000Z.PFO.10.BHE.20020107T22:00:00.000Z Channel: II.19861024T00:00:00.000Z.PFO.10.BHN.20020107T22:00:00.000Z Channel: II.19861024T00:00:00.000Z.PFO.10.BHZ.20020107T22:00:00.000Z Chile-Bolivia Border Region (-21.5, -68.3) 2003/01/05 09:25:55 GMT 5.2 MB ...
The first messages like
Chile-Bolivia Border Region (-21.5, -68.3) 2003/01/05 09:25:55 GMT 5.2 MBare printed every time SOD retrieves an event that matches demo recipe's criteria. The ones that follow like
Channel: II.19861024T00:00:00.000Z.SUR.00.BHE.20020715T06:58:00.000Zare printed for every matching channel. Finally, messages like
Got 1 seismograms for II.PFO.00.BHN for eq on 2003/01/04 05:15:03 GMTare printed every time SOD gets a seismogram. You can watch for these to get a rough feel for what SOD is doing.
In addition to the database files mentioned earlier, this SOD recipe will
store all the seismograms it retrieves as sac files. These are put in the seismograms
directory
where SOD was started. If the run has been going for a while or is finished,
you'll see directories in seismograms
for every earthquake SOD has processed and inside of each of these is a data directory containing
sac files for every channel retrieved for the earthquake.