original_docstring:  Optional, and 2D only: remove Z entry from 3d vec fields
  		
docstring: Optional, and 2D only: remove Z entry from 3d vec fields
docstring_tokens: Optional and 2D only : remove Z entry from 3d vec fields
code: def removeZComponent(self,x):
  		""" Optional, and 2D only: remove Z entry from 3d vec fields
  		"""
  		if not self.collapse_z: return x
  		if not self.getDim( x.shape )==2: return x
  		if not x.shape[3]==3: return x  # only apply for pure velocity grids with 3 channels
  		x2d = np.zeros( (1,x.shape[1],x.shape[2],2), dtype=FDG_DTYPE )
  		x2d[:,:,:,0] = x[:,:,:,0] # only keep x,y
  		x2d[:,:,:,1] = x[:,:,:,1]
  		return x2d
code_tokens: def removeZComponent ( self , x ) : if not self . collapse_z : return x if not self . getDim ( x . shape ) == 2 : return x if not x . shape [ 3 ] == 3 : return x x2d = np . zeros ( ( 1 , x . shape [ 1 ] , x . shape [ 2 ] , 2 ) , dtype = FDG_DTYPE ) x2d [ : , : , : , 0 ] = x [ : , : , : , 0 ] x2d [ : , : , : , 1 ] = x [ : , : , : , 1 ] return x2d
short_docstring: Optional, and 2D only: remove Z entry from 3d vec fields
short_docstring_tokens: Optional and 2D only : remove Z entry from 3d vec fields
comment: """ Optional, and 2D only: remove Z entry from 3d vec fields
  		"""$SEP$# only apply for pure velocity grids with 3 channels
  $SEP$# only keep x,y
  