Ejemplo n.º 1
0
def main():
    logging.basicConfig(level=logging.DEBUG)
    options = _getoptions()
    if options.dwca_file is None:
        print 'syntax: dwca_reader.py -f dwca_file'
        return
    print '\nGeography keys:'
    i = 0
    for row in read_core_rows(options.dwca_file):
        geogkey = get_term_group_key(row.data, geogkeytermlist)
        i = i + 1
        print '%s' % (geogkey)
    print 'Count=%s' % i