Solved

Exporting Ray Data sets, Specific formats

  • 9 May 2023
  • 1 reply
  • 302 views

Userlevel 1
Badge

Dear ALL: 

      We’ve been asked to look into exporting ray data from a Non-sequential Zemax model in the following format style.    The first few (6)  terms look to be part of the ZRD command.     

        The format is::   x, y, z, L, M, N, Lumens, Wavelength."

But how would one also get the Lumens and Wavelength data ?  Wouldn’t that only be available  at a DETECTOR plane ?   

 

Thank you in advance. 

[Mod note: moved to more appropriate forum for OS-related discussions.] 

icon

Best answer by yuan.chen 10 May 2023, 08:58

View original

1 reply

Userlevel 5
Badge +3

Hi James,

You may check the last message in this post: How to save detector ray data as a source file | Zemax Community

If the data is saved as .sdf format, it could contain the wavelength and energy information.

Speos and Zemax Source file converter – Knowledgebase

If you want to reformat the .sdf data, you can use the python code here:

Python Reading Writing Binary Files (ZRD, ZBF, DAT, SDF) | Zemax Community

Reply