original_docstring: function for converting a stack of geomorphic surfaces into stratigraphic surfaces
      inputs:
      topo - 3D numpy array of geomorphic surfaces
      returns:
      strat - 3D numpy array of stratigraphic surfaces
      
docstring: function for converting a stack of geomorphic surfaces into stratigraphic surfaces
  inputs:
  topo - 3D numpy array of geomorphic surfaces
  returns:
  strat - 3D numpy array of stratigraphic surfaces
docstring_tokens: function for converting a stack of geomorphic surfaces into stratigraphic surfaces inputs : topo - 3D numpy array of geomorphic surfaces returns : strat - 3D numpy array of stratigraphic surfaces
code: def topostrat(topo):
      """function for converting a stack of geomorphic surfaces into stratigraphic surfaces
      inputs:
      topo - 3D numpy array of geomorphic surfaces
      returns:
      strat - 3D numpy array of stratigraphic surfaces
      """
      r,c,ts = np.shape(topo)
      strat = np.copy(topo)
      for i in (range(0,ts)):
          strat[:,:,i] = np.amin(topo[:,:,i:], axis=2)
      return strat
code_tokens: def topostrat ( topo ) : r , c , ts = np . shape ( topo ) strat = np . copy ( topo ) for i in ( range ( 0 , ts ) ) : strat [ : , : , i ] = np . amin ( topo [ : , : , i : ] , axis = 2 ) return strat
short_docstring: function for converting a stack of geomorphic surfaces into stratigraphic surfaces
  inputs:
  topo - 3D numpy array of geomorphic surfaces
  returns:
  strat - 3D numpy array of stratigraphic surfaces
short_docstring_tokens: function for converting a stack of geomorphic surfaces into stratigraphic surfaces inputs : topo - 3D numpy array of geomorphic surfaces returns : strat - 3D numpy array of stratigraphic surfaces
comment: """function for converting a stack of geomorphic surfaces into stratigraphic surfaces
      inputs:
      topo - 3D numpy array of geomorphic surfaces
      returns:
      strat - 3D numpy array of stratigraphic surfaces
      """