Command:  
Grid: 
(thread0001, hydrodem_work_mod.aml/24) &echo &on
Grid: 
(thread0001, hydrodem_work_mod.aml/25) &args outdir huc8cov origdem dendrite bowl_polys bowl_lines snap_grid inwall drainplug start_path thresh thresh2 buffdist inwallbuffdist inwallht outwallht agreebuf agreesmooth agreesharp bowldepth copylayers cellsz bowling in_wall drain_plugs
Grid: 
(thread0001, hydrodem_work_mod.aml/27) &severity &error &routine Bailout
Grid: 
(thread0001, hydrodem_work_mod.aml/28) &type 07-02-20.15:04:51.Tue
07-02-20.15:04:51.Tue
Grid: 
(thread0001, hydrodem_work_mod.aml/29) clear
Grid: 
(thread0001, hydrodem_work_mod.aml/30) &s x = .1
Grid: 
(thread0001, hydrodem_work_mod.aml/31) &s y = 2.15
Grid: 
(thread0001, hydrodem_work_mod.aml/32) textfont 94023
Grid: 
(thread0001, hydrodem_work_mod.aml/33) textquality proportional
Grid: 
(thread0001, hydrodem_work_mod.aml/34) units page
Grid: 
(thread0001, hydrodem_work_mod.aml/35) move .1 2.15
Grid: 
(thread0001, hydrodem_work_mod.aml/36) textsi .18
Grid: 
(thread0001, hydrodem_work_mod.aml/37) text 'HydroDEM.aml is running '
Grid: 
(thread0001, hydrodem_work_mod.aml/38) textsi .13
Grid: 
(thread0001, hydrodem_work_mod.aml/39) &if 'C:\nat_streamstats\ma\01070005' = '#' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/44) &if ^ .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/45)   arc createworkspace C:\nat_streamstats\ma\01070005
Grid: 
(thread0001, hydrodem_work_mod.aml/46) &wo C:\nat_streamstats\ma\01070005
Grid: 
(thread0001, hydrodem_work_mod.aml/48) &call check_args
Grid: 
(thread0001, hydrodem_work_mod.aml/422) &s x = .1
Grid: 
(thread0001, hydrodem_work_mod.aml/423) &s y = 2.0
Grid: 
(thread0001, hydrodem_work_mod.aml/424) textfont 94023
Grid: 
(thread0001, hydrodem_work_mod.aml/425) textquality proportional
Grid: 
(thread0001, hydrodem_work_mod.aml/426) textsi .13
Grid: 
(thread0001, hydrodem_work_mod.aml/427) units page
Grid: 
(thread0001, hydrodem_work_mod.aml/428) move .1 2.0
Grid: 
(thread0001, hydrodem_work_mod.aml/435) &if 'C:\nat_streamstats\ma\source_data_dir\conc\huc8' = 'huc8' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/443) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/443)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/444)   &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/448)   &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/454) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/457) &if 'C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr' = 'dem' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/465) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/465)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/466)   &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/470)   &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/476) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/481) &if 'C:\nat_streamstats\ma\source_data_dir\conc\dendrite' = 'nhdrch' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/489) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/489)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/490)   &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/494)   &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/500) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/503) &if 1 = 0 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/506) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/506)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/507)   &if 'C:\nat_streamstats\ma\source_data_dir\conc\nhd_wbg' = '#' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/515)   &else
Grid: 
(thread0001, hydrodem_work_mod.aml/515)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/516)     &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/520)     &else
Grid: 
(thread0001, hydrodem_work_mod.aml/521)       &s bowl_bypass = N
Grid: 
(thread0001, hydrodem_work_mod.aml/522)     &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/528)   &end
Grid: 
(thread0001, hydrodem_work_mod.aml/529) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/532) &if 1 = 0 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/535) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/535)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/536)   &if 'C:\nat_streamstats\ma\source_data_dir\conc\wb_srcg' = '#' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/544)   &else
Grid: 
(thread0001, hydrodem_work_mod.aml/544)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/545)     &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/549)     &else
Grid: 
(thread0001, hydrodem_work_mod.aml/550)       &s bowl_bypass = N
Grid: 
(thread0001, hydrodem_work_mod.aml/551)     &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/557)   &end
Grid: 
(thread0001, hydrodem_work_mod.aml/558) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/561) &if 'C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr' = 'snap_grid' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/569) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/569)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/570)   &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/574)   &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/580) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/582) &des C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr
Grid: 
(thread0001, hydrodem_work_mod.aml/583) &if 0 <> 0 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/589) &if 1 = 0 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/592) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/592)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/593)   &if 'C:\nat_streamstats\ma\source_data_dir\conc\inwall' = '#' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/601)   &else
Grid: 
(thread0001, hydrodem_work_mod.aml/601)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/602)     &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/606)     &else
Grid: 
(thread0001, hydrodem_work_mod.aml/607)       &s iw_bypass = N
Grid: 
(thread0001, hydrodem_work_mod.aml/608)     &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/614)   &end
Grid: 
(thread0001, hydrodem_work_mod.aml/615) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/618) &if 0 = 0 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/618)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/619)   &s dp_bypass = Y
Grid: 
(thread0001, hydrodem_work_mod.aml/620) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/621) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/648) &des C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr
Grid: 
(thread0001, hydrodem_work_mod.aml/649) &s prjnm = STATEPLANE
Grid: 
(thread0001, hydrodem_work_mod.aml/650) &s dat = NAD83
Grid: 
(thread0001, hydrodem_work_mod.aml/651) &s xy_units = METERS
Grid: 
(thread0001, hydrodem_work_mod.aml/653) &do layer &list C:\nat_streamstats\ma\source_data_dir\conc\huc8 C:\nat_streamstats\ma\source_data_dir\conc\dendrite C:\nat_streamstats\ma\source_data_dir\conc\nhd_wbg C:\nat_streamstats\ma\source_data_dir\conc\wb_srcg C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr C:\nat_streamstats\ma\source_data_dir\conc\inwall
Grid: 
(thread0001, hydrodem_work_mod.aml/654)   &des C:\nat_streamstats\ma\source_data_dir\conc\huc8
Grid: 
(thread0001, hydrodem_work_mod.aml/655)   &if STATEPLANE_ <> STATEPLANE_ &then
Grid: 
(thread0001, hydrodem_work_mod.aml/660)   &if NAD83 <> NAD83 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/665)   &if METERS <> METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/670) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/654)   &des C:\nat_streamstats\ma\source_data_dir\conc\dendrite
Grid: 
(thread0001, hydrodem_work_mod.aml/655)   &if STATEPLANE_ <> STATEPLANE_ &then
Grid: 
(thread0001, hydrodem_work_mod.aml/660)   &if NAD83 <> NAD83 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/665)   &if METERS <> METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/670) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/654)   &des C:\nat_streamstats\ma\source_data_dir\conc\nhd_wbg
Grid: 
(thread0001, hydrodem_work_mod.aml/655)   &if STATEPLANE_ <> STATEPLANE_ &then
Grid: 
(thread0001, hydrodem_work_mod.aml/660)   &if NAD83 <> NAD83 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/665)   &if METERS <> METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/670) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/654)   &des C:\nat_streamstats\ma\source_data_dir\conc\wb_srcg
Grid: 
(thread0001, hydrodem_work_mod.aml/655)   &if STATEPLANE_ <> STATEPLANE_ &then
Grid: 
(thread0001, hydrodem_work_mod.aml/660)   &if NAD83 <> NAD83 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/665)   &if METERS <> METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/670) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/654)   &des C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr
Grid: 
(thread0001, hydrodem_work_mod.aml/655)   &if STATEPLANE_ <> STATEPLANE_ &then
Grid: 
(thread0001, hydrodem_work_mod.aml/660)   &if NAD83 <> NAD83 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/665)   &if METERS <> METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/670) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/654)   &des C:\nat_streamstats\ma\source_data_dir\conc\inwall
Grid: 
(thread0001, hydrodem_work_mod.aml/655)   &if STATEPLANE_ <> STATEPLANE_ &then
Grid: 
(thread0001, hydrodem_work_mod.aml/660)   &if NAD83 <> NAD83 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/665)   &if METERS <> METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/670) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/673) &des C:\nat_streamstats\ma\source_data_dir\conc\huc8
Grid: 
(thread0001, hydrodem_work_mod.aml/674) &if 2 > 2 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/678) &return
Grid: 
(thread0001, hydrodem_work_mod.aml/78) &setvar filldem = fil
Grid: 
(thread0001, hydrodem_work_mod.aml/79) &setvar fdirg = fdr
Grid: 
(thread0001, hydrodem_work_mod.aml/80) &setvar faccg = fac
Grid: 
(thread0001, hydrodem_work_mod.aml/82) &setvar fsinkg = sinks
Grid: 
(thread0001, hydrodem_work_mod.aml/83) &setvar fsinkc = sinks_poly
Grid: 
(thread0001, hydrodem_work_mod.aml/97) &describe C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr
Grid: 
(thread0001, hydrodem_work_mod.aml/99) &if METERS = METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/99)  &DO
Grid: 
(thread0001, hydrodem_work_mod.aml/100)   &if 10 = 10 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/100)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/101)     &sv cellsz = 10
Grid: 
(thread0001, hydrodem_work_mod.aml/109)   &end
Grid: 
(thread0001, hydrodem_work_mod.aml/110)   &else
Grid: 
(thread0001, hydrodem_work_mod.aml/114) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/116) &if METERS = FEET &then
Grid: 
(thread0001, hydrodem_work_mod.aml/133) &if METERS ne FEET and METERS ne METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/138) &sv zunits = '100'
Grid: 
(thread0001, hydrodem_work_mod.aml/139) &if '100' ne '100' and '100' ne '30.48' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/148) &call cleanup1
Grid: 
(thread0001, hydrodem_work_mod.aml/373) &do covs &list sinks_poly hucbuff inwallbuf
Grid: 
(thread0001, hydrodem_work_mod.aml/374)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/376) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/374)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/376) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/374)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/376) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/378) &do grds &list fdr fac sinks       buffg cat dem_ridge8 dem_ridge8wb elevgrid nhdgrd ridge_w       str str400 ridge_nl ridge_exp eucd lnk       inwallg dem_enforced inwallg_tmp dem_ridge12 dpg str900
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/384) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/385) &return
Grid: 
(thread0001, hydrodem_work_mod.aml/150) markerset water2
Grid: 
(thread0001, hydrodem_work_mod.aml/151) markersy 24
Grid: 
(thread0001, hydrodem_work_mod.aml/152) markercolor 2
Grid: 
(thread0001, hydrodem_work_mod.aml/153) marker .05 1.85
Grid: 
(thread0001, hydrodem_work_mod.aml/154) marker .05 1.7
Grid: 
(thread0001, hydrodem_work_mod.aml/155) marker .05 1.55
Grid: 
(thread0001, hydrodem_work_mod.aml/156) marker .05 1.4
Grid: 
(thread0001, hydrodem_work_mod.aml/157) marker .05 1.25
Grid: 
(thread0001, hydrodem_work_mod.aml/158) marker .05 1.1
Grid: 
(thread0001, hydrodem_work_mod.aml/159) marker .05 .95
Grid: 
(thread0001, hydrodem_work_mod.aml/160) marker .05 .8
Grid: 
(thread0001, hydrodem_work_mod.aml/161) marker .05 .65
Grid: 
(thread0001, hydrodem_work_mod.aml/162) marker .05 .5
Grid: 
(thread0001, hydrodem_work_mod.aml/163) marker .05 .35
Grid: 
(thread0001, hydrodem_work_mod.aml/166) textsi .13
Grid: 
(thread0001, hydrodem_work_mod.aml/167) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/168) marker .05 1.85
Grid: 
(thread0001, hydrodem_work_mod.aml/169) move .15 1.8
Grid: 
(thread0001, hydrodem_work_mod.aml/170) text 'Buffering HUC '
Grid: 
(thread0001, hydrodem_work_mod.aml/171) Text 50
Grid: 
(thread0001, hydrodem_work_mod.aml/172) Text ' '
Grid: 
(thread0001, hydrodem_work_mod.aml/173) Text meters
Grid: 
(thread0001, hydrodem_work_mod.aml/174) arc buffer C:\nat_streamstats\ma\source_data_dir\conc\huc8 hucbuff # # 50 1 poly
 Buffering ...
 Sorting...
 Intersecting...
 Assembling polygons...
 Creating new labels...
 Finding inside polygons...
 Dissolving...
 Building nodes...
 Creating hucbuff.PAT...
