Skip to main content

Hello All,

I would like to import measurement data from a double pass Shack Hartmann wavefront sensor.
I have the INT file ganarated from the measurement software (the first few lines of the files is attached).

What i want to do is compare the ideal lens wavefront model (from Zemax) to the real measured Wavefront from the measured data.

Is there a way to import and compare the wavefronts?

 

Thank you for the help,

Amit

@Amit 

 

You have the Zernike surfaces as well as Grid Phase surface that could be useful.

If I were you I would check the syntax of the “INT file” and check how it can be converted to one of the surfaces I mentioned.

If you give us more details about those “INT files”, we may be able to help further. Or perhaps someone else here knows about those file and can give you specific guidance.

Take care,

 

David


Hello ​@David.Nguyen ,

 

thank you for the response.

The software  manual says the INT file is a CodeV format file with the following details:
For matrix-type data, SHSWorks uses a line length of 10 entries.
The structure of the file is:
!SHSWorks generated int file
!Wave-front:
PMA INT file
GRD 59 59 WFR WVL 0.635000 SSZ 323328.611402 NDA -32767

For coefficients (Zernike), the structure is:
Zernike INT file
ZFR 9 SSZ 1,000000 WFR WVL 0,635000
2,42064570e-005
-1,35630975e-003
1,67079226e-002
-1,57935996e-002
1,90019919e-002
2,23541016e-003
4,19299383e-003
-1,61282936e-002
1,44345310e-002

I am guessing the easiest would be to export the Zernike data from the Measurement software and convert it to Zernike .DAT and import it back into OpticStudio. What do you think?

 

Best regards,
Amit


@Amit 

When looking at the Help File, you have a tool:

The File Tab » Convert Group » Convert File Formats » INT Zernike to OpticStudio DAT

I don’t know if it’ll work right away though. One thing I would be worried about is the definition of the Zernike polynomials. You have this sentence from the Help File of the tool above:

At this time, only the Zernike Fringe format (ZFR) is supported.

So, make sure your INT file uses this definition. I believe you’ll find the formulas under:

The Analyze Tab (sequential ui mode) » Image Quality Group » Wavefront » Zernike Fringe Coefficients

It looks like so for the first five:

I hope this helps and take care,

 

David