def latlt2polar(lat, lt, hemisphere):
    '\n    Converts an array of latitude and lt points to polar for a top-down dialplot (latitude in degrees, LT in hours)\n    i.e. makes latitude the radial quantity and MLT the azimuthal \n\n    get the radial displacement (referenced to down from northern pole if we want to do a top down on the north, \n    or up from south pole if visa-versa)\n    '
    from numpy import pi
    if (hemisphere == 'N'):
        r = (90.0 - lat)
    elif (hemisphere == 'S'):
        r = (90.0 - ((- 1) * lat))
    else:
        raise ValueError(('%s is not a valid hemisphere, N or S, please!' % hemisphere))
    theta = (((lt / 24.0) * 2) * pi)
    return (r, theta)
Converts an array of latitude and lt points to polar for a top-down dialplot (latitude in degrees, LT in hours)
i.e. makes latitude the radial quantity and MLT the azimuthal 

get the radial displacement (referenced to down from northern pole if we want to do a top down on the north, 
or up from south pole if visa-versa)
def latlt2polar(lat, lt, hemisphere):
    '\n    Converts an array of latitude and lt points to polar for a top-down dialplot (latitude in degrees, LT in hours)\n    i.e. makes latitude the radial quantity and MLT the azimuthal \n\n    get the radial displacement (referenced to down from northern pole if we want to do a top down on the north, \n    or up from south pole if visa-versa)\n    '
    from numpy import pi
    if (hemisphere == 'N'):
        r = (90.0 - lat)
    elif (hemisphere == 'S'):
        r = (90.0 - ((- 1) * lat))
    else:
        raise ValueError(('%s is not a valid hemisphere, N or S, please!' % hemisphere))
    theta = (((lt / 24.0) * 2) * pi)
    return (r, theta)