Grid: 
(thread0001, hydrodem_work_mod.aml/175) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/176) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/177) marker .05 1.85
Grid: 
(thread0001, hydrodem_work_mod.aml/180) verify off
Grid: 
(thread0001, hydrodem_work_mod.aml/181) setcell 10
Grid: 
(thread0001, hydrodem_work_mod.aml/182) setwindow hucbuff C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr
Grid: 
(thread0001, hydrodem_work_mod.aml/183) buffg = polygrid (hucbuff)
 Converting polygons from HUCBUFF to grid BUFFG
Number of Rows    = 5002
Number of Columns = 3879
Grid: 
(thread0001, hydrodem_work_mod.aml/184) setmask buffg
Grid: 
(thread0001, hydrodem_work_mod.aml/187) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/188) marker .05 1.7
Grid: 
(thread0001, hydrodem_work_mod.aml/189) move .15 1.65
Grid: 
(thread0001, hydrodem_work_mod.aml/190) text 'Starting AGREE.aml '
Grid: 
(thread0001, hydrodem_work_mod.aml/191) &r C:\nat_streamstats\amls_dir\agree.aml C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr C:\nat_streamstats\ma\source_data_dir\conc\dendrite 60 -500 -50000
Grid: 
(thread0001, agree.aml/24) &args oelevgrid vectcov buffer smoothdist sharpdist
Grid: 
(thread0001, agree.aml/28) &if ( 52 = 0 ) &then
Grid: 
(thread0001, agree.aml/108) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/109) &type AGREE: Starting...
AGREE: Starting...
Grid: 
(thread0001, agree.aml/113) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/114) &type AGREE: Extracting original elevation grid parameters...
AGREE: Extracting original elevation grid parameters...
Grid: 
(thread0001, agree.aml/115) &describe C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr
Grid: 
(thread0001, agree.aml/116) &sv cellsize = 10
Grid: 
(thread0001, agree.aml/121) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/122) &type AGREE: Displaying original elevation grid...
AGREE: Displaying original elevation grid...
Grid: 
(thread0001, agree.aml/128) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/129) &type AGREE: Setting the analysis environment...
AGREE: Setting the analysis environment...
Grid: 
(thread0001, agree.aml/130) setwindow C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr
Grid: 
(thread0001, agree.aml/131) setcell C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr
Grid: 
(thread0001, agree.aml/137) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/138) &type AGREE: Computing vector grid...
AGREE: Computing vector grid...
Grid: 
(thread0001, agree.aml/139) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/140) &if .FALSE. &then
Grid: 
(thread0001, agree.aml/142) vectgrid = linegrid ( C:\nat_streamstats\ma\source_data_dir\conc\dendrite )
 Converting arcs from C:\NAT_STREAMSTATS\MA\SOURCE_DATA_DIR\CONC\DENDRITE to grid VECTGRID
