ó
ïZ+_c           @   sK   d  d l  Z  d  d l  m Z d  d l Td  d l Z d  d l Z d „  Z d S(   iÿÿÿÿN(   t   env(   t   *c         C   s¬  d } d t  | ƒ GHd } d t  | ƒ GHd } d t  | ƒ GHd } d }	 d	 }
 d
 } d } d } d t _ d GH| | | } | d k r“ d GHnd GHt | d d ƒ } | j d ƒ t t |  ƒ |	 k |	 |  ƒ } t t | ƒ |
 k |
 | ƒ } t t d ƒ | k | | ƒ } | j d ƒ | j d ƒ | j d ƒ d GH| | | | d t | | | ƒ | t | |	 | ƒ | d t | |
 | ƒ } | j | ƒ d GH| Sd  S(   Ngffffffæ?s$   The relative weighting for slope is g        s*   The relative weighting for source area is g333333Ó?s(   The relative weighting for elevation is g      >@g     jø@iÜ  g      Ð?g      ð?g      è?t   maskrass   All value read ins   the weights must add up to 1.s   start creating filet   DEGREEi   t	   slopegridt   tmpsrct   tmpelet   tmpslps   calculate soil  maps   delete temp files(   t   strR    t   maskt   Slopet   savet   Cont   Rastert   Power(   t   flowacct   elevt   mindeptht   maxdeptht	   soildeptht   wtslopet   wtsourcet   wtelevt   maxslopet	   maxsourcet   maxelevt   powslopet	   powsourcet   powelevt   totalwtR   t   tempsrct   tempelevt	   tempslopet   soild(    (    sR   C:\Users\jwon\Desktop\Snoho_36class\CreateStreamNetwork_PythonV\soildepthscript.pyt   soildepthfun&   sB    	
-(   t   arcpyR    t   arcpy.sat   arcgisscriptingt   osR"   (    (    (    sR   C:\Users\jwon\Desktop\Snoho_36class\CreateStreamNetwork_PythonV\soildepthscript.pyt   <module>    s
   
