10.07.2015 Views

Converting a NEXRAD Rainfall Map into a Flood Inundation Map by ...

Converting a NEXRAD Rainfall Map into a Flood Inundation Map by ...

Converting a NEXRAD Rainfall Map into a Flood Inundation Map by ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

When HEC-HMS is called, it runs asynchronously from ArcGIS.Therefore, the HMSCaller DLL must have functionalities to pause execution ofthe geoprocessing workflow until HEC-HMS completely finishes execution andbefore returning control to ArcGIS.All external applications launched <strong>by</strong> Shell functions run asynchronously,which means that the launching application is not notified when the launchedapplication (also known as the shelled application) has finished execution. Itimplies that eventually, the next program statements in the launching application(next tool in model builder’s workflow) will continue execution before thelaunched application (HEC-HMS in this case) has completed execution.For the proposed integration to succeed, it is required that the launchingapplications or processes run in a synchronous fashion in which every process inline keeps track of the execution of the previous process and waits for it to becompleted before the next process starts executing. The ability to wait isparticularly critical for this integration because under the current integrationscheme, the output of one process becomes the input for the next process inline.Therefore, starting a process with an incomplete input configuration will generatean error and will halt the execution of the entire workflow or will propagate errorsalong the integrated components of the workflow. Thus, the integration schemeneeds to start an application using the Shell tools and wait for the shelled programto end before continuing processing and executing the next line of code.To avoid asynchronous behavior, several options can be implemented. Forthe present work, the Shell function was enhanced with delay capabilities that are104

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

Saved successfully!

Ooh no, something went wrong!