def _get_dataset_names(dataset):
    """
    Maps OpenOA-standard reanalysis product names to PlanetOS datasets

    Args:
        dataset (:obj:`string`): Dataset name ("merra2" or "era5")

    Returns:
        :obj:`string`: Corresponding PlanetOS dataset name
    """

    dataset = dataset.lower().strip()

    dataset_names = {"merra2": "nasa_merra2_global", "era5": "ecmwf_era5_v2"}

    try:
        return dataset_names[dataset]
    except KeyError as e:
        raise KeyError('Invalid dataset name. Currently, "merra2" and "era5" are supported.') from e