12.07.2015 Views

Precipitation-Runoff and Streamflow-Routing Models for the ...

Precipitation-Runoff and Streamflow-Routing Models for the ...

Precipitation-Runoff and Streamflow-Routing Models for the ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

APPENDIX 2. ARC MACRO LANGUAGE (AML) PROGRAM USED TO CONVERT HYDROLOGIC RESPONSE UNIT(HRU) COVERAGE AND OTHER SPATIAL COVERAGE INFORMATION TO PRECIPITATION-RUNOFF MODELINGSYSTEM (PRMS) PARAMETER VALUES—CONTINUED&s outname [substr %subbasin% 1 20]&s infoname [translate [substr %covname% 1 4]]/*&label subcheck&if [exists %hrupath%subbasins/%covname% -cover] <strong>and</strong> [exists %hrupath%calbasins/%covname% -cover] &<strong>the</strong>n&do&label question&type Do you want to use <strong>the</strong> gsbasin or subbasin?&s answer [response ‘1 = gsbasin; 2 = subbasin; = quit: ‘]&if [null %answer%] &<strong>the</strong>n &goto terminator&select %answer%&when 2&s hrupath [pathname %hrupath%subbasins/]&when 1&s hrupath [pathname %hrupath%calbasins/]&o<strong>the</strong>rwise&do&type invalid answer&goto question&end&end&end&else &if [exists %hrupath%subbasins/%covname% -cover] &<strong>the</strong>n &s hrupath [pathname%hrupath%subbasins/]&else &if [exists %hrupath%calbasins/%covname% -cover] &<strong>the</strong>n &s hrupath [pathname%hrupath%calbasins/]&else&do&type invalid subbasin name&s covname [response ‘Please enter <strong>the</strong> name of <strong>the</strong> subbasin: ‘]&if [null %covname%] &<strong>the</strong>n &goto terminator&goto subcheck&end/*&label cleancheck&if ^ [exists %latpath%%latname% -grid] &<strong>the</strong>n&do&type lattice %latpath%%latname% doesn’t exist&goto terminator&end/*&if ^ [exists %hrupath%%covname% -clean] &<strong>the</strong>n&do&type coverage %hrupath%%covname% needs to be cleaned first&goto terminator&end&else &goto start/*&label terminator&type terminating program gis.aml102

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!