Look Up Package Representative Vs30 Values
SIDtoVs30.RdConverts package site identifiers to representative values of Vs30, the time-averaged shear-wave velocity through the upper 30 m. Use this lookup when an API requires one package representative value for each identifier.
Value
For a non-empty input, a numeric vector with the same length and
order as SID, containing representative Vs30 values in meters per
second (m/s). A named input retains its names. An unnamed character input
gains names equal to its original identifiers, including their original
case; an unnamed factor produces an unnamed result. NULL and
zero-length inputs return an empty list rather than numeric(0).
Details
The package lookup is:
"A"and"AB": 1500 m/s;"B": 1200 m/s;"BC": 760 m/s;"C": 540 m/s;"CD": 370 m/s;"D": 255 m/s;"DE": 180 m/s; and"E": 150 m/s.
Validation is all-or-nothing: if any element is missing or is not one of
the nine identifiers after case conversion, the call stops with an error
and returns no partial result. In particular, "F" is unsupported. Apart
from NULL, supported inputs are character vectors and factors; other
input classes are outside the public contract.
Package policy and reverse classification
These are package-defined representative lookup values, not interval
midpoints, site-class boundaries, or a standards classification.
Vs30toSID() applies a separate numeric classification and is not the
mathematical inverse of this lookup. For example, "A" and "AB" both
map to 1500 m/s, so the original identifier cannot always be recovered from
the representative value.
Side effects
Successful calls are deterministic and do not mutate SID, consume the
random-number generator, issue warnings or messages, or access files or the
network.