Comments (7)
Maybe as a similar issue, how will we handle standard refractive index profiles? Do we make a separate glass.py file?
from hcipy.
Yes, I think it's a good idea to have a small library of these aspheric, conic and spherical surface sags. I'd keep it brief though. To make them useful outside of micro-optics would probably need more advanced optical propagation methods, which are not implemented now. Any more than the following?
- Even aspheric
- Even-odd aspheric
- Conic
- Spherical
For refractive indices. A wrapper to an existing library would be preferable for me, but I haven't seen any good ones. PyTMM looks okay, but that is not pip installable as far as I can see, and including it outright into HCIPy or a derivative is not possible due to their license. Maybe a few formulas for the most common glasses (BK7, SF11, ...) and a few general implementations (Sellmeier, ...), with coefficients as arguments? Into glass.py would be my choice as well.
from hcipy.
I think those surfaces are fine. I will add them in my current working branch in a separate surface file.
For the refractive index I think we may be able to use: https://github.com/HugoGuillen/refractiveindex.info-sqlite
This one has no license and has a relatively simple interface. It also allows you to look for materials within certain ranges of refractive indices.
from hcipy.
That one is also not pip-installable, and is also based on PyTMM, and as such, must also necessarily be GPL licensed, even though it says it's not. If you look in the code, a large part is copy-pasted with small modifications. You can not re-release a GPL code as non-licensed code or MIT licensed, even if you modify it. While officially, we wouldn't be directly breaking the license, we would do it indirectly.
from hcipy.
Well then it would be easiest to include several glasses by hand. I have already implemented a couple of Cauchy and Sellmeier equations.
from hcipy.
I have added the two standard glass catalogues from Schott and Ohara in my branch (fiber_LP_modes). Those were freely available from the website of Schott and Ohara. How should we order such files? Currently I just put them in the optics folder, like the xinetics influence functions. Should we add some Data folder at some point for these types of files?
from hcipy.
This has now been resolved in the new LP_fiber_modes branch, therefore I will close this issue.
from hcipy.
Related Issues (20)
- Deterministic atmospheric phase screens #173 HOT 2
- 'gaussian_mode' is not defined HOT 8
- Is it possible to remove specific modes in atmospher layer using HCIPy? HOT 4
- Add a function to pad regularly-spaced grids HOT 4
- Observing a Satellite (e.g. ISS) HOT 2
- `utcnow` is deprecated in Python 3.12
- Add support for Python 3.11.
- Drop support for Python 3.7. HOT 1
- The random function in the deformable mirror is not functioning properly HOT 2
- Matplotlib 3.7 `get_cmap()` deprecation warning
- Numpy 1.25 deprecation warning
- Imageio v3 API changes.
- Add support for Python 3.12.
- Add support for geometric operations
- pip install hcipy not complete? HOT 2
- Add grid indexing support when indexing or slicing a Field HOT 2
- docstring error in FraunhoferPropagator (?) HOT 2
- Non ideal optics to emulate manufacturing errors?
- FraunhoferPropagator total power not conserved HOT 6
- User Settable Number of Cores HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hcipy.