GithubHelp home page GithubHelp logo

Redshift limit and adding templates about marz HOT 2 OPEN

urverda avatar urverda commented on August 13, 2024
Redshift limit and adding templates

from marz.

Comments (2)

Samreay avatar Samreay commented on August 13, 2024 1

Hi Weida!

Happy to hear the tool is still useful after all these years! You're right in that there's a redshift limit. The UI limit comes from the way the cross correlation works, which involves rebinning input spectra onto a log-linear wavelenth grid and then calculating the cross correlations against templates.

You can see the redshift bin limits are defined in this config file: https://github.com/Samreay/Marz/blob/gh-pages/js/config.js#L60C29-L60C29

(Note that the two vaules with "Q" at the end are used for quasar templates, and you'll see their ending wavelength goes to up to 10^4.6 as opposed to the normal specta which go up to 10^4.2.

Increading this value will allow templates to match to higher redshifts. If you increase a lot, you might also want to enable finer rebinning (which means uncommenting line 61 and commenting line 62)

The maximum redshift value in the UI is controlled by this setting: https://github.com/Samreay/Marz/blob/gh-pages/js/services.js#L27

And as many templates as youd like can be added to the list in https://github.com/Samreay/Marz/blob/gh-pages/js/templates.js

Now, I can't make those changes in the default version of marz, as it will change the behaviour for existing users, but hopefully it's a simply process to fork the repository and change things as youd like, especially given GitHub pages is how I host the code to turn it into a webpage, and its free!

from marz.

urverda avatar urverda commented on August 13, 2024

Hi Sam,

Thanks a lot for the prompt reply and this great code. I will try to modify it and host it on my laptop.

Best,
Weida

from marz.

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.