Number of Rows    = 5391
Number of Columns = 4269
Grid: 
(thread0001, agree.aml/143) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/144) &type AGREE: Displaying vector grid...
AGREE: Displaying vector grid...
Grid: 
(thread0001, agree.aml/149) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/150) &type AGREE: Computing smooth drop/raise grid...
AGREE: Computing smooth drop/raise grid...
Grid: 
(thread0001, agree.aml/151) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/152) &if .FALSE. &then
Grid: 
(thread0001, agree.aml/154) smogrid = int ( setnull ( isnull ( vectgrid ), ( C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr + -500 ) ) )
Grid: 
(thread0001, agree.aml/155) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/156) &type AGREE: Displaying smooth drop/raise grid...
AGREE: Displaying smooth drop/raise grid...
Grid: 
(thread0001, agree.aml/161) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/162) &type AGREE: Computing vector distance grids...
AGREE: Computing vector distance grids...
Grid: 
(thread0001, agree.aml/163) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/164) &if .FALSE. &then
Grid: 
(thread0001, agree.aml/166) &if .FALSE. &then
Grid: 
(thread0001, agree.aml/168) vectdist = eucdistance( smogrid, #, vectallo, #, # )
Initializing...
Start Euclidean distance mapping
Grid: 
(thread0001, agree.aml/169) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/170) &type AGREE: Displaying vector distance grid...
AGREE: Displaying vector distance grid...
Grid: 
(thread0001, agree.aml/175) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/176) &type AGREE: Computing buffer grid...
AGREE: Computing buffer grid...
Grid: 
(thread0001, agree.aml/177) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/178) &if .FALSE. &then
Grid: 
(thread0001, agree.aml/180) &if .FALSE. &then
Grid: 
(thread0001, agree.aml/182) bufgrid1 = con ( ( vectdist > ( 60 - ( 10 / 2 ) ) ), 1, 0)
Grid: 
(thread0001, agree.aml/183) bufgrid2 = int ( setnull ( bufgrid1 == 0, C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr ) )
Grid: 
(thread0001, agree.aml/184) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/185) &type AGREE: Displaying buffer grid...
AGREE: Displaying buffer grid...
Grid: 
(thread0001, agree.aml/190) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/191) &type AGREE: Computing buffer distance grids...
AGREE: Computing buffer distance grids...
Grid: 
(thread0001, agree.aml/192) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/193) &if .FALSE. &then
Grid: 
(thread0001, agree.aml/195) &if .FALSE. &then
Grid: 
(thread0001, agree.aml/197) bufdist = eucdistance( bufgrid2, #, bufallo, #, # )
Initializing...
Start Euclidean distance mapping
Grid: 
(thread0001, agree.aml/198) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/199) &type AGREE: Displaying buffer distance grid...
AGREE: Displaying buffer distance grid...
Grid: 
(thread0001, agree.aml/204) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/205) &type AGREE: Computing smooth modified elevation grid...
AGREE: Computing smooth modified elevation grid...
Grid: 
(thread0001, agree.aml/206) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/207) &if .FALSE. &then
Grid: 
(thread0001, agree.aml/209) smoelev =  vectallo + ( ( bufallo - vectallo ) / ( bufdist + vectdist ) ) * vectdist
Grid: 
(thread0001, agree.aml/210) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/211) &type AGREE: Displaying smooth modified elevation grid...
AGREE: Displaying smooth modified elevation grid...
Grid: 
(thread0001, agree.aml/212) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/217) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/218) &type AGREE: Computing sharp drop/raise grid...
AGREE: Computing sharp drop/raise grid...
Grid: 
(thread0001, agree.aml/219) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/220) &if .FALSE. &then
Grid: 
(thread0001, agree.aml/222) shagrid = int ( setnull ( isnull ( vectgrid ), ( smoelev + -50000 ) ) )
Grid: 
(thread0001, agree.aml/223) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/224) &type AGREE: Displaying sharp drop/raise grid...
AGREE: Displaying sharp drop/raise grid...
Grid: 
(thread0001, agree.aml/229) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/230) &type AGREE: Computing modified elevation grid...
AGREE: Computing modified elevation grid...
Grid: 
(thread0001, agree.aml/231) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/232) &if .FALSE. &then
Grid: 
(thread0001, agree.aml/234) elevgrid = con ( isnull ( vectgrid ), smoelev, shagrid )
Grid: 
(thread0001, agree.aml/235) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/236) &type AGREE: Displaying modified elevation grid...
AGREE: Displaying modified elevation grid...
Grid: 
(thread0001, agree.aml/241) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/242) &type AGREE: Cleaning up...
AGREE: Cleaning up...
Grid: 
(thread0001, agree.aml/243) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/244) arc kill vectgrid all
Killed vectgrid with the ALL option
Grid: 
(thread0001, agree.aml/245) arc kill smogrid all
Killed smogrid with the ALL option
Grid: 
(thread0001, agree.aml/246) arc kill vectdist all
Killed vectdist with the ALL option
Grid: 
(thread0001, agree.aml/247) arc kill vectallo all
Killed vectallo with the ALL option
Grid: 
(thread0001, agree.aml/248) arc kill bufgrid1 all
Killed bufgrid1 with the ALL option
Grid: 
(thread0001, agree.aml/249) arc kill bufgrid2 all
Killed bufgrid2 with the ALL option
Grid: 
(thread0001, agree.aml/250) arc kill bufdist all
Killed bufdist with the ALL option
Grid: 
(thread0001, agree.aml/251) arc kill bufallo all
Killed bufallo with the ALL option
Grid: 
(thread0001, agree.aml/252) arc kill smoelev all
Killed smoelev with the ALL option
Grid: 
(thread0001, agree.aml/253) arc kill shagrid all
Killed shagrid with the ALL option
Grid: 
(thread0001, agree.aml/257) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/258) &type AGREE: Normal end.
AGREE: Normal end.
Grid: 
(thread0001, agree.aml/259) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/260) &type AGREE: NOTE: Modified elevation grid is saved as elevgrid in current workspace.
AGREE: NOTE: Modified elevation grid is saved as elevgrid in current workspace.
Grid: 
(thread0001, agree.aml/261) &type AGREE:
AGREE:
Grid: 
(thread0001, agree.aml/262) &return
Grid: 
(thread0001, hydrodem_work_mod.aml/192) units page
Grid: 
(thread0001, hydrodem_work_mod.aml/193) Text ' ran OK'
Grid: 
(thread0001, hydrodem_work_mod.aml/194) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/195) marker .05 1.7
Grid: 
(thread0001, hydrodem_work_mod.aml/197) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/198) marker .05 1.55
Grid: 
(thread0001, hydrodem_work_mod.aml/199) move .15 1.5
Grid: 
(thread0001, hydrodem_work_mod.aml/200) text 'Start LINEGRID creation using NHD '
Grid: 
(thread0001, hydrodem_work_mod.aml/201) nhdgrd = linegrid(C:\nat_streamstats\ma\source_data_dir\conc\dendrite, #, #, #, 10)
 Converting arcs from C:\NAT_STREAMSTATS\MA\SOURCE_DATA_DIR\CONC\DENDRITE to grid NHDGRD
Number of Rows    = 5391
Number of Columns = 4269
Grid: 
(thread0001, hydrodem_work_mod.aml/202) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/203) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/204) marker .05 1.55
Grid: 
(thread0001, hydrodem_work_mod.aml/207) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/208) marker .05 1.4
Grid: 
(thread0001, hydrodem_work_mod.aml/209) move .15 1.35
Grid: 
(thread0001, hydrodem_work_mod.aml/210) Text 'Start Ridging '
Grid: 
(thread0001, hydrodem_work_mod.aml/212) ridge_nl = polygrid(C:\nat_streamstats\ma\source_data_dir\conc\huc8, #, #, #, 10)
 Converting polygons from C:\NAT_STREAMSTATS\MA\SOURCE_DATA_DIR\CONC\HUC8 to grid RIDGE_NL
Number of Rows    = 5391
Number of Columns = 4269
Grid: 
(thread0001, hydrodem_work_mod.aml/213) ridge_exp = expand(ridge_nl, 2, list, 2)
Grid: 
(thread0001, hydrodem_work_mod.aml/216) ridge_w = setnull((not isnull(ridge_nl) and not isnull(ridge_exp)), ridge_exp)
Grid: 
(thread0001, hydrodem_work_mod.aml/217) dem_ridge8 = elevgrid + con(( not isnull(ridge_w) and isnull(nhdgrd)), 100000, 0)
Grid: 
(thread0001, hydrodem_work_mod.aml/219) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/220) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/221) marker .05 1.4
Grid: 
(thread0001, hydrodem_work_mod.aml/227) &if N = N &then
Grid: 
(thread0001, hydrodem_work_mod.aml/227)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/228)   markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/229)   marker .05 1.25
Grid: 
(thread0001, hydrodem_work_mod.aml/230)   move .15 1.2
Grid: 
(thread0001, hydrodem_work_mod.aml/231)   Text 'Start Bowling '
Grid: 
(thread0001, hydrodem_work_mod.aml/232)   eucd = setnull(isnull(C:\nat_streamstats\ma\source_data_dir\conc\nhd_wbg), eucdistance(C:\nat_streamstats\ma\source_data_dir\conc\wb_srcg))
Start Euclidean Distance Mapping...  Please Wait...
Grid: 
(thread0001, hydrodem_work_mod.aml/233)   dem_ridge8wb = dem_ridge8 - con( not isnull(eucd), (2000 / (eucd + 1)), 0)
Grid: 
(thread0001, hydrodem_work_mod.aml/235)   text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/236)   markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/237)   marker .05 1.25
Grid: 
(thread0001, hydrodem_work_mod.aml/238) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/239) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/248) &if N = N &then
Grid: 
(thread0001, hydrodem_work_mod.aml/248)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/249)   markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/250)   marker .05 1.1
Grid: 
(thread0001, hydrodem_work_mod.aml/251)   move .15 1.05
Grid: 
(thread0001, hydrodem_work_mod.aml/252)   text 'Start Walling '
Grid: 
(thread0001, hydrodem_work_mod.aml/253)   arc buffer C:\nat_streamstats\ma\source_data_dir\conc\inwall inwallbuf # # 15 1 line
 Buffering ...
 Sorting...
 Intersecting...
 Assembling polygons...
 Creating new labels...
 Finding inside polygons...
 Dissolving...
 Building nodes...
 Creating inwallbuf.PAT...
