def deg2HMS(ra=None, dec=None, round=False):
    """ quick and dirty coord conversion. googled to find bdnyc.org.
    """
    RA, DEC, rs, ds = '', '', '', ''
    if dec is not None:
        if str(dec)[0] == '-':
            ds, dec = '-', abs(dec)
        deg = int(dec)
        decM = abs(int((dec - deg) * 60))
        if round:
            decS = int((abs((dec - deg) * 60) - decM) * 60)
        else:
            decS = (abs((dec - deg) * 60) - decM) * 60
        DEC = '{0}{1} {2} {3}'.format(ds, deg, decM, decS)
    if ra is not None:
        if str(ra)[0] == '-':
            rs, ra = '-', abs(ra)
        raH = int(ra / 15)
        raM = int((ra / 15 - raH) * 60)
        if round:
            raS = int(((ra / 15 - raH) * 60 - raM) * 60)
        else:
            raS = ((ra / 15 - raH) * 60 - raM) * 60
        RA = '{0}{1} {2} {3}'.format(rs, raH, raM, raS)
    if ra is not None and dec is not None:
        return RA, DEC
    else:
        return RA or DEC
