I have a large number of raster model files of water depths with corresponding velocity vectors in point shapefiles. I want to be able to 'walk through' the results displaying the depths and velocity vectors on top of each other but without having to select both layers in the TOC.
Would it be possible to write python code that would turn on the corresponding vector layer when a raster was turned on in the TOC, based on matching its name?
It would ideally need no user input except to run the code before the user started to visualise the results.
The two files (one raster and one shapefile) have essentially the same names identifying the model name and containing a numeric identifier which would be unique to just those two layers.