def numbers_to_names(species_list, sufix):
""" Convert the numerical species list 
	to a list containing species names.""" 
	filtered_species_list =[]
	for number in species_list:
		name = QueryGBIF.species_name(number)
		species_name = str(name[0])+" "+str(name[1])
		print species_name		# Devel.
		if species_name not in filtered_species_list and species_name is not 'None None': # 'None None' is not working yet
			filtered_species_list.append(species_name)
	write_output_file(filtered_species_list, sufix)
def generate_species_list(c_all, c_some):
""" Create a list of all species found in a 
	user defined polygon.""" 
	raw_species_list_plants, raw_species_list_animals, raw_species_list_fungi = QueryGBIF.qgd(c_all)
#	raw_species_list = QueryGBIF.qgd(c_all)
#	raw_species_list = QueryGBIF.qgd(c_all[0])				# Working
	species_list_plants = Filters.occurrence_nr(raw_species_list_plants)
	print species_list_plants		# Devel.
	species_list_animals = Filters.occurrence_nr(raw_species_list_animals)
	species_list_fungi = Filters.occurrence_nr(raw_species_list_fungi)
#	species_list = Filters.occurrence_nr(raw_species_list)
	return species_list_plants, species_list_animals, species_list_fungi