R/setPrePix.R

Defines functions setPrePix

Documented in setPrePix

setPrePix<-function(R1 , tt, name, flag='K', col='blue'  )
{
#### prepare a set of predicted pix for marking in swig (WPX)
    
    N = length(tt)

    A = recdate(R1$jd, R1$hr, R1$mi, R1$sec+tt, R1$yr )
    
    Z =  setWPX(phase = rep(flag, N),
                col = rep(col, N), yr = A$yr, jd = A$jd,
                hr = A$hr, mi = A$mi, sec = A$sec,
                dur = rep(0, N),
                name = name,
                comp = rep('V', N),
                dispcomp = rep('V', N),
                onoff = rep(TRUE, N))
    
    return(Z)
}

Try the RSEIS package in your browser

Any scripts or data that you put into this service are public.

RSEIS documentation built on Aug. 19, 2023, 5:07 p.m.