def ds_strip_empty(lDatasets):
	"""Strip empty datasets from a list of datasets

	Args:
		lDatasets (list) : A list of Dataset Objects or None

	Returns: list
		Returns a list object containing all datasets that contained at least
		a single coordinate or data point.  If the given list contains only
		empty datasets (or is null) then an empty list object is returned.
	"""

	lOut = []
	if lDatasets == None: return lOut

	for ds in lDatasets:
		#sys.stderr.write("Shape of ds %s is %s\n"%(ds.name, ds.shape))
		for n in ds.shape:
			if n > 0:
				lOut.append(ds)
				break

	return lOut