Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Units of phasescreens put out by the aotools.turbulence.phasescreen.ft_sh_phase_screen function #73

Closed
phillips-r opened this issue Jan 20, 2022 · 7 comments
Assignees

Comments

@phillips-r
Copy link

Greetings,

I'm poking around with aotools some and I am having a little trouble understanding what the units are on the phasescreens put out by the aotools.turbulence.phasescreen.ft_sh_phase_screen function. In some places in the documentation, it seems to refer to the units are radians but then in other places it seems to refer to the units as nanometers of wave front deviation per unit length. Can anyone clear this up?

@andrewpaulreeves
Copy link
Contributor

Hi @phillips-r,

The units from the phase screen creation functions, including aotools.turbulence.phasescreen.ft_sh_phase_screen are definitely in radians. We should certainly write this into the function docs! Can you point us to where its indictated that it may be in nano-metres?

Thanks!

Andrew

@phillips-r
Copy link
Author

Andrew,

Thanks for getting back so quick! I'll hunt down where the docs are unclear and get back to you. Is there a per unit length assumed with the phase screens? As in "radians per meter" etc?

@phillips-r
Copy link
Author

Andrew,

appologies for getting back so late. I was able to track down where I found that and it seems to be in a couple of the places like "optical_propagation.ipynb" in the AOtools_tests section where there is a figure after input 5 that implies the units are "wavefront deviation (nm)".

Can you confirm for me what the unit length scale is on the phase screen measurements? They're in radians, but radians per unit what? meters? kilometers? Thanks again for this great tool!

@andrewpaulreeves
Copy link
Contributor

Hi @phillips-r,

OK - Thanks for digging this out. We can have a look and make sure it clear where the units are radians and where its in metres. We'll keep this issue open until its sorted.

Radians in phase screens are always a little confusing.

The phase screens are in "radians of a wavelength", so it depends on what wavelength you are considering. If you are assuming r0 is specified at 500nm (which is normally standard), then that implies that if you get a value of 2pi in the phase screen, there is 500nm of path difference at that point. If you wanted to convert your phase screen to nm then, you must multiply by 500 / (2 pi). However, when you're building an "electric field" from the phase screen, for instance to use in some optical propagation algorithm, then the phase needs to be in units of radians of wavelength.

Does this help?

Andrew

@andrewpaulreeves
Copy link
Contributor

I've now changed labels in that notebook - @matthewtownson will run the notebook through again and upload so that the figure caption actually changes...

@matthewtownson
Copy link
Member

I will re-run the notebook to update the plots. Thanks for updating.

@matthewtownson matthewtownson self-assigned this Mar 18, 2022
@matthewtownson
Copy link
Member

Updated the notebook, all docs and examples should now be consistent - units of phase screens are radians.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants