110 likes | 250 Views
Grid Functions. FE 423 - Lecture 3b. SCHEDULE. OUTLINE. Grid Function List Writing Equations Conditional Setnull/Isnull Local/Focal/Zonal Functions Project/Disc Management. Grid Function List. ArcView Help: Grid (Class) We only use those ending in :Grid and not those with Ftab
E N D
Grid Functions FE 423 - Lecture 3b
OUTLINE • Grid Function List • Writing Equations • Conditional • Setnull/Isnull • Local/Focal/Zonal Functions • Project/Disc Management
Grid Function List ArcView Help: Grid (Class) • We only use those ending in :Grid • and not those with • Ftab • aPrj • aGridList
WRITING EQUATIONS In math: y=x2 Old computer code y=sqr(x) Object oriented code [x].sqr Nesting log(sin(x)) [x].sin.log parameters [dem].hillshade(315,45,1)
Conditional Statement0/1 to grid0/grid1 • If condition • then action1 • else action0 • in Avenue aGrid.Con (yesGrid, noGrid) • Example ([snow]>[melt]).Con(([snow]-[melt]),0.Asgrid)
Null Data • Cells with no value (not 0) are null Some functions require null cells Some functions make null cells • Setnull: sets specific cells to null ([stand age]>100.Asgrid).SetNull([stand age]) • Isnull: is a cell value null? ([landslides].Isnull).Con(0.Asgrid,1.Asgrid)
Local/Focal/Zonal Functions • Local Functions at each cell [grid1]+[grid2] • Focal Functions around each cell [dem].FocalStats(#GRID_STATYPE_MEAN, NbrHood.Make, False) • Zonal Functions within the zone of each cell ([dem]>1000.asgrid).ZonalFill([dem])
PROJECT MANAGEMENTevery project tells a story • Make project name explanatory • Make themes name explanatory • Make legend categories clear • Comment themes to explain thinking • Remove useless themes • Separate unrelated themes by project
DISC MANAGEMENTmake and move everything together • Use one directory on all machines C:/temp/email_name/this_project/ • Set Working Directory • Save coverages, files, project, report • zip directory to move • by network • by zip drive • email/ftp
Reading from ArcDoc • Spatial modeling • Cell-based Modeling with GRID • Surface hydrologic analysis