Learn R Programming

RFOC (version 2.0-00)

getUWfocs: Get UW focals

Description

Get UW focal mechansims from a file. These are often called A and M cards

Usage

getUWfocs(amfile)

Arguments

amfile
character, file name

Value

  • List:
  • lonnumeric, longitude
  • latnumeric, latitude
  • str1numeric, strike of plane 1
  • dip1numeric, dip of plane 1
  • rake1numeric, rake of plane 1
  • str2numeric, strike of plane 2
  • dip2numeric, dip of plane 2
  • rake2numeric, rake of plane 2
  • sccharacter, some GMT info for scale
  • iexpcharacter, some GMT info for scale
  • namecharacter, name
  • yrnumeric, year
  • monumeric, month
  • domnumeric, day of month
  • jdnumeric, julian day
  • hrnumeric, hour
  • minumeric, minute
  • senumeric, second
  • znumeric, depth
  • magnumeric, magnitude

Details

UW focal mechanisms are stored as A and M cards. The A card described the hypocenter the M card describes the focal mechanism.

References

http://www.unc.edu/~leesj/XM_DOC/xm_hypo.doc.html

See Also

getCMT

Examples

Run this code
G1 = getUWfocs(uwpickfile)

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)


 PROJ = setPROJ(type=2, LAT0=mean(G1$lat) , LON0=mean(G1$lon) )   ##   utm

     XY = GLOB.XY(G1$lat, G1$lon, PROJ)

     plot(range(XY$x), range(XY$y), type='n', asp=1)

     plotmanyfoc(MEKS, PROJ, focsiz=0.05)

Run the code above in your browser using DataLab