Comments (2)
I've added a new data
field in RefractiveIndex v0.4.1 that contains either the coefficients or tabulated data as strings, which should allow a relatively easy swap-in replacement for read_refractive
:
julia> using RefractiveIndex, DelimitedFiles
julia> ZnO = RefractiveMaterial("main", "ZnO", "Stelling")
ZnO (Stelling et al. 2017: n,k 0.302–1.685 µm) - TabulatedNK
julia> ZnO.data
Dict{Symbol, Any} with 2 entries:
:type => "tabulated nk"
:data => "0.30158 1.706525 0.169525\n0.30318 1.703873 0.164441\n0.30478 1.7011…
julia> readdlm(IOBuffer(ZnO.data[:data]))
640×3 Matrix{Float64}:
0.30158 1.70653 0.169525
0.30318 1.70387 0.164441
0.30478 1.70119 0.160309
0.30638 1.69862 0.157039
0.30798 1.6963 0.154522
0.30958 1.69431 0.152638
⋮
1.6709 1.55081 0.000818
1.6744 1.55053 0.000787
1.67791 1.55026 0.000757
1.68141 1.54998 0.000728
1.68492 1.5497 0.0007
from transfermatrix.jl.
This works really nicely, thank you. I've managed to get it to work where tabulated data exists. Next I will get it working where a formula is required.
from transfermatrix.jl.
Related Issues (12)
- Argument information in docs
- Generate a YAML file from a Structure
- Does not handle files with unequal number of n, k for refractive index
- Allow user to specify wavelength in electric field
- Register HOT 5
- TagBot trigger issue HOT 4
- New Release HOT 3
- Calculate refractive index from a formula HOT 2
- Make default multiplier argument `1` in `load_refractive_data` HOT 1
- Calculate scattering matrix
- Use StaticArrays.jl
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 transfermatrix.jl.