def main():
    """
    Input asteroid family, filter type, and image type to query SSOIS
    """

    parser = argparse.ArgumentParser(description='Run SSOIS and return the available images in a particular filter.')

    parser.add_argument("--filter",
                        action="store",
                        default='r',
                        dest="filter",
                        choices=['r', 'u'],
                        help="Passband: default is r.")
    parser.add_argument("--family", '-f',
                        action="store",
                        default=None,
                        help='List of objects to query.')
    parser.add_argument("--member", '-m',
                        action="store",
                        default=None,
                        help='Member object of family to query.')

    args = parser.parse_args()

    if args.family != None and args.member == None:
        get_family_info(str(args.family), args.filter)
    elif args.family == None and args.member != None:
        get_member_info(str(args.member), args.filter)
    else:
        print "Please input either a family or single member name"
def main ( ) : parser = argparse . ArgumentParser ( description = 'Run SSOIS and return the available images in a particular filter.' ) parser . add_argument ( "--filter" , action = "store" , default = 'r' , dest = "filter" , choices = [ 'r' , 'u' ] , help = "Passband: default is r." ) parser . add_argument ( "--family" , '-f' , action = "store" , default = None , help = 'List of objects to query.' ) parser . add_argument ( "--member" , '-m' , action = "store" , default = None , help = 'Member object of family to query.' ) args = parser . parse_args ( ) if args . family != None and args . member == None : get_family_info ( str ( args . family ) , args . filter ) elif args . family == None and args . member != None : get_member_info ( str ( args . member ) , args . filter ) else : print "Please input either a family or single member name"
Input asteroid family, filter type, and image type to query SSOIS