def get_tile_start_end_index(tile_number, tile_size,
                             tile_offset=None, tile_separation=None):
        """Calculate the starting and ending index along a single dimension"""
        
        if not tile_separation:
                tile_separation = tile_size
        
        if not tile_offset:
                tile_offset = 0
        
        start_index = (tile_number * tile_separation) + tile_offset
        end_index = start_index + tile_size
        
        return start_index, end_index