GithubHelp home page GithubHelp logo

Comments (1)

Samreay avatar Samreay commented on August 13, 2024

Hey Yuting!

So everything you're wanting should be relatively straightforward, given some forking and javascript work.

  1. You can increase the redshift accuracy by increasing the binning of the templates/input spectra by increasing the arraySize here: https://github.com/Samreay/Marz/blob/gh-pages/js/config.js#L62
  2. If you're looking at things in a lower redshift range, note that the startPower and endPower defined above the arraySize will determine the redshift range your xcors go to, so you could reduce the maximum wavelength if you're not needing higher redshift results.
  3. You can scrap templates and add your own simpy by editing https://github.com/Samreay/Marz/blob/gh-pages/js/templates.js
  4. In terms of redshift error, we found that usnig the width of the xcor peaks was not representative of the actual redshift error, and thats why its not used.
  5. But... if you want to do it anyway, the each spectra class has the xcor data stored in templateResults: https://github.com/Samreay/Marz/blob/gh-pages/js/classes.js#L77, where each template result is a dictionary of redshifts, xcor values, and the template weight (https://github.com/Samreay/Marz/blob/gh-pages/js/workerMethods.js#L256)

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.