def filename(lat, lon):
    if lat < 0 and lon < 0:
        NS, EW = 'S', 'W'
    elif lat < 0:
        NS, EW = 'S', 'E'
    elif lat >= 0 and lon < 0:
        NS, EW = 'N', 'W'
    elif lat >= 0:
        NS, EW = 'N', 'E'

    return '%s%02d%s%03d' % (NS, abs(lat), EW, abs(lon))
Return an SRTM3 filename with no extension, e.g. "N37W123".
dataset/ETHPy150Open migurski/DEM-Tools/Hillup/data/SRTM3.py/filename