def drop_null(data,states):
	"""Based on states, drop null states from a 1d data sequence."""
	
	no0 = []
	for d,s in zip(data,states):
		if (s == 0) or (s == '0'):
			continue
		else:
			no0.append(d)
	return no0