I wondered whether it is possible to prompt for user input during execution of a Python Toolbox Tool?
Currently, I am working on a tool that masks a hyper-spectral image by a NDVI threshold. The user selects an image and a threshold value. From a red- and a NIR-band, the NDVI is calculated. Based on the threshold value, a mask is created. According to this mask, pixel values for all bands of the hyper-spectral image are set to a NoData value.
The entire process takes a lot of time and the NDVI threshold might have to be adjusted. Hence, I thought about storing the mask in memory and displaying it. Subsequently, the user could be asked to inspect the mask and adjust the threshold value if needed. As soon as the user is satisfied with the mask, the tool should continue and edit the hyper-spectral image accordingly.
An alternative would be the creation of two separate tools: one tool to create a mask (which is pretty fast) and a second tool to mask the hyper-spectral image. However, I think this would be more cumbersome to potential users, since they would have to run multiple tools manually.
Is it technically possible to change some parameter in a pop-up window and then continue? (I think it would be easy to prompt for user input in the message field of the tool; however, I suspect users won't expect to be asked for input and, thus, lose a lot of time until figuring out what is going on.)