Igor procedure to make average image selecting files from multiple data folders