Giter Site home page Giter Site logo

Comments (5)

jchylik avatar jchylik commented on July 17, 2024

This could obviously be done by integrating over the curve but that would be beyond the scope of a spreadsheet. There must be a simpler way to approximate the proportion of visible light.

You can try a fairly good approximation. The curve showing the energy emitted for each frequency in the spectrum is described by the Radiation Law. And the good news are that the its approximation ( https://en.wikipedia.org/wiki/Wien_approximation )
is analytically integrable.

So we can calculate illuminance for each frequency band (ie band for frequencies between f_a and f_b)
E (f_a, f_b; T) = ((2 L K T)/(c^2 d^2 )) ((h f_a + K T) exp{ - h f_a / (K T)} -(h f_b + K T) exp{ - h f_b / (K T)})

from sfcalcsheet.

jchylik avatar jchylik commented on July 17, 2024

Reiterating on that, I can fairly easy add a sheet for that, however you have to decide on the sampling:

  • selected frequency bands (such as corresponding to ultraviolet, blue, green, ...)
  • select the sampling of bands after opening the sheet and generate the list

from sfcalcsheet.

lortordermur avatar lortordermur commented on July 17, 2024

What would be nice would be a calculator (for example "Illuminance" on the "Star" sheet) that could say how much of the star's energy output is in a specific frequency band (as a percentage). Bands would be far-infrared, near-infrared, visible light, UV-A, UV-B etc. The illuminance calculation in the "Planetary habitability" calculator could optionally be updated accordingly, to only take into account visible light.

This is how I can determine it on the fly, however I have not worked on the spreadsheet in quite a while. You could do a fork if you want and add a new calculator, and I pull it in or copy-paste in LibreOffice.

from sfcalcsheet.

jchylik avatar jchylik commented on July 17, 2024

how much of the star's energy output is in a specific frequency band

That is definitely possible, but there are few more free parameters of a star that determine that.
Still, as the first approximation we can use the black-body emission (i.e. spectral distribution based on temperature only)

could do a fork if you want and add a new calculator, and I pull it in or copy-paste in LibreOffice.

I can try that, with LibreOffice the version might even end up compatible.

from sfcalcsheet.

lortordermur avatar lortordermur commented on July 17, 2024

Nice, I would also test in Google Docs and Excel Online because not all OpenDocument features are 100% compatible between the three. But those are details that can be debugged.

Yes, black-body emission should be sufficient for now.

from sfcalcsheet.

Related Issues (4)

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.