I have a mosaic dataset that points to a folder that contains a single NetCDF.
I have a script that:
This appears to be working fine. However if I publish an image service from this Mosaic Dataset, the script fails to run as the image service has a lock on the mosaic dataset.
Is there a workaround to this or will I also have to include a start/stop image service (using Python Admin API I presume) into my script?
This particular example is just a test run with a file that only changes daily, but I have a requirement to work with another dataset on the FTP that changes on a 30 minute interval. Stopping and starting the service is going to interrupt users workflows downstream of the image service.