% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/designUHS.R
\name{designUHS}
\alias{designUHS}
\title{MCER / Design elastic spectrum for a Vs30/Vref slice (ASCE 7-22)}
\usage{
designUHS(UHS, TL = 8, spectrum = c("MCER", "DESIGN"))
}
\arguments{
\item{UHS}{data.table slice from UHSTable (single TR, p == "mean").}

\item{TL}{numeric, long-period transition (seconds). Default 8.}

\item{spectrum}{character, "MCER" (default) or "DESIGN" (2/3 * MCER).}
}
\value{
data.table with columns \verb{Tn, SaF}.
}
\description{
The input \code{UHS} slice must contain at least \code{Tn} and \code{SaF}.
Typical usage passes a single TR and \code{p == "mean"}.
}
\examples{
uhs <- data.table::data.table(Tn = c(0, 0.2, 0.5, 1, 2), SaF = c(0.4, 1.0, 0.9, 0.6, 0.3))
designUHS(uhs)
}
