I am trying to calculate peak to valley value showing on 'analysis-interferogram' window by ZPL, and use it in the merit function editor with ZPLM operand.
But I have no idea how to directly get the peak to valley value using any kinds of pre-defind functions or else, so currently what I am doing is to save the text file of interferogram analysis result, then read back in, and extract the peak to valley value, then pass it using OPTRETURN.
This process seems require a lot of time to calculate system by system during the optimization,
so I want to find a quick method to obtain the peak to valley value, instead of what I am doing now.
Thank you in advance.
And I hope there is a clever way to do this.