Skip to main content
Solved

Exporting detector data

  • December 19, 2022
  • 6 replies
  • 798 views

sarjaajay

I am trying to export the incoherent irradiance information from the detector viewer along with x,y coordinates. Cross section row/column option allows only to export either x or y coordinate at a specific row/column. How do i export both x,y coordinates with irradiance at each coordinate? The detector grid size is 250x250 pixels.

Best answer by cynthiapadt

The False Color option you have highlighted in your image is equivalent to the Full Listing option. 

If you are using False Color, or any of the equivalent plots, going to the Text tab will allow you to export the irradiance data at each coordinate. 

 

This will export the data as a .txt file. 

 

View original
Did this topic help you find an answer to your question?

6 replies

cynthiapadt
Forum|alt.badge.img+4
  • Infrared
  • 14 replies
  • December 21, 2022

Hi there!

Have you tried using the Show As: Full Listing option in the Text Tab and exporting the data? 

 

The exported data should include the x and y coordinates and the associated irradiance at each point. 

Hope this helps!

 


sarjaajay
  • Author
  • Single Emitter
  • 2 replies
  • December 21, 2022

Hi,

I don't see this option? I am using opticstudio 22.3 version.

 


cynthiapadt
Forum|alt.badge.img+4
  • Infrared
  • 14 replies
  • Answer
  • December 21, 2022

The False Color option you have highlighted in your image is equivalent to the Full Listing option. 

If you are using False Color, or any of the equivalent plots, going to the Text tab will allow you to export the irradiance data at each coordinate. 

 

This will export the data as a .txt file. 

 


sarjaajay
  • Author
  • Single Emitter
  • 2 replies
  • January 6, 2023

The text tab includes only irradiance data at each PIXEL. What I need is irradiance along with X/Y coordinate values.


cynthiapadt
Forum|alt.badge.img+4
  • Infrared
  • 14 replies
  • January 6, 2023

Unfortunately, I do not believe there is a capability within Zemax to export the irradiance data in X/Y coordinate values. Hopefully someone on the Zemax team can comment if I am wrong. In the past, I have had to convert the pixel values to X/Y coordinate values in post processing using Matlab. 


Jeff.Wilde
Luminary
Forum|alt.badge.img+3
  • Luminary
  • 508 replies
  • January 6, 2023

@sarjaajay:

Here’s one option if you do have access to Matlab.  You can easily extract the x and y pixel coordinates from the Cross Section Row and Cross Section Column results as shown on the Text tab:

 

Import these 1D pixel coordinate vectors into Matlab, then use the “meshgrid” function to create a 2D array for the x pixel coordinate and a separate 2D array for the y coordinate.   These arrays, combined with a 2D array of the irradiance values, should give you what you need.

Of course you can also create the x and y pixel coordinate vectors by simply using the starting value and the pixel spacing.

Regards,

Jeff


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