def adjust_timescales_from_daily(ds, tstep):
    """Adjust continuous growth rate parameters from daily scale to the scale of a 
    single timestep in the dynamic model.
    
    Parameters
    ----------
    ds : :class:`xarray.Dataset`
        Dataset containing coords or variables corresponding to rate parameters, e.g. 
        $\lambda$ (asymptotic exponential growth rate), $\beta$ (daily transmission rate
        per infectious individual), $\gamma$ (inverse of duration of infectious period),
        and/or $\sigma$ (inverse of latency period).
    tstep : float
        Timestep of model, in days
        
    Returns
    -------
    out : :class:`xarray.Dataset`
        `ds`, with rate parameters adjusted.
    """
    out = ds.copy()
    for k, v in ds.variables.items():
        if k.split("_")[0] in [
            "lambda",
            "beta",
            "gamma",
            "sigma",
        ]:
            # staying in continuous rate
            out[k] = out[k] * tstep
    return out