def get_forecast_variable(gt_id):
    """Returns forecast variable name for the given ground truth id

    Args:
       gt_id: ground truth data string ending in "precip" or "tmp2m"
    """
    if "tmp2m" in gt_id:
        return "tmp2m"
    if "precip" in gt_id:
        return "prate"
    raise ValueError("Unrecognized gt_id "+gt_id)