Skip to main content
Solved

Exporting Ray Data sets, Specific formats

  • May 9, 2023
  • 1 reply
  • 627 views

James
Forum|alt.badge.img

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.] 

Best answer by yuan.chen

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

View original

yuan.chen
Zemax Staff
Forum|alt.badge.img+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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings