I am attempting to export the wrapped interferograms from StaMPS as image files. Does anyone know how I can do this programatically?
I can plot the IFGs manually using the ps_plot() or ps_plot_ifg() functions, however I would have to manually save each one to a TIFF, and considering I am working with hundreds of IFGs (SBAS) this would take forever.
I can run through all of the IFGs using a loop and save them as .mat files:
for i = 1:ps.n_ifg
dest_path=sprintf('my_project_path/plot_outputs/plot_ifg_%d.mat',i);
ps_plot('w',-1,0,0,(i));
movefile('ps_plot_w.mat', dest_path);
end
However I am still unsure how to convert these plots to TIFF using code. Any help would be appreaciated.