Parent Topic: MODEL
Debugging
Complex models may require debugging like other programs. The
following hints may help in this process:
- While developing/debugging a model, use small data sets. PACE
programs CIM, III can help make smaller data sets.
- Get hardcopy printouts of small image data areas and of any
attribute data used. PACE programs NUM, TEXWRIT can be used.
- Add extra channels to the file and use them to output
`intermediate' results. This can be useful in `tracing' model
execution. PACE program PCIMOD can add extra 8-bit channels.
Note:
One of the most common debugging methods is to use strategically
placed print statements. Due to the structure of MODEL, the use of
parallelism (where available) cannot perform I/O while processing a
pixel. This means that the print statement cannot be used within the
processing section of the model, though in the INPUT/SET section it
can be used, since parallelism is not used.
Parent Topic: MODEL
About PCI Help Gateway