def level_to_npatches(level):
	"""Maps from the level of analysis to the number of patches.

	Parameters:
		level (int): The level of analysis

	Returns
		(int): The number of patches at that level of analysis
	"""
	if level == 0:
		return 1
	else:
		return int(12*4**(level-1))