Grid: 
(thread0001, hydrodem_work_mod.aml/254)   inwallg_tmp = polygrid(inwallbuf,inside,#,#,10)
 Converting polygons from INWALLBUF to grid INWALLG_TMP
Number of Rows    = 5391
Number of Columns = 4269
Grid: 
(thread0001, hydrodem_work_mod.aml/255)   inwallg = con(inwallg_tmp == 100,0)
Grid: 
(thread0001, hydrodem_work_mod.aml/256)   dem_enforced = dem_ridge8wb + con(( not isnull(inwallg) and isnull(nhdgrd)), 50000, 0)
Grid: 
(thread0001, hydrodem_work_mod.aml/258)   text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/259)   markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/260)   marker .05 1.1
Grid: 
(thread0001, hydrodem_work_mod.aml/261) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/262) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/273) &if Y = 'N' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/282) setwindow hucbuff C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr
Grid: 
(thread0001, hydrodem_work_mod.aml/283) setcell C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr
Grid: 
(thread0001, hydrodem_work_mod.aml/284) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/285) marker .05 .95
Grid: 
(thread0001, hydrodem_work_mod.aml/286) move .15 .9
Grid: 
(thread0001, hydrodem_work_mod.aml/287) text 'Start Fill '
Grid: 
(thread0001, hydrodem_work_mod.aml/288) &r C:\nat_streamstats\amls_dir\fill dem_enforced fil sink # fdr
Grid: 
(thread0001, fill.aml/17) &arg dem filled option zlimit direction
Grid: 
(thread0001, fill.aml/18) &severity &error &routine error
Grid: 
(thread0001, fill.aml/19) &s msgsave
Grid: 
(thread0001, fill.aml/20) &s vrfsave
Grid: 
(thread0001, fill.aml/24) &if GRID ne GRID &then
Grid: 
(thread0001, fill.aml/29) &if .FALSE. OR .FALSE. &then
Grid: 
(thread0001, fill.aml/32) &s frmdir c:\nat_streamstats\ma\01070005
Grid: 
(thread0001, fill.aml/33) &s todir  c:\nat_streamstats\ma\01070005
Grid: 
(thread0001, fill.aml/34) &s filled fil
Grid: 
(thread0001, fill.aml/35) &s dem    c:\nat_streamstats\ma\01070005\dem_enforced
Grid: 
(thread0001, fill.aml/36) &s dm     dem_en
Grid: 
(thread0001, fill.aml/37) &if not .FALSE. and 1 gt 0     and #_ ne #_ &then
Grid: 
(thread0001, fill.aml/42) &if .FALSE. or sink eq # &then
Grid: 
(thread0001, fill.aml/47) &workspace c:\nat_streamstats\ma\01070005
Grid: 
(thread0001, fill.aml/48) &s msgsave &ON
Grid: 
(thread0001, fill.aml/50) &if sink eq 'sink' &then
Grid: 
(thread0001, fill.aml/51)   fil = c:\nat_streamstats\ma\01070005\dem_enforced
Grid: 
(thread0001, fill.aml/52) &else
Grid: 
(thread0001, fill.aml/65) &s vrfsave OFF
Grid: 
(thread0001, fill.aml/66) verify off
Grid: 
(thread0001, fill.aml/70) &s window = 181670         882960         220460         932980
Grid: 
(thread0001, fill.aml/71) &s cell = 10
Grid: 
(thread0001, fill.aml/72) &describe fil
Grid: 
(thread0001, fill.aml/73) setwindow 181660 882960           220470 932980
Grid: 
(thread0001, fill.aml/75) setcell fil
Grid: 
(thread0001, fill.aml/76) z00dem_enff = focalflow(fil)
Grid: 
(thread0001, fill.aml/77) if (z00dem_enff eq 255) then
:: 
(thread0001, fill.aml/78)   z00dem_entmp = 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))
:: 
(thread0001, fill.aml/81) else
:: 
(thread0001, fill.aml/82)   z00dem_entmp = fil
:: 
(thread0001, fill.aml/83) endif
Grid: 
(thread0001, xx00003248.s01/1) Z00DEM_ENTMP = CON (\
Grid: 
(thread0001, xx00003248.s01/2)  z00dem_enff eq 255,\
Grid: 
(thread0001, xx00003248.s01/3)   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)),\
Grid: 
(thread0001, xx00003248.s01/4)   fil)
Grid: 
(thread0001, cache/1) 
ENDIF 

