Giter VIP home page Giter VIP logo

attenuations.jl's Introduction

Attenuations.jl Build Status Coverage Status Dev

NIST XCOM x-ray attenuations in Julia.

Basic Usage

julia> using Pkg; Pkg.add("https://github.com/kczimm/Attenuations.jl")

julia> using Attenuations

julia> μᵨ(Elements.Hydrogen, 1MeV, PhotoelectricAbsorption)
1.172e-9 cm² g⁻¹

julia> μᵨ(Mixture(Dict("H"=>1)), 1MeV, PhotoelectricAbsorption)
1.172e-9 cm² g⁻¹

julia> μ(Materials.GOS, 40keV, Incoherent)
0.8117040000000001 cm⁻¹

julia> μᵨ(Compound("H2O"), 10keV)
5.33 cm² g⁻¹

julia> energies = 20keV:1keV:160keV
(20:160) keV

julia> μ(Materials.water, energies)
1-dimensional AxisArray{Unitful.Quantity{Float64,𝐋⁻¹,Unitful.FreeUnits{(cm⁻¹,),𝐋⁻¹,nothing}},1,...} with axes:
    :energy, (20:160) keV
And data, a 141-element Array{Unitful.Quantity{Float64,𝐋⁻¹,Unitful.FreeUnits{(cm⁻¹,),𝐋⁻¹,nothing}},1}:
 0.8098 cm⁻¹
 0.7253 cm⁻¹
 0.6557 cm⁻¹
 0.5978 cm⁻¹
 0.5493 cm⁻¹
 0.5082 cm⁻¹
 0.4733 cm⁻¹
 0.4433 cm⁻¹
 0.4175 cm⁻¹
 0.3951 cm⁻¹
           
 0.1499 cm⁻¹
 0.1496 cm⁻¹
 0.1493 cm⁻¹
  0.149 cm⁻¹
 0.1487 cm⁻¹
 0.1484 cm⁻¹
 0.1481 cm⁻¹
 0.1478 cm⁻¹
 0.1475 cm⁻¹

attenuations.jl's People

Contributors

dale-black avatar kczimm avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

dale-black

attenuations.jl's Issues

Revive

I am working on building a CT simulator and this package is great. Do you have any interest in reviving it and publishing a proper package? I forked it and I am trying to figure out the HTTP bugs with updated HTTP packages

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.