I'm trying to create a Grid Phase data file to act as a phase screen, and the manual describes the file format as equivalent to a Grid Sag .DAT file, but that doesn't seem to be working for me. For a Grid Sag file, information is arranged as follows:
! nx ny delx dely unitflag xdec ydec <-- First data line
! z dz/dx dz/dy d2z/dxdy <-- Other data lines
I was wondering if my problem is with the unitflag value; there doesn't seem to be a flag value corresponding to phase units/no units? I would very much appreciate if someone could give me the correct format for a Grid Phase .DAT file, and if you could also send me an example Grid Phase .DAT file to look at.
Thanks!