% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getDnKy.R
\name{getDnKy}
\alias{getDnKy}
\title{Build a log-spaced ky grid for one scenario}
\usage{
getDnKy(uhs, Ts, kyN = 30L, pRef = "mean")
}
\arguments{
\item{uhs}{data.table with columns Tn, p, Sa (one scenario)}

\item{Ts}{numeric scalar, fundamental period (s)}

\item{kyN}{integer, number of grid points (default 30)}

\item{pRef}{character, probability level for intensity anchor (default "mean")}
}
\value{
numeric vector of ky values (log-spaced)
}
\description{
Derives the effective intensities PGA, Sa(1.3Ts), Sa(1.5Ts) from the
scenario UHS and constructs a log-spaced ky grid covering the calibrated
range of the displacement models.
}
\details{
Default bounds come from the calibration ranges of the models in the
ensemble:
\itemize{
\item lower: 0.01g (BM17 lowest calibration point)
\item upper: max(PGA, 0.80g). The physical limit is ky < PGA (no slip below
the yield acceleration); the 0.80g floor extends the grid for
low-PGA scenarios up to BM17's calibration ceiling.
}
}
\examples{
uhs <- data.table::data.table(Tn = 0, p = "mean", Sa = 0.5)
getDnKy(uhs, Ts = 0.3)
}
