10.11.2012 Views

zmap a tool for analyses of seismicity patterns typical applications ...

zmap a tool for analyses of seismicity patterns typical applications ...

zmap a tool for analyses of seismicity patterns typical applications ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

• First rename mydata into a: a = mydata; then start <strong>zmap</strong> and type: startwitha<br />

• Use the ‘Import Filter’ option from the ZMAP menu, and select the ASCII<br />

import filter.<br />

To get your data into ASCII column <strong>for</strong>mat, you can use various <strong>tool</strong>s. On a PC, I <strong>of</strong>ten<br />

use textpad (http://www.textpad.com/). In block selection mode, you can delete columns,<br />

and by copying and pasting a blank column, you can add blanks between dates. On a<br />

UNIX workstation, cut and paste work well:<br />

cut –c4-8 catalog.dat > year<br />

cut –c9-10 catalog.dat > month<br />

…<br />

paste long lat year month … > mydata.dat<br />

which will be a tab separated file that can be readily read into Matlab.<br />

Other options to import your data: Writing your own import filters<br />

A second option to import your data is to write your own import filter. A number <strong>of</strong><br />

existing filters are listed in the ./importfilters directory. When you choose “Import Data”<br />

from the ZMAP menu, an window will list all available filters:<br />

Select a filter and choose “Import”, then select the name <strong>of</strong> the file to be imported. The<br />

filters generally will try to read the entire data matrix at once. If this fails, it will read line<br />

by line and report lines that could not be imported.<br />

To design a filter that fits you data <strong>for</strong>mat is relatively easy. Lets assume that you would<br />

like to read in the SCEC DC earthquake catalog <strong>for</strong> 2001<br />

(http://www.scecdc.scec.org/ftp/catalogs/SCEC_DC/2001.cat). The first few lines are<br />

shown below.<br />

2001/01/01 01:16:25.7 le 1.0 h 35.123 -118.538 5.2 A 9172298 0 0 0 0<br />

2001/01/01 01:21:55.9 le 1.6 h 35.047 -119.083 10.9 A 9172300 0 0 0 0<br />

55

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!