##### uwpickfile is an ascii format file from University of Washington
data(GH, package='RSEIS')
pf = GH$pickfile$PF
### save only the A and M cards to temp file:
fn = tempfile("temp", fileext = ".UW")
cat(file=fn, c(pf[1], pf[34]) , sep='\n')
G1 = getUWfocs(fn)
plot(G1$lon, G1$lat)
MEKS = list(lon=G1$lon, lat=G1$lat, str1=G1$str1,
dip1=G1$dip1, rake1=G1$rake1, dep=G1$z, name=G1$name)
## utm projection
PROJ = GEOmap::setPROJ(type=2, LAT0=mean(G1$lat) , LON0=mean(G1$lon) )
XY = GEOmap::GLOB.XY(G1$lat, G1$lon, PROJ)
plot(range(XY$x), range(XY$y), type='n', asp=1)
plotmanyfoc(MEKS, PROJ, focsiz=0.5)
Run the code above in your browser using DataLab