Grid: 
(thread0001, fill.aml/84) setwindow fil
Grid: 
(thread0001, fill.aml/85) fil = z00dem_entmp
Grid: 
(thread0001, fill.aml/86) Arc kill z00dem_enff all
Killed z00dem_enff with the ALL option
Grid: 
(thread0001, fill.aml/87) Arc kill z00dem_entmp all
Killed z00dem_entmp with the ALL option
Grid: 
(thread0001, fill.aml/88) setwindow 181670         882960         220460         932980
Grid: 
(thread0001, fill.aml/89) setcell 10
Grid: 
(thread0001, fill.aml/91) &type Filling...
Filling...
Grid: 
(thread0001, fill.aml/95) &s finished = .FALSE.
Grid: 
(thread0001, fill.aml/96) &s sinkcnt = 0
Grid: 
(thread0001, fill.aml/97) &s numsink = 0
Grid: 
(thread0001, fill.aml/98) &do &until
Grid: 
(thread0001, fill.aml/99)   &if .FALSE. &then
Grid: 
(thread0001, fill.aml/100)   z00dem_endir = flowdirection (fil, #, force)
Grid: 
(thread0001, fill.aml/101)   z00dem_ensnk = sink (z00dem_endir)
Grid: 
(thread0001, fill.aml/102)   &if not .TRUE. &then
Grid: 
(thread0001, fill.aml/104)   &describe z00dem_ensnk
Grid: 
(thread0001, fill.aml/105)   &if .TRUE. &then
Grid: 
(thread0001, fill.aml/105)  &do
Grid: 
(thread0001, fill.aml/106)     cursor sinkvat declare z00dem_ensnk.vat info ro
Feature cursor SINKVAT now declared using file
 Z00DEM_ENSNK.VAT with Read Only access
Grid: 
(thread0001, fill.aml/107)     cursor sinkvat open
Feature cursor SINKVAT now opened with
7125 reselected records out of 7125
Fetched record 1 for Feature cursor SINKVAT
Grid: 
(thread0001, fill.aml/108)     &s newsinkcnt = 1
Grid: 
(thread0001, fill.aml/109)     cursor sinkvat close
Grid: 
(thread0001, fill.aml/110)     cursor sinkvat remove
Feature cursor SINKVAT now removed
Grid: 
(thread0001, fill.aml/111)   &end
Grid: 
(thread0001, fill.aml/112)   &else
Grid: 
(thread0001, fill.aml/114)   &type Number of sink(s): 7125
Number of sink(s): 7125
Grid: 
(thread0001, fill.aml/115)   &if 7125 < 1 &then
Grid: 
(thread0001, fill.aml/117)   &else
Grid: 
(thread0001, fill.aml/117)  &do
Grid: 
(thread0001, fill.aml/118)     &if 0 = 7125 and 0 = 1 &then
Grid: 
(thread0001, fill.aml/120)   &end
Grid: 
(thread0001, fill.aml/121)   &if not .FALSE. &then
Grid: 
(thread0001, fill.aml/121)  &do
Grid: 
(thread0001, fill.aml/122)     &s sinkcnt = 1
Grid: 
(thread0001, fill.aml/123)     &s numsink = 7125
Grid: 
(thread0001, fill.aml/124)     &describe fil
Grid: 
(thread0001, fill.aml/125)     z00dem_ensub = watershed (z00dem_endir, z00dem_ensnk)
Grid: 
(thread0001, fill.aml/126)     &if not .TRUE. &then
Grid: 
(thread0001, fill.aml/128)     Arc kill z00dem_ensnk
Killed z00dem_ensnk with the ARC option
Grid: 
(thread0001, fill.aml/129)     z00dem_enzfl = zonalfill (z00dem_ensub, fil)
Grid: 
(thread0001, fill.aml/130)     z00dem_enzf1 = con (isnull (z00dem_enzfl), -50864, z00dem_enzfl)
Grid: 
(thread0001, fill.aml/131)     Arc kill z00dem_enzfl
Killed z00dem_enzfl with the ARC option
Grid: 
(thread0001, fill.aml/132)     &if .FALSE. OR '#' EQ # &then
Grid: 
(thread0001, fill.aml/132)  &do
Grid: 
(thread0001, fill.aml/133)       z00dem_enzf2 = con (fil < z00dem_enzf1, z00dem_enzf1, fil)
Grid: 
(thread0001, fill.aml/134)     &end
Grid: 
(thread0001, fill.aml/135)     &else
Grid: 
(thread0001, fill.aml/144)     Arc kill z00dem_ensub
Killed z00dem_ensub with the ARC option
Grid: 
(thread0001, fill.aml/145)     Arc kill z00dem_enzf1
Killed z00dem_enzf1 with the ARC option
Grid: 
(thread0001, fill.aml/146)     Arc kill fil
Killed fil with the ARC option
Grid: 
(thread0001, fill.aml/147)     rename z00dem_enzf2 fil
Grid: 
(thread0001, fill.aml/148)   &end
Grid: 
(thread0001, fill.aml/149) &end
Grid: 
(thread0001, fill.aml/99)   &if .TRUE. &then
Grid: 
(thread0001, fill.aml/99)  Arc kill z00dem_endir all
Killed z00dem_endir with the ALL option
Grid: 
(thread0001, fill.aml/100)   z00dem_endir = flowdirection (fil, #, force)
Grid: 
(thread0001, fill.aml/101)   z00dem_ensnk = sink (z00dem_endir)
Grid: 
(thread0001, fill.aml/102)   &if not .TRUE. &then
Grid: 
(thread0001, fill.aml/104)   &describe z00dem_ensnk
Grid: 
(thread0001, fill.aml/105)   &if .TRUE. &then
Grid: 
(thread0001, fill.aml/105)  &do
Grid: 
(thread0001, fill.aml/106)     cursor sinkvat declare z00dem_ensnk.vat info ro
Feature cursor SINKVAT now declared using file
 Z00DEM_ENSNK.VAT with Read Only access
Grid: 
(thread0001, fill.aml/107)     cursor sinkvat open
Feature cursor SINKVAT now opened with
7125 reselected records out of 765
Fetched record 1 for Feature cursor SINKVAT
Grid: 
(thread0001, fill.aml/108)     &s newsinkcnt = 359
Grid: 
(thread0001, fill.aml/109)     cursor sinkvat close
Grid: 
(thread0001, fill.aml/110)     cursor sinkvat remove
Feature cursor SINKVAT now removed
Grid: 
(thread0001, fill.aml/111)   &end
Grid: 
(thread0001, fill.aml/112)   &else
Grid: 
(thread0001, fill.aml/114)   &type Number of sink(s): 765
Number of sink(s): 765
Grid: 
(thread0001, fill.aml/115)   &if 765 < 1 &then
Grid: 
(thread0001, fill.aml/117)   &else
Grid: 
(thread0001, fill.aml/117)  &do
Grid: 
(thread0001, fill.aml/118)     &if 7125 = 765 and 1 = 359 &then
Grid: 
(thread0001, fill.aml/120)   &end
Grid: 
(thread0001, fill.aml/121)   &if not .FALSE. &then
Grid: 
(thread0001, fill.aml/121)  &do
Grid: 
(thread0001, fill.aml/122)     &s sinkcnt = 359
Grid: 
(thread0001, fill.aml/123)     &s numsink = 765
Grid: 
(thread0001, fill.aml/124)     &describe fil
Grid: 
(thread0001, fill.aml/125)     z00dem_ensub = watershed (z00dem_endir, z00dem_ensnk)
Grid: 
(thread0001, fill.aml/126)     &if not .TRUE. &then
Grid: 
(thread0001, fill.aml/128)     Arc kill z00dem_ensnk
Killed z00dem_ensnk with the ARC option
Grid: 
(thread0001, fill.aml/129)     z00dem_enzfl = zonalfill (z00dem_ensub, fil)
Grid: 
(thread0001, fill.aml/130)     z00dem_enzf1 = con (isnull (z00dem_enzfl), -49919, z00dem_enzfl)
Grid: 
(thread0001, fill.aml/131)     Arc kill z00dem_enzfl
Killed z00dem_enzfl with the ARC option
Grid: 
(thread0001, fill.aml/132)     &if .FALSE. OR '#' EQ # &then
Grid: 
(thread0001, fill.aml/132)  &do
Grid: 
(thread0001, fill.aml/133)       z00dem_enzf2 = con (fil < z00dem_enzf1, z00dem_enzf1, fil)
Grid: 
(thread0001, fill.aml/134)     &end
Grid: 
(thread0001, fill.aml/135)     &else
Grid: 
(thread0001, fill.aml/144)     Arc kill z00dem_ensub
Killed z00dem_ensub with the ARC option
Grid: 
(thread0001, fill.aml/145)     Arc kill z00dem_enzf1
Killed z00dem_enzf1 with the ARC option
Grid: 
(thread0001, fill.aml/146)     Arc kill fil
Killed fil with the ARC option
Grid: 
(thread0001, fill.aml/147)     rename z00dem_enzf2 fil
Grid: 
(thread0001, fill.aml/148)   &end
Grid: 
(thread0001, fill.aml/149) &end
Grid: 
(thread0001, fill.aml/99)   &if .TRUE. &then
Grid: 
(thread0001, fill.aml/99)  Arc kill z00dem_endir all
Killed z00dem_endir with the ALL option
Grid: 
(thread0001, fill.aml/100)   z00dem_endir = flowdirection (fil, #, force)
Grid: 
(thread0001, fill.aml/101)   z00dem_ensnk = sink (z00dem_endir)
Grid: 
(thread0001, fill.aml/102)   &if not .TRUE. &then
Grid: 
(thread0001, fill.aml/104)   &describe z00dem_ensnk
Grid: 
(thread0001, fill.aml/105)   &if .TRUE. &then
Grid: 
(thread0001, fill.aml/105)  &do
Grid: 
(thread0001, fill.aml/106)     cursor sinkvat declare z00dem_ensnk.vat info ro
Feature cursor SINKVAT now declared using file
 Z00DEM_ENSNK.VAT with Read Only access
Grid: 
(thread0001, fill.aml/107)     cursor sinkvat open
Feature cursor SINKVAT now opened with
7125 reselected records out of 46
Fetched record 1 for Feature cursor SINKVAT
Grid: 
(thread0001, fill.aml/108)     &s newsinkcnt = 5459
Grid: 
(thread0001, fill.aml/109)     cursor sinkvat close
Grid: 
(thread0001, fill.aml/110)     cursor sinkvat remove
Feature cursor SINKVAT now removed
Grid: 
(thread0001, fill.aml/111)   &end
Grid: 
(thread0001, fill.aml/112)   &else
Grid: 
(thread0001, fill.aml/114)   &type Number of sink(s): 46
Number of sink(s): 46
Grid: 
(thread0001, fill.aml/115)   &if 46 < 1 &then
Grid: 
(thread0001, fill.aml/117)   &else
Grid: 
(thread0001, fill.aml/117)  &do
Grid: 
(thread0001, fill.aml/118)     &if 765 = 46 and 359 = 5459 &then
Grid: 
(thread0001, fill.aml/120)   &end
Grid: 
(thread0001, fill.aml/121)   &if not .FALSE. &then
Grid: 
(thread0001, fill.aml/121)  &do
Grid: 
(thread0001, fill.aml/122)     &s sinkcnt = 5459
Grid: 
(thread0001, fill.aml/123)     &s numsink = 46
Grid: 
(thread0001, fill.aml/124)     &describe fil
Grid: 
(thread0001, fill.aml/125)     z00dem_ensub = watershed (z00dem_endir, z00dem_ensnk)
Grid: 
(thread0001, fill.aml/126)     &if not .TRUE. &then
Grid: 
(thread0001, fill.aml/128)     Arc kill z00dem_ensnk
Killed z00dem_ensnk with the ARC option
Grid: 
(thread0001, fill.aml/129)     z00dem_enzfl = zonalfill (z00dem_ensub, fil)
Grid: 
(thread0001, fill.aml/130)     z00dem_enzf1 = con (isnull (z00dem_enzfl), -49626, z00dem_enzfl)
Grid: 
(thread0001, fill.aml/131)     Arc kill z00dem_enzfl
Killed z00dem_enzfl with the ARC option
Grid: 
(thread0001, fill.aml/132)     &if .FALSE. OR '#' EQ # &then
Grid: 
(thread0001, fill.aml/132)  &do
Grid: 
(thread0001, fill.aml/133)       z00dem_enzf2 = con (fil < z00dem_enzf1, z00dem_enzf1, fil)
Grid: 
(thread0001, fill.aml/134)     &end
Grid: 
(thread0001, fill.aml/135)     &else
Grid: 
(thread0001, fill.aml/144)     Arc kill z00dem_ensub
Killed z00dem_ensub with the ARC option
Grid: 
(thread0001, fill.aml/145)     Arc kill z00dem_enzf1
Killed z00dem_enzf1 with the ARC option
Grid: 
(thread0001, fill.aml/146)     Arc kill fil
Killed fil with the ARC option
Grid: 
(thread0001, fill.aml/147)     rename z00dem_enzf2 fil
Grid: 
(thread0001, fill.aml/148)   &end
Grid: 
(thread0001, fill.aml/149) &end
Grid: 
(thread0001, fill.aml/99)   &if .TRUE. &then
Grid: 
(thread0001, fill.aml/99)  Arc kill z00dem_endir all
Killed z00dem_endir with the ALL option
Grid: 
(thread0001, fill.aml/100)   z00dem_endir = flowdirection (fil, #, force)
Grid: 
(thread0001, fill.aml/101)   z00dem_ensnk = sink (z00dem_endir)
Grid: 
(thread0001, fill.aml/102)   &if not .TRUE. &then
Grid: 
(thread0001, fill.aml/104)   &describe z00dem_ensnk
Grid: 
(thread0001, fill.aml/105)   &if .TRUE. &then
Grid: 
(thread0001, fill.aml/105)  &do
Grid: 
(thread0001, fill.aml/106)     cursor sinkvat declare z00dem_ensnk.vat info ro
Feature cursor SINKVAT now declared using file
 Z00DEM_ENSNK.VAT with Read Only access
Grid: 
(thread0001, fill.aml/107)     cursor sinkvat open
Feature cursor SINKVAT now opened with
7125 reselected records out of 1
Fetched record 1 for Feature cursor SINKVAT
Grid: 
(thread0001, fill.aml/108)     &s newsinkcnt = 216
Grid: 
(thread0001, fill.aml/109)     cursor sinkvat close
Grid: 
(thread0001, fill.aml/110)     cursor sinkvat remove
Feature cursor SINKVAT now removed
Grid: 
(thread0001, fill.aml/111)   &end
Grid: 
(thread0001, fill.aml/112)   &else
Grid: 
(thread0001, fill.aml/114)   &type Number of sink(s): 1
Number of sink(s): 1
Grid: 
(thread0001, fill.aml/115)   &if 1 < 1 &then
Grid: 
(thread0001, fill.aml/117)   &else
Grid: 
(thread0001, fill.aml/117)  &do
Grid: 
(thread0001, fill.aml/118)     &if 46 = 1 and 5459 = 216 &then
Grid: 
(thread0001, fill.aml/120)   &end
Grid: 
(thread0001, fill.aml/121)   &if not .FALSE. &then
Grid: 
(thread0001, fill.aml/121)  &do
Grid: 
(thread0001, fill.aml/122)     &s sinkcnt = 216
Grid: 
(thread0001, fill.aml/123)     &s numsink = 1
Grid: 
(thread0001, fill.aml/124)     &describe fil
Grid: 
(thread0001, fill.aml/125)     z00dem_ensub = watershed (z00dem_endir, z00dem_ensnk)
Grid: 
(thread0001, fill.aml/126)     &if not .TRUE. &then
Grid: 
(thread0001, fill.aml/128)     Arc kill z00dem_ensnk
Killed z00dem_ensnk with the ARC option
Grid: 
(thread0001, fill.aml/129)     z00dem_enzfl = zonalfill (z00dem_ensub, fil)
Grid: 
(thread0001, fill.aml/130)     z00dem_enzf1 = con (isnull (z00dem_enzfl), -49307, z00dem_enzfl)
Grid: 
(thread0001, fill.aml/131)     Arc kill z00dem_enzfl
Killed z00dem_enzfl with the ARC option
Grid: 
(thread0001, fill.aml/132)     &if .FALSE. OR '#' EQ # &then
Grid: 
(thread0001, fill.aml/132)  &do
Grid: 
(thread0001, fill.aml/133)       z00dem_enzf2 = con (fil < z00dem_enzf1, z00dem_enzf1, fil)
Grid: 
(thread0001, fill.aml/134)     &end
Grid: 
(thread0001, fill.aml/135)     &else
Grid: 
(thread0001, fill.aml/144)     Arc kill z00dem_ensub
Killed z00dem_ensub with the ARC option
Grid: 
(thread0001, fill.aml/145)     Arc kill z00dem_enzf1
Killed z00dem_enzf1 with the ARC option
Grid: 
(thread0001, fill.aml/146)     Arc kill fil
Killed fil with the ARC option
Grid: 
(thread0001, fill.aml/147)     rename z00dem_enzf2 fil
Grid: 
(thread0001, fill.aml/148)   &end
Grid: 
(thread0001, fill.aml/149) &end
Grid: 
(thread0001, fill.aml/99)   &if .TRUE. &then
Grid: 
(thread0001, fill.aml/99)  Arc kill z00dem_endir all
Killed z00dem_endir with the ALL option
Grid: 
(thread0001, fill.aml/100)   z00dem_endir = flowdirection (fil, #, force)
Grid: 
(thread0001, fill.aml/101)   z00dem_ensnk = sink (z00dem_endir)
All cells in grid c:\nat_streamstats\ma\01070005\z00dem_ensnk have NODATA value
VAT will not be built
Grid: 
(thread0001, fill.aml/102)   &if not .FALSE. &then
Grid: 
(thread0001, fill.aml/103)     buildvat z00dem_ensnk
All cells in grid c:\nat_streamstats\ma\01070005\z00dem_ensnk have NODATA value
VAT will not be built
Grid: 
(thread0001, fill.aml/104)   &describe z00dem_ensnk
Grid: 
(thread0001, fill.aml/105)   &if .FALSE. &then
Grid: 
(thread0001, fill.aml/112)   &else
Grid: 
(thread0001, fill.aml/113)     &s newsinkcnt = 0
Grid: 
(thread0001, fill.aml/114)   &type Number of sink(s): -1
Number of sink(s): -1
Grid: 
(thread0001, fill.aml/115)   &if -1 < 1 &then
Grid: 
(thread0001, fill.aml/116)     &s finished = .TRUE.
Grid: 
(thread0001, fill.aml/117)   &else
Grid: 
(thread0001, fill.aml/121)   &if not .TRUE. &then
Grid: 
(thread0001, fill.aml/149) &end
Grid: 
(thread0001, fill.aml/154) &if sink eq peak &then
Grid: 
(thread0001, fill.aml/160) &if .TRUE. &then
Grid: 
(thread0001, fill.aml/160)  Arc kill z00dem_endir all
Killed z00dem_endir with the ALL option
Grid: 
(thread0001, fill.aml/161) &if not .FALSE. and fdr_ ne #_ &then
Grid: 
(thread0001, fill.aml/162) &do
Grid: 
(thread0001, fill.aml/163)   fdr = flowdirection (fil)
Grid: 
(thread0001, fill.aml/164) &end
Grid: 
(thread0001, fill.aml/166) Arc kill z00dem_ensnk
Killed z00dem_ensnk with the ARC option
Grid: 
(thread0001, fill.aml/167) verify OFF
Grid: 
(thread0001, fill.aml/168) &workspace c:\nat_streamstats\ma\01070005
Grid: 
(thread0001, fill.aml/169) &message &ON
Grid: 
(thread0001, fill.aml/170) &return
Grid: 
(thread0001, hydrodem_work_mod.aml/289) Text ' ran OK'
Grid: 
(thread0001, hydrodem_work_mod.aml/290) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/291) marker .05 .95
Grid: 
(thread0001, hydrodem_work_mod.aml/292) setmask ridge_nl
Grid: 
(thread0001, hydrodem_work_mod.aml/293) fdrmsk = fdr
Grid: 
(thread0001, hydrodem_work_mod.aml/294) arc kill fdr all
Killed fdr with the ALL option
Grid: 
(thread0001, hydrodem_work_mod.aml/295) rename fdrmsk fdr
Grid: 
(thread0001, hydrodem_work_mod.aml/299) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/300) marker .05 .8
Grid: 
(thread0001, hydrodem_work_mod.aml/301) move .15 .75
Grid: 
(thread0001, hydrodem_work_mod.aml/302) text 'Start FAC and FDR '
Grid: 
(thread0001, hydrodem_work_mod.aml/303) fac = int( flowaccumulation ( fdr ))
Value range for c:\nat_streamstats\ma\01070005\fac exceeds 100000
and number of unique values exceeds 500.
Please use BUILDVAT if a VAT is required.
Grid: 
(thread0001, hydrodem_work_mod.aml/305) &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/307) arc frequency fdr.vat xxxfdrvalues
 
Enter Frequency item names (type END or a blank line when done):
================================================================
Enter the 1st item: (thread0001, frequency.aml/6) &severity &error &ignore
Enter the 1st item: (thread0001, frequency.aml/7) &s program frequency
Enter the 1st item: (thread0001, frequency.aml/11) &if frequency = arc &then
Enter the 1st item: (thread0001, frequency.aml/23) &if frequency = arc &then
Enter the 1st item: (thread0001, frequency.aml/28) &if Windows_NT = 'Windows_NT' &then
Enter the 1st item: (thread0001, frequency.aml/29)   &s hidden C:\DOCUME~1\psteeves\.frequency
Enter the 1st item: (thread0001, frequency.aml/30) &else
Enter the 1st item: (thread0001, frequency.aml/32) &if .FALSE. &then
Enter the 1st item: (thread0001, frequency.aml/35) &s startup frequency.aml
Enter the 1st item: (thread0001, frequency.aml/36) &if .FALSE. &then
Enter the 1st item: (thread0001, hydrodem_work_mod.aml/308) value
Enter the 2nd item: (thread0001, hydrodem_work_mod.aml/309) end
 
 
Enter Summary item names (type END or a blank line when done):
==============================================================
Enter the 1st item: (thread0001, hydrodem_work_mod.aml/310) end
 
Grid: 
(thread0001, hydrodem_work_mod.aml/312) asel xxxfdrvalues info
XXXFDRVALUES records : 8 of 8 selected.                                         
Grid: 
(thread0001, hydrodem_work_mod.aml/313) &if 8 > 8 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/322) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/323) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/324) marker .05 .8
Grid: 
(thread0001, hydrodem_work_mod.aml/327) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/328) marker .05 .65
Grid: 
(thread0001, hydrodem_work_mod.aml/329) move .15 .6
Grid: 
(thread0001, hydrodem_work_mod.aml/330) text 'Create Sinks '
Grid: 
(thread0001, hydrodem_work_mod.aml/332) sinks = con ( fil gt C:\nat_streamstats\ma\source_data_dir\conc\topogr_gr, 1)
Grid: 
(thread0001, hydrodem_work_mod.aml/333) sinks_poly = gridpoly( sinks)
Converting GRID SINKS to Coverage SINKS_POLY
 Creating labels...
 Creating SINKS_POLY.PAT...
Grid: 
(thread0001, hydrodem_work_mod.aml/334) arc kill sinks all
Killed sinks with the ALL option
Grid: 
(thread0001, hydrodem_work_mod.aml/335) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/336) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/337) marker .05 .65
Grid: 
(thread0001, hydrodem_work_mod.aml/340) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/341) marker .05 .5
Grid: 
(thread0001, hydrodem_work_mod.aml/342) Move .15 .45
Grid: 
(thread0001, hydrodem_work_mod.aml/343) Text 'Start Synthetic Stream Creation '
Grid: 
(thread0001, hydrodem_work_mod.aml/344) str = con ( fac ge 150000, 1)
Grid: 
(thread0001, hydrodem_work_mod.aml/345) lnk = streamlink ( str, fdr )
Grid: 
(thread0001, hydrodem_work_mod.aml/346) str900 = con ( fac ge 900, 1)
Grid: 
(thread0001, hydrodem_work_mod.aml/347) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/348) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/349) marker .05 .5
Grid: 
(thread0001, hydrodem_work_mod.aml/352) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/353) marker .05 .35
Grid: 
(thread0001, hydrodem_work_mod.aml/354) move .15 .30
Grid: 
(thread0001, hydrodem_work_mod.aml/355) text 'Start WaterShed creation '
Grid: 
(thread0001, hydrodem_work_mod.aml/357) cat =  watershed (fdr, lnk )
Grid: 
(thread0001, hydrodem_work_mod.aml/358) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/359) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/360) marker .05 .35
Grid: 
(thread0001, hydrodem_work_mod.aml/363) marker .05 .18
Grid: 
(thread0001, hydrodem_work_mod.aml/364) textsi .18
Grid: 
(thread0001, hydrodem_work_mod.aml/365) move .1 .1
Grid: 
(thread0001, hydrodem_work_mod.aml/366) text 'HydroDEM.aml finished and Ran OK'
Grid: 
(thread0001, hydrodem_work_mod.aml/368) &wo C:\nat_streamstats\amls_dir\
Grid: 
(thread0001, hydrodem_work_mod.aml/370) &return
Grid: 
(thread0001, tty/0) QUIT

