splitvar/splitvar.py
def find_bounds(var, dim=None, **kwargs):
    """
    Return a bounds variable that encompasses the bounds of entire var. 
    Used after resample to return bounds of a resampled variable.  
    """

    if len(var.shape) > 1:
        try:
            # Grab the first bounds and replace the end of the bounds with the
            # second value in the last bounds
            boundingvar = var[0]
            boundingvar[1] = var[-1][1]
        except:
            boundingvar = var
    else:
        try:
            # Grab the first bounds and replace the end of the bounds with the
            # second value in the last bounds
            boundingvar = var[-1]
        except:
            boundingvar = var

    return boundingvar

    Return a bounds variable that encompasses the bounds of entire var. 
    Used after resample to return bounds of a resampled variable.  
    
Return a bounds variable that encompasses the bounds of entire var.
Used after resample to return bounds of a resampled variable.
Return a bounds variable that encompasses the bounds of entire var . Used after resample to return bounds of a resampled variable .
def find_bounds(var, dim=None, **kwargs):
    if len(var.shape) > 1:
        try:
            boundingvar = var[0]
            boundingvar[1] = var[-1][1]
        except:
            boundingvar = var
    else:
        try:
            boundingvar = var[-1]
        except:
            boundingvar = var
    return boundingvar
def find_bounds ( var , dim = None , ** kwargs ) : if len ( var . shape ) > 1 : try : boundingvar = var [ 0 ] boundingvar [ 1 ] = var [ - 1 ] [ 1 ] except : boundingvar = var else : try : boundingvar = var [ - 1 ] except : boundingvar = var return boundingvar
Return a bounds variable that encompasses the bounds of entire var.
Return a bounds variable that encompasses the bounds of entire var .
"""
    Return a bounds variable that encompasses the bounds of entire var. 
    Used after resample to return bounds of a resampled variable.  
    """ # Grab the first bounds and replace the end of the bounds with the # second value in the last bounds # Grab the first bounds and replace the end of the bounds with the # second value in the last bounds
var
dim