data(GH, package='RSEIS')
WW = RSEIS::uwpfile2ypx(GH$pickfile)
twpx = latlonz2wpx(WW, GH$pickfile$STAS )
twpx$phase[twpx$phase=='P'] = 'Y'
#### now twpx is like a Ypix from swig
### switch to P
newwpx = Y2Pphase(twpx, "Y" )
Run the code above in your browser using DataLab