200702201504   0     0     0psteeves buffer C:\nat_streamstats\ma\source_data_dir\conc\huc8 hucbuff # # 50 1 poly
200702201504   0     2     0psteeves BUFFG = polygrid (hucbuff)
200702201505   1     3     0psteeves VECTGRID = linegrid ( C:\nat_streamstats\ma\source_data_dir\conc\dendrite )
200702201505   0     6     0psteeves SMOGRID = int ( setnull ( isnull ( vectgrid ), ( C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr + -500 ) ) )
200702201505   0    24     0psteeves VECTDIST = eucdistance( smogrid, #, vectallo, #, # )
200702201505   0    24     0psteeves VECTDIST = eucdistance( smogrid, #, vectallo, #, # )
200702201505   0     4     0psteeves BUFGRID1 = con ( ( vectdist > ( 60 - ( 10 / 2 ) ) ), 1, 0)
200702201505   0     6     0psteeves BUFGRID2 = int ( setnull ( bufgrid1 == 0, C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr ) )
200702201506   1    24     0psteeves BUFDIST = eucdistance( bufgrid2, #, bufallo, #, # )
200702201506   1    24     0psteeves BUFDIST = eucdistance( bufgrid2, #, bufallo, #, # )
200702201506   0     9     0psteeves SMOELEV =  vectallo + ( ( bufallo - vectallo ) / ( bufdist + vectdist ) ) * vectdist
200702201506   0     6     0psteeves SHAGRID = int ( setnull ( isnull ( vectgrid ), ( smoelev + -50000 ) ) )
200702201506   0     7     0psteeves ELEVGRID = con ( isnull ( vectgrid ), smoelev, shagrid )
200702201506   0     0     0psteeves kill vectgrid all
200702201506   0     0     0psteeves kill smogrid all
200702201506   0     0     0psteeves kill vectdist all
200702201506   0     0     0psteeves kill vectallo all
200702201506   0     0     0psteeves kill bufgrid1 all
200702201506   0     0     0psteeves kill bufgrid2 all
200702201506   0     0     0psteeves kill bufdist all
200702201506   0     1     0psteeves kill bufallo all
200702201506   0     0     0psteeves kill smoelev all
200702201506   0     0     0psteeves kill shagrid all
200702201506   0     2     0psteeves NHDGRD = linegrid(C:\nat_streamstats\ma\source_data_dir\conc\dendrite, #, #, #, 10)
200702201506   0     2     0psteeves RIDGE_NL = polygrid(C:\nat_streamstats\ma\source_data_dir\conc\huc8, #, #, #, 10)
200702201507   1     3     0psteeves RIDGE_EXP = expand(ridge_nl, 2, list, 2)
200702201507   0     4     0psteeves RIDGE_W = setnull((not isnull(ridge_nl) and not isnull(ridge_exp)), ridge_exp)
200702201507   0     8     0psteeves DEM_RIDGE8 = elevgrid + con(( not isnull(ridge_w) and isnull(nhdgrd)), 100000, 0)
200702201507   0    13     0psteeves EUCD = setnull(isnull(C:\nat_streamstats\ma\source_data_dir\conc\nhd_wbg), eucdistance(C:\nat_streamstats\ma\source_data_dir\con
200702201507   0    20     0psteeves EUCD = setnull(isnull(C:\nat_streamstats\ma\source_data_dir\conc\nhd_wbg), eucdistance(C:\nat_streamstats\ma\source_data_dir\conc\wb_srcg))
200702201508   1     8     0psteeves DEM_RIDGE8WB = dem_ridge8 - con( not isnull(eucd), (2000 / (eucd + 1)), 0)
200702201508   0     3     0psteeves buffer C:\nat_streamstats\ma\source_data_dir\conc\inwall inwallbuf # # 15 1 line
200702201508   0     3     0psteeves INWALLG_TMP = polygrid(inwallbuf,inside,#,#,10)
200702201508   0     3     0psteeves INWALLG = con(inwallg_tmp == 100,0)
200702201508   0     9     0psteeves DEM_ENFORCED = dem_ridge8wb + con(( not isnull(inwallg) and isnull(nhdgrd)), 50000, 0)
200702201508   0     4     0psteeves FIL = c:\nat_streamstats\ma\01070005\dem_enforced
200702201508   0     5     0psteeves Z00DEM_ENFF = focalflow(fil)
200702201508   0     8     0psteeves Z00DEM_ENTMP = CON (z00dem_enff eq 255,min(fil(1,1), fil(1,0), fil(1,-1),                    fil(0,1), fil(0,-1),                    fil(-1,1),fil(-1,0),fil(-1,-1)),fil)
200702201509   1     4     0psteeves FIL = z00dem_entmp
200702201509   0     0     0psteeves kill z00dem_enff all
200702201509   0     0     0psteeves kill z00dem_entmp all
200702201509   0    18     0psteeves Z00DEM_ENDIR = flowdirection (fil, #, force)
200702201509   0     7     0psteeves Z00DEM_ENSNK = sink (z00dem_endir)
200702201510   1    49     0psteeves Z00DEM_ENSUB = watershed (z00dem_endir, z00dem_ensnk)
200702201510   0     0     0psteeves kill z00dem_ensnk
200702201510   0     4     0psteeves Z00DEM_ENZFL = zonalfill (z00dem_ensub, fil)
200702201510   0     5     0psteeves Z00DEM_ENZF1 = con (isnull (z00dem_enzfl), -50864, z00dem_enzfl)
200702201510   0     0     0psteeves kill z00dem_enzfl
200702201511   1     5     0psteeves Z00DEM_ENZF2 = con (fil < z00dem_enzf1, z00dem_enzf1, fil)
200702201511   0     0     0psteeves kill z00dem_ensub
200702201511   0     0     0psteeves kill z00dem_enzf1
200702201511   0     0     0psteeves kill fil
200702201511   0     0     0psteeves RENAME z00dem_enzf2 fil
200702201511   0     0     0psteeves kill z00dem_endir all
200702201511   0    20     0psteeves Z00DEM_ENDIR = flowdirection (fil, #, force)
200702201511   0     9     0psteeves Z00DEM_ENSNK = sink (z00dem_endir)
200702201513   2    76     0psteeves Z00DEM_ENSUB = watershed (z00dem_endir, z00dem_ensnk)
200702201513   0     0     0psteeves kill z00dem_ensnk
200702201513   0     4     0psteeves Z00DEM_ENZFL = zonalfill (z00dem_ensub, fil)
200702201513   0     5     0psteeves Z00DEM_ENZF1 = con (isnull (z00dem_enzfl), -49919, z00dem_enzfl)
200702201513   0     0     0psteeves kill z00dem_enzfl
200702201513   0     5     0psteeves Z00DEM_ENZF2 = con (fil < z00dem_enzf1, z00dem_enzf1, fil)
200702201513   0     0     0psteeves kill z00dem_ensub
200702201513   0     0     0psteeves kill z00dem_enzf1
200702201513   0     0     0psteeves kill fil
200702201513   0     0     0psteeves RENAME z00dem_enzf2 fil
200702201513   0     0     0psteeves kill z00dem_endir all
200702201513   0    22     0psteeves Z00DEM_ENDIR = flowdirection (fil, #, force)
200702201514   1     8     0psteeves Z00DEM_ENSNK = sink (z00dem_endir)
200702201516   2  -311     0psteeves Z00DEM_ENSUB = watershed (z00dem_endir, z00dem_ensnk)
200702201516   0     0     0psteeves kill z00dem_ensnk
200702201516   0     5     0psteeves Z00DEM_ENZFL = zonalfill (z00dem_ensub, fil)
200702201516   0     5     0psteeves Z00DEM_ENZF1 = con (isnull (z00dem_enzfl), -49626, z00dem_enzfl)
200702201516   0     0     0psteeves kill z00dem_enzfl
200702201517   1     5     0psteeves Z00DEM_ENZF2 = con (fil < z00dem_enzf1, z00dem_enzf1, fil)
200702201517   0     0     0psteeves kill z00dem_ensub
200702201517   0     0     0psteeves kill z00dem_enzf1
200702201517   0     0     0psteeves kill fil
200702201517   0     0     0psteeves RENAME z00dem_enzf2 fil
200702201517   0     0     0psteeves kill z00dem_endir all
200702201517   0    25     0psteeves Z00DEM_ENDIR = flowdirection (fil, #, force)
200702201517   0     9     0psteeves Z00DEM_ENSNK = sink (z00dem_endir)
200702201518   1    17     0psteeves Z00DEM_ENSUB = watershed (z00dem_endir, z00dem_ensnk)
200702201518   0     0     0psteeves kill z00dem_ensnk
200702201518   0     4     0psteeves Z00DEM_ENZFL = zonalfill (z00dem_ensub, fil)
200702201518   0     5     0psteeves Z00DEM_ENZF1 = con (isnull (z00dem_enzfl), -49307, z00dem_enzfl)
200702201518   0     0     0psteeves kill z00dem_enzfl
200702201518   0     5     0psteeves Z00DEM_ENZF2 = con (fil < z00dem_enzf1, z00dem_enzf1, fil)
200702201518   0     0     0psteeves kill z00dem_ensub
200702201518   0     0     0psteeves kill z00dem_enzf1
200702201518   0     0     0psteeves kill fil
200702201518   0     0     0psteeves RENAME z00dem_enzf2 fil
200702201518   0     0     0psteeves kill z00dem_endir all
200702201518   0    25     0psteeves Z00DEM_ENDIR = flowdirection (fil, #, force)
200702201519   1     8     0psteeves Z00DEM_ENSNK = sink (z00dem_endir)
200702201519   0     1     0psteeves BUILDVAT z00dem_ensnk
200702201519   0     0     0psteeves kill z00dem_endir all
200702201519   0    25     0psteeves FDR = flowdirection (fil)
200702201519   0     0     0psteeves kill z00dem_ensnk
200702201519   0     2     0psteeves FDRMSK = fdr
200702201519   0     0     0psteeves kill fdr all
200702201519   0     0     0psteeves RENAME fdrmsk fdr
200702201525   6  -132     0psteeves FAC = int( flowaccumulation ( fdr ))
200702201525   6  -127     0psteeves FAC = int( flowaccumulation ( fdr ))
200702201525   0     0     0psteeves frequency fdr.vat xxxfdrvalues
200702201525   0     5     0psteeves SINKS = con ( fil gt C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr, 1)
200702201525   0     6     0psteeves SINKS_POLY = gridpoly( sinks)
200702201525   0     0     0psteeves kill sinks all
200702201525   0     3     0psteeves STR = con ( fac ge 150000, 1)
200702201525   0     5     0psteeves LNK = streamlink ( str, fdr )
200702201525   0     4     0psteeves STR900 = con ( fac ge 900, 1)
200702201526   1    57     0psteeves CAT =  watershed (fdr, lnk )
200703061611   0     7     0psteeves FILI = int(fil)
200703061619   0     0     0psteeves kill fil all
200703061619   0     0     0psteeves rename fili fil
20070307 736   0     5     0psteeves c:\nat_st~1\ma\01070005\DEM = C:\NAT_ST~1\ma\ned_dir\suburb_g
