def METHOD_NAME(filepath,debug=0):
	f =df.DataFile(filepath,"r")
	g = f["calibration"]
	keys = list(g.keys())
	center_wavelengths = []
	for k in keys:
		center_wavelengths = center_wavelengths + [g[k].attrs["center_wavelength"]]
	center_wavelengths = sorted(np.unique(center_wavelengths))
	print("main:max center wavelength:",np.max(center_wavelengths))
	dataset = []
	for cw in center_wavelengths:
		entry = (cw,[],[])
		for k in keys:
			if g[k].attrs["center_wavelength"] == cw:
				entry[2].append(g[k].attrs["laser_wavelength"])
				entry[1].append(np.array(g[k]))
		dataset.append(entry)
	# print "-="*10
	# for d in dataset:
	# 	print d
	# print "-="*10
	mapper = scan_fit(dataset,debug=debug)
	return mapper