Command:  
Grid: 
(thread0001, cache/1) &r C:\nat_streamstats\amls_dir\hydrodem_work_mod C:\nat_streamstats\ma\01080206, C:\nat_streamstats\ma\source_data_dir\west\huc8, C:\nat_streamstats\ma\source_data_dir\west\topogr_gr, C:\nat_streamstats\ma\source_data_dir\west\dendrite, C:\nat_streamstats\ma\source_data_dir\west\nhd_wbg, C:\nat_streamstats\ma\source_data_dir\west\wb_srcg, C:\nat_streamstats\ma\source_data_dir\west\topogr_gr, C:\nat_streamstats\ma\source_data_dir\west\inwall, #, C:\nat_streamstats\amls_dir\, 150000, 900, 50, 15, 50000, 100000, 60, -500, -50000, 2000, 0, 10, 1,1,0
Grid: 
(thread0001, hydrodem_work_mod.aml/21) &echo &on
Grid: 
(thread0001, hydrodem_work_mod.aml/22) &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/24) &severity &error &routine Bailout
Grid: 
(thread0001, hydrodem_work_mod.aml/25) &type 07-01-19.00:15:49.Fri
07-01-19.00:15:49.Fri
Grid: 
(thread0001, hydrodem_work_mod.aml/26) clear
Grid: 
(thread0001, hydrodem_work_mod.aml/27) &s x = .1
Grid: 
(thread0001, hydrodem_work_mod.aml/28) &s y = 2.15
Grid: 
(thread0001, hydrodem_work_mod.aml/29) textfont 94023
Grid: 
(thread0001, hydrodem_work_mod.aml/30) textquality proportional
Grid: 
(thread0001, hydrodem_work_mod.aml/31) units page
Grid: 
(thread0001, hydrodem_work_mod.aml/32) move .1 2.15
Grid: 
(thread0001, hydrodem_work_mod.aml/33) textsi .18
Grid: 
(thread0001, hydrodem_work_mod.aml/34) text 'HydroDEM.aml is running '
Grid: 
(thread0001, hydrodem_work_mod.aml/35) textsi .13
Grid: 
(thread0001, hydrodem_work_mod.aml/36) &if 'C:\nat_streamstats\ma\01080206' = '#' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/41) &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/43) &wo C:\nat_streamstats\ma\01080206
Grid: 
(thread0001, hydrodem_work_mod.aml/45) &call check_args
Grid: 
(thread0001, hydrodem_work_mod.aml/419) &s x = .1
Grid: 
(thread0001, hydrodem_work_mod.aml/420) &s y = 2.0
Grid: 
(thread0001, hydrodem_work_mod.aml/421) textfont 94023
Grid: 
(thread0001, hydrodem_work_mod.aml/422) textquality proportional
Grid: 
(thread0001, hydrodem_work_mod.aml/423) textsi .13
Grid: 
(thread0001, hydrodem_work_mod.aml/424) units page
Grid: 
(thread0001, hydrodem_work_mod.aml/425) move .1 2.0
Grid: 
(thread0001, hydrodem_work_mod.aml/432) &if 'C:\nat_streamstats\ma\source_data_dir\west\huc8' = 'huc8' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/440) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/440)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/441)   &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/445)   &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/451) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/454) &if 'C:\nat_streamstats\ma\source_data_dir\west\topogr_gr' = 'dem' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/462) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/462)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/463)   &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/467)   &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/473) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/476) &if 'C:\nat_streamstats\ma\source_data_dir\west\dendrite' = 'nhdrch' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/484) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/484)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/485)   &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/489)   &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/495) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/498) &if 1 = 0 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/501) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/501)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/502)   &if 'C:\nat_streamstats\ma\source_data_dir\west\nhd_wbg' = '#' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/510)   &else
Grid: 
(thread0001, hydrodem_work_mod.aml/510)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/511)     &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/515)     &else
Grid: 
(thread0001, hydrodem_work_mod.aml/516)       &s bowl_bypass = N
Grid: 
(thread0001, hydrodem_work_mod.aml/517)     &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/523)   &end
Grid: 
(thread0001, hydrodem_work_mod.aml/524) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/527) &if 1 = 0 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/530) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/530)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/531)   &if 'C:\nat_streamstats\ma\source_data_dir\west\wb_srcg' = '#' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/539)   &else
Grid: 
(thread0001, hydrodem_work_mod.aml/539)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/540)     &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/544)     &else
Grid: 
(thread0001, hydrodem_work_mod.aml/545)       &s bowl_bypass = N
Grid: 
(thread0001, hydrodem_work_mod.aml/546)     &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/552)   &end
Grid: 
(thread0001, hydrodem_work_mod.aml/553) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/556) &if 'C:\nat_streamstats\ma\source_data_dir\west\topogr_gr' = 'snap_grid' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/564) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/564)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/565)   &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/569)   &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/575) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/578) &if 1 = 0 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/581) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/581)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/582)   &if 'C:\nat_streamstats\ma\source_data_dir\west\inwall' = '#' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/590)   &else
Grid: 
(thread0001, hydrodem_work_mod.aml/590)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/591)     &if ^ .TRUE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/595)     &else
Grid: 
(thread0001, hydrodem_work_mod.aml/596)       &s iw_bypass = N
Grid: 
(thread0001, hydrodem_work_mod.aml/597)     &if 0 = 1 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/603)   &end
Grid: 
(thread0001, hydrodem_work_mod.aml/604) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/607) &if 0 = 0 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/607)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/608)   &s dp_bypass = Y
Grid: 
(thread0001, hydrodem_work_mod.aml/609) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/610) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/637) &des C:\nat_streamstats\ma\source_data_dir\west\topogr_gr
Grid: 
(thread0001, hydrodem_work_mod.aml/638) &s prjnm = STATEPLANE
Grid: 
(thread0001, hydrodem_work_mod.aml/639) &s dat = NAD83
Grid: 
(thread0001, hydrodem_work_mod.aml/640) &s xy_units = METERS
Grid: 
(thread0001, hydrodem_work_mod.aml/642) &do layer &list C:\nat_streamstats\ma\source_data_dir\west\huc8 C:\nat_streamstats\ma\source_data_dir\west\dendrite C:\nat_streamstats\ma\source_data_dir\west\nhd_wbg C:\nat_streamstats\ma\source_data_dir\west\wb_srcg C:\nat_streamstats\ma\source_data_dir\west\topogr_gr C:\nat_streamstats\ma\source_data_dir\west\inwall
Grid: 
(thread0001, hydrodem_work_mod.aml/643)   &des C:\nat_streamstats\ma\source_data_dir\west\huc8
Grid: 
(thread0001, hydrodem_work_mod.aml/644)   &if STATEPLANE_ <> STATEPLANE_ &then
Grid: 
(thread0001, hydrodem_work_mod.aml/649)   &if NAD83 <> NAD83 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/654)   &if METERS <> METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/659) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/643)   &des C:\nat_streamstats\ma\source_data_dir\west\dendrite
Grid: 
(thread0001, hydrodem_work_mod.aml/644)   &if STATEPLANE_ <> STATEPLANE_ &then
Grid: 
(thread0001, hydrodem_work_mod.aml/649)   &if NAD83 <> NAD83 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/654)   &if METERS <> METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/659) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/643)   &des C:\nat_streamstats\ma\source_data_dir\west\nhd_wbg
Grid: 
(thread0001, hydrodem_work_mod.aml/644)   &if STATEPLANE_ <> STATEPLANE_ &then
Grid: 
(thread0001, hydrodem_work_mod.aml/649)   &if NAD83 <> NAD83 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/654)   &if METERS <> METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/659) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/643)   &des C:\nat_streamstats\ma\source_data_dir\west\wb_srcg
Grid: 
(thread0001, hydrodem_work_mod.aml/644)   &if STATEPLANE_ <> STATEPLANE_ &then
Grid: 
(thread0001, hydrodem_work_mod.aml/649)   &if NAD83 <> NAD83 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/654)   &if METERS <> METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/659) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/643)   &des C:\nat_streamstats\ma\source_data_dir\west\topogr_gr
Grid: 
(thread0001, hydrodem_work_mod.aml/644)   &if STATEPLANE_ <> STATEPLANE_ &then
Grid: 
(thread0001, hydrodem_work_mod.aml/649)   &if NAD83 <> NAD83 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/654)   &if METERS <> METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/659) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/643)   &des C:\nat_streamstats\ma\source_data_dir\west\inwall
Grid: 
(thread0001, hydrodem_work_mod.aml/644)   &if STATEPLANE_ <> STATEPLANE_ &then
Grid: 
(thread0001, hydrodem_work_mod.aml/649)   &if NAD83 <> NAD83 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/654)   &if METERS <> METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/659) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/662) &des C:\nat_streamstats\ma\source_data_dir\west\huc8
Grid: 
(thread0001, hydrodem_work_mod.aml/663) &if 2 > 2 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/667) &return
Grid: 
(thread0001, hydrodem_work_mod.aml/75) &setvar filldem = fil
Grid: 
(thread0001, hydrodem_work_mod.aml/76) &setvar fdirg = fdr
Grid: 
(thread0001, hydrodem_work_mod.aml/77) &setvar faccg = fac
Grid: 
(thread0001, hydrodem_work_mod.aml/79) &setvar fsinkg = sinks
Grid: 
(thread0001, hydrodem_work_mod.aml/80) &setvar fsinkc = sinks_poly
Grid: 
(thread0001, hydrodem_work_mod.aml/94) &describe C:\nat_streamstats\ma\source_data_dir\west\topogr_gr
Grid: 
(thread0001, hydrodem_work_mod.aml/96) &if METERS = METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/96)  &DO
Grid: 
(thread0001, hydrodem_work_mod.aml/97)   &if 10 = 10 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/97)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/98)     &sv cellsz = 10
Grid: 
(thread0001, hydrodem_work_mod.aml/106)   &end
Grid: 
(thread0001, hydrodem_work_mod.aml/107)   &else
Grid: 
(thread0001, hydrodem_work_mod.aml/111) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/113) &if METERS = FEET &then
Grid: 
(thread0001, hydrodem_work_mod.aml/130) &if METERS ne FEET and METERS ne METERS &then
Grid: 
(thread0001, hydrodem_work_mod.aml/135) &sv zunits = '100'
Grid: 
(thread0001, hydrodem_work_mod.aml/136) &if '100' ne '100' and '100' ne '30.48' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/145) &call cleanup1
Grid: 
(thread0001, hydrodem_work_mod.aml/370) &do covs &list sinks_poly hucbuff inwallbuf
Grid: 
(thread0001, hydrodem_work_mod.aml/371)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/373) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/371)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/373) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/371)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/373) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/375) &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
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/379)   &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/381) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/382) &return
Grid: 
(thread0001, hydrodem_work_mod.aml/147) markerset water2
Grid: 
(thread0001, hydrodem_work_mod.aml/148) markersy 24
Grid: 
(thread0001, hydrodem_work_mod.aml/149) markercolor 2
Grid: 
(thread0001, hydrodem_work_mod.aml/150) marker .05 1.85
Grid: 
(thread0001, hydrodem_work_mod.aml/151) marker .05 1.7
Grid: 
(thread0001, hydrodem_work_mod.aml/152) marker .05 1.55
Grid: 
(thread0001, hydrodem_work_mod.aml/153) marker .05 1.4
Grid: 
(thread0001, hydrodem_work_mod.aml/154) marker .05 1.25
Grid: 
(thread0001, hydrodem_work_mod.aml/155) marker .05 1.1
Grid: 
(thread0001, hydrodem_work_mod.aml/156) marker .05 .95
Grid: 
(thread0001, hydrodem_work_mod.aml/157) marker .05 .8
Grid: 
(thread0001, hydrodem_work_mod.aml/158) marker .05 .65
Grid: 
(thread0001, hydrodem_work_mod.aml/159) marker .05 .5
Grid: 
(thread0001, hydrodem_work_mod.aml/160) marker .05 .35
Grid: 
(thread0001, hydrodem_work_mod.aml/163) textsi .13
Grid: 
(thread0001, hydrodem_work_mod.aml/164) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/165) marker .05 1.85
Grid: 
(thread0001, hydrodem_work_mod.aml/166) move .15 1.8
Grid: 
(thread0001, hydrodem_work_mod.aml/167) text 'Buffering HUC '
Grid: 
(thread0001, hydrodem_work_mod.aml/168) Text 50
Grid: 
(thread0001, hydrodem_work_mod.aml/169) Text ' '
Grid: 
(thread0001, hydrodem_work_mod.aml/170) Text meters
Grid: 
(thread0001, hydrodem_work_mod.aml/171) arc buffer C:\nat_streamstats\ma\source_data_dir\west\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/172) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/173) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/174) marker .05 1.85
Grid: 
(thread0001, hydrodem_work_mod.aml/177) verify off
Grid: 
(thread0001, hydrodem_work_mod.aml/178) setcell 10
Grid: 
(thread0001, hydrodem_work_mod.aml/179) setwindow hucbuff C:\nat_streamstats\ma\source_data_dir\west\topogr_gr
Grid: 
(thread0001, hydrodem_work_mod.aml/180) buffg = polygrid (hucbuff)
 Converting polygons from HUCBUFF to grid BUFFG
Number of Rows    = 6763
Number of Columns = 4713
Grid: 
(thread0001, hydrodem_work_mod.aml/181) setmask buffg
Grid: 
(thread0001, hydrodem_work_mod.aml/184) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/185) marker .05 1.7
Grid: 
(thread0001, hydrodem_work_mod.aml/186) move .15 1.65
Grid: 
(thread0001, hydrodem_work_mod.aml/187) text 'Starting AGREE.aml '
Grid: 
(thread0001, hydrodem_work_mod.aml/188) &r C:\nat_streamstats\amls_dir\agree.aml C:\nat_streamstats\ma\source_data_dir\west\topogr_gr C:\nat_streamstats\ma\source_data_dir\west\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\west\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\west\topogr_gr
Grid: 
(thread0001, agree.aml/131) setcell C:\nat_streamstats\ma\source_data_dir\west\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\west\dendrite )
 Converting arcs from C:\NAT_STREAMSTATS\MA\SOURCE_DATA_DIR\WEST\DENDRITE to grid VECTGRID
Number of Rows    = 7180
Number of Columns = 5103
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\west\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\west\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/189) units page
Grid: 
(thread0001, hydrodem_work_mod.aml/190) Text ' ran OK'
Grid: 
(thread0001, hydrodem_work_mod.aml/191) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/192) marker .05 1.7
Grid: 
(thread0001, hydrodem_work_mod.aml/194) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/195) marker .05 1.55
Grid: 
(thread0001, hydrodem_work_mod.aml/196) move .15 1.5
Grid: 
(thread0001, hydrodem_work_mod.aml/197) text 'Start LINEGRID creation using NHD '
Grid: 
(thread0001, hydrodem_work_mod.aml/198) nhdgrd = linegrid(C:\nat_streamstats\ma\source_data_dir\west\dendrite, #, #, #, 10)
 Converting arcs from C:\NAT_STREAMSTATS\MA\SOURCE_DATA_DIR\WEST\DENDRITE to grid NHDGRD
Number of Rows    = 7180
Number of Columns = 5103
Grid: 
(thread0001, hydrodem_work_mod.aml/199) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/200) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/201) marker .05 1.55
Grid: 
(thread0001, hydrodem_work_mod.aml/204) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/205) marker .05 1.4
Grid: 
(thread0001, hydrodem_work_mod.aml/206) move .15 1.35
Grid: 
(thread0001, hydrodem_work_mod.aml/207) Text 'Start Ridging '
Grid: 
(thread0001, hydrodem_work_mod.aml/209) ridge_nl = polygrid(C:\nat_streamstats\ma\source_data_dir\west\huc8, #, #, #, 10)
 Converting polygons from C:\NAT_STREAMSTATS\MA\SOURCE_DATA_DIR\WEST\HUC8 to grid RIDGE_NL
Number of Rows    = 7180
Number of Columns = 5103
Grid: 
(thread0001, hydrodem_work_mod.aml/210) ridge_exp = expand(ridge_nl, 2, list, 2)
Grid: 
(thread0001, hydrodem_work_mod.aml/213) ridge_w = setnull((not isnull(ridge_nl) and not isnull(ridge_exp)), ridge_exp)
Grid: 
(thread0001, hydrodem_work_mod.aml/214) dem_ridge8 = elevgrid + con(( not isnull(ridge_w) and isnull(nhdgrd)), 100000, 0)
Grid: 
(thread0001, hydrodem_work_mod.aml/216) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/217) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/218) marker .05 1.4
Grid: 
(thread0001, hydrodem_work_mod.aml/224) &if N = N &then
Grid: 
(thread0001, hydrodem_work_mod.aml/224)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/225)   markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/226)   marker .05 1.25
Grid: 
(thread0001, hydrodem_work_mod.aml/227)   move .15 1.2
Grid: 
(thread0001, hydrodem_work_mod.aml/228)   Text 'Start Bowling '
Grid: 
(thread0001, hydrodem_work_mod.aml/229)   eucd = setnull(isnull(C:\nat_streamstats\ma\source_data_dir\west\nhd_wbg), eucdistance(C:\nat_streamstats\ma\source_data_dir\west\wb_srcg))
Start Euclidean Distance Mapping...  Please Wait...
Grid: 
(thread0001, hydrodem_work_mod.aml/230)   dem_ridge8wb = dem_ridge8 - con( not isnull(eucd), (2000 / (eucd + 1)), 0)
Grid: 
(thread0001, hydrodem_work_mod.aml/232)   text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/233)   markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/234)   marker .05 1.25
Grid: 
(thread0001, hydrodem_work_mod.aml/235) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/236) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/245) &if N = N &then
Grid: 
(thread0001, hydrodem_work_mod.aml/245)  &do
Grid: 
(thread0001, hydrodem_work_mod.aml/246)   markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/247)   marker .05 1.1
Grid: 
(thread0001, hydrodem_work_mod.aml/248)   move .15 1.05
Grid: 
(thread0001, hydrodem_work_mod.aml/249)   text 'Start Walling '
Grid: 
(thread0001, hydrodem_work_mod.aml/250)   arc buffer C:\nat_streamstats\ma\source_data_dir\west\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/251)   inwallg_tmp = polygrid(inwallbuf,inside,#,#,10)
 Converting polygons from INWALLBUF to grid INWALLG_TMP
Number of Rows    = 7180
Number of Columns = 5103
Grid: 
(thread0001, hydrodem_work_mod.aml/252)   inwallg = con(inwallg_tmp == 100,0)
Grid: 
(thread0001, hydrodem_work_mod.aml/253)   dem_enforced = dem_ridge8wb + con(( not isnull(inwallg) and isnull(nhdgrd)), 50000, 0)
Grid: 
(thread0001, hydrodem_work_mod.aml/255)   text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/256)   markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/257)   marker .05 1.1
Grid: 
(thread0001, hydrodem_work_mod.aml/258) &end
Grid: 
(thread0001, hydrodem_work_mod.aml/259) &else
Grid: 
(thread0001, hydrodem_work_mod.aml/270) &if Y = 'N' &then
Grid: 
(thread0001, hydrodem_work_mod.aml/279) setwindow hucbuff C:\nat_streamstats\ma\source_data_dir\west\topogr_gr
Grid: 
(thread0001, hydrodem_work_mod.aml/280) setcell C:\nat_streamstats\ma\source_data_dir\west\topogr_gr
Grid: 
(thread0001, hydrodem_work_mod.aml/281) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/282) marker .05 .95
Grid: 
(thread0001, hydrodem_work_mod.aml/283) move .15 .9
Grid: 
(thread0001, hydrodem_work_mod.aml/284) text 'Start Fill '
Grid: 
(thread0001, hydrodem_work_mod.aml/285) &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\01080206
Grid: 
(thread0001, fill.aml/33) &s todir  c:\nat_streamstats\ma\01080206
Grid: 
(thread0001, fill.aml/34) &s filled fil
Grid: 
(thread0001, fill.aml/35) &s dem    c:\nat_streamstats\ma\01080206\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\01080206
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\01080206\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 = 63110          862270         110240         929900
Grid: 
(thread0001, fill.aml/71) &s cell = 10
Grid: 
(thread0001, fill.aml/72) &describe fil
Grid: 
(thread0001, fill.aml/73) setwindow 63100 862270           110250 929900
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, xx00003704.s01/1) Z00DEM_ENTMP = CON (\
Grid: 
(thread0001, xx00003704.s01/2)  z00dem_enff eq 255,\
Grid: 
(thread0001, xx00003704.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, xx00003704.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 63110          862270         110240         929900
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
7017 reselected records out of 7017
Fetched record 1 for Feature cursor SINKVAT
Grid: 
(thread0001, fill.aml/108)     &s newsinkcnt = 3
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): 7017
Number of sink(s): 7017
Grid: 
(thread0001, fill.aml/115)   &if 7017 < 1 &then
Grid: 
(thread0001, fill.aml/117)   &else
Grid: 
(thread0001, fill.aml/117)  &do
Grid: 
(thread0001, fill.aml/118)     &if 0 = 7017 and 0 = 3 &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 = 3
Grid: 
(thread0001, fill.aml/123)     &s numsink = 7017
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), -51480, 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
7017 reselected records out of 811
Fetched record 1 for Feature cursor SINKVAT
Grid: 
(thread0001, fill.aml/108)     &s newsinkcnt = 112
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): 811
Number of sink(s): 811
Grid: 
(thread0001, fill.aml/115)   &if 811 < 1 &then
Grid: 
(thread0001, fill.aml/117)   &else
Grid: 
(thread0001, fill.aml/117)  &do
Grid: 
(thread0001, fill.aml/118)     &if 7017 = 811 and 3 = 112 &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 = 112
Grid: 
(thread0001, fill.aml/123)     &s numsink = 811
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), -49482, 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
7017 reselected records out of 50
Fetched record 1 for Feature cursor SINKVAT
Grid: 
(thread0001, fill.aml/108)     &s newsinkcnt = 413
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): 50
Number of sink(s): 50
Grid: 
(thread0001, fill.aml/115)   &if 50 < 1 &then
Grid: 
(thread0001, fill.aml/117)   &else
Grid: 
(thread0001, fill.aml/117)  &do
Grid: 
(thread0001, fill.aml/118)     &if 811 = 50 and 112 = 413 &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 = 413
Grid: 
(thread0001, fill.aml/123)     &s numsink = 50
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), -49482, 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
7017 reselected records out of 3
Fetched record 1 for Feature cursor SINKVAT
Grid: 
(thread0001, fill.aml/108)     &s newsinkcnt = 1975
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): 3
Number of sink(s): 3
Grid: 
(thread0001, fill.aml/115)   &if 3 < 1 &then
Grid: 
(thread0001, fill.aml/117)   &else
Grid: 
(thread0001, fill.aml/117)  &do
Grid: 
(thread0001, fill.aml/118)     &if 50 = 3 and 413 = 1975 &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 = 1975
Grid: 
(thread0001, fill.aml/123)     &s numsink = 3
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), -49482, 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\01080206\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\01080206\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\01080206
Grid: 
(thread0001, fill.aml/169) &message &ON
Grid: 
(thread0001, fill.aml/170) &return
Grid: 
(thread0001, hydrodem_work_mod.aml/286) Text ' ran OK'
Grid: 
(thread0001, hydrodem_work_mod.aml/287) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/288) marker .05 .95
Grid: 
(thread0001, hydrodem_work_mod.aml/289) setmask ridge_nl
Grid: 
(thread0001, hydrodem_work_mod.aml/290) fdrmsk = fdr
Grid: 
(thread0001, hydrodem_work_mod.aml/291) arc kill fdr all
Killed fdr with the ALL option
Grid: 
(thread0001, hydrodem_work_mod.aml/292) rename fdrmsk fdr
Grid: 
(thread0001, hydrodem_work_mod.aml/296) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/297) marker .05 .8
Grid: 
(thread0001, hydrodem_work_mod.aml/298) move .15 .75
Grid: 
(thread0001, hydrodem_work_mod.aml/299) text 'Start FAC and FDR '
Grid: 
(thread0001, hydrodem_work_mod.aml/300) fac = int( flowaccumulation ( fdr ))
Value range for c:\nat_streamstats\ma\01080206\fac exceeds 100000
and number of unique values exceeds 500.
Please use BUILDVAT if a VAT is required.
Grid: 
(thread0001, hydrodem_work_mod.aml/302) &if .FALSE. &then
Grid: 
(thread0001, hydrodem_work_mod.aml/304) 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/305) value
Enter the 2nd item: (thread0001, hydrodem_work_mod.aml/306) end
 
 
Enter Summary item names (type END or a blank line when done):
==============================================================
Enter the 1st item: (thread0001, hydrodem_work_mod.aml/307) end
 
