from pathlib import Path


def get_tile_id(tile_path):
    """
    Given the path to an SRTM1 or SRTM3 tile, return the ID of the tile (a string), e.g. "S36E174" for the path "bingo/S36E174.SRTMGL1.hgt.zip"
    Assume that the tile ID is the first part of the file name, as is the SRTM convention.
    """
    path = Path(tile_path)
    return path.stem.split('.')[0]