Git Product home page Git Product logo

Comments (10)

kdere avatar kdere commented on August 20, 2024

that was the original intention. There is some support for having the flux in photon that has worked in the past. Have not tried it lately. There is no support for the wavelength in keV. but T(Kelvin)/constants.boltzmannEv should convert to eV.

from chiantipy.

MadFisa avatar MadFisa commented on August 20, 2024

So you would recommend not relying on it (the built-in functions) and instead do it manually?

from chiantipy.

kdere avatar kdere commented on August 20, 2024

The use of photons should be OK. I have used it in the past but all of the routine expect a temperature in Kelvin

from chiantipy.

MadFisa avatar MadFisa commented on August 20, 2024

What about wavelengths in keV?

from chiantipy.

kdere avatar kdere commented on August 20, 2024

right now, only eV

from chiantipy.

MadFisa avatar MadFisa commented on August 20, 2024

I am sorry, I am confused.
In .chiantirc files, options for wavelength are in angstrom,nm and keV.
But looking through the code and as you mentioned above, it looks like wavelength is actually expected in eV

if self.Defaults['wavelength'] == 'kev':
wvl = const.ev2Ang/np.asarray(wvl)

Isn't the rc file options and code contradictory then?

from chiantipy.

kdere avatar kdere commented on August 20, 2024

yes, they are contradictory. I have not looked at the in a long time. Will try to sort it out.

from chiantipy.

kdere avatar kdere commented on August 20, 2024

I have looked into this. Implementing the full range of wavelength possibilities is doable for line spectra but would take some work. However, it is more complex for the continua so I am not going to try to implement the wavelength possibilities right now.

from chiantipy.

kdere avatar kdere commented on August 20, 2024

I have decided to go ahead an implement the use of units other than angstroms for spectral line calculations. These include nm and energies in eV and keV. However, they will not work in spectral calculations and the user will be warned.

from chiantipy.

MadFisa avatar MadFisa commented on August 20, 2024

I see that it has been implemented in the new release, thank you for your efforts. I think it is better to leave the issue open as the feature has not been implemented fully (since continuum calculation still not work), for future reference.

from chiantipy.

Related Issues (20)

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.