Grid: 
(thread0001, hydrodem_work_mod.aml/309) asel xxxfdrvalues info
XXXFDRVALUES records : 8 of 8 selected.                                         
Grid: 
(thread0001, hydrodem_work_mod.aml/310) &if 8 > 8 &then
Grid: 
(thread0001, hydrodem_work_mod.aml/319) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/320) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/321) marker .05 .8
Grid: 
(thread0001, hydrodem_work_mod.aml/324) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/325) marker .05 .65
Grid: 
(thread0001, hydrodem_work_mod.aml/326) move .15 .6
Grid: 
(thread0001, hydrodem_work_mod.aml/327) text 'Create Sinks '
Grid: 
(thread0001, hydrodem_work_mod.aml/329) sinks = con ( fil gt C:\nat_streamstats\ma\source_data_dir\west\topogr_gr, 1)
Grid: 
(thread0001, hydrodem_work_mod.aml/330) sinks_poly = gridpoly( sinks)
Converting GRID SINKS to Coverage SINKS_POLY
 Creating labels...
 Creating SINKS_POLY.PAT...
Grid: 
(thread0001, hydrodem_work_mod.aml/331) arc kill sinks all
Killed sinks with the ALL option
Grid: 
(thread0001, hydrodem_work_mod.aml/332) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/333) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/334) marker .05 .65
Grid: 
(thread0001, hydrodem_work_mod.aml/337) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/338) marker .05 .5
Grid: 
(thread0001, hydrodem_work_mod.aml/339) Move .15 .45
Grid: 
(thread0001, hydrodem_work_mod.aml/340) Text 'Start Synthetic Stream Creation '
Grid: 
(thread0001, hydrodem_work_mod.aml/341) str = con ( fac ge 150000, 1)
Grid: 
(thread0001, hydrodem_work_mod.aml/342) lnk = streamlink ( str, fdr )
Grid: 
(thread0001, hydrodem_work_mod.aml/343) str900 = con ( fac ge 900, 1)
Grid: 
(thread0001, hydrodem_work_mod.aml/344) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/345) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/346) marker .05 .5
Grid: 
(thread0001, hydrodem_work_mod.aml/349) markercolor 7
Grid: 
(thread0001, hydrodem_work_mod.aml/350) marker .05 .35
Grid: 
(thread0001, hydrodem_work_mod.aml/351) move .15 .30
Grid: 
(thread0001, hydrodem_work_mod.aml/352) text 'Start WaterShed creation '
Grid: 
(thread0001, hydrodem_work_mod.aml/354) cat =  watershed (fdr, lnk )
Grid: 
(thread0001, hydrodem_work_mod.aml/355) text ' ran OK '
Grid: 
(thread0001, hydrodem_work_mod.aml/356) markercolor 3
Grid: 
(thread0001, hydrodem_work_mod.aml/357) marker .05 .35
Grid: 
(thread0001, hydrodem_work_mod.aml/360) marker .05 .18
Grid: 
(thread0001, hydrodem_work_mod.aml/361) textsi .18
Grid: 
(thread0001, hydrodem_work_mod.aml/362) move .1 .1
Grid: 
(thread0001, hydrodem_work_mod.aml/363) text 'HydroDEM.aml finished and Ran OK'
Grid: 
(thread0001, hydrodem_work_mod.aml/365) &wo C:\nat_streamstats\amls_dir\
Grid: 
(thread0001, hydrodem_work_mod.aml/367) &return
Grid: 
(thread0001, tty/0) QUIT

