I can’t understand why the ProductIO.writeProduct() function takes at least a few minutes to execute for a collocation between two images of around 3000 x 4000 px in the following code (the collocate() function is implemented in another script):
While when its called from the command-line with gpt it’s very quick.
Is there any other way to write the resulting collocated product to the disk quickly?
One reason could be a different memory setting. However, maybe it helps if you use the Write operator.
Please have a look at this and the following posts: