Code Monkey home page Code Monkey logo

Comments (4)

manodeep avatar manodeep commented on June 3, 2024

Hey @pribamello - thanks for using Corrfunc and for reporting the issue.

In order to use x, y, z in the inputs to DDtheta_mocks, you have to pass x, y, z and also set is_comoving_dist=True. Looks like you are setting is_comoving_dist but passing ra, dec, cz (instead of x, y, z).

My expectation is to get similar results when passing x, y, z to both theory/DDsmu (periodic=False) and mocks/DDsmu_mocks (is_comoving_dist=True). Note that the line of sight is fixed along the Cartesian z-axis for all particle pairs for theory/DDsmu whereas the line-of-sight changes for every particle pair considered for mocks/DDsmu_mocks.

from corrfunc.

pribamello avatar pribamello commented on June 3, 2024

Hi @manodeep - thank you for the response.
In the documentation page for DDsu_mocks, the arguments are passed as (r, ra, dec). When I try to pass (x, y, z) instead, an error is raised.

from corrfunc.

manodeep avatar manodeep commented on June 3, 2024

You are totally right - oops!

Just to be clear - those two results would still not be identical anyway - the projections are defined in a different manner. I am curious - is this related to any Science use-case that you have?

from corrfunc.

pribamello avatar pribamello commented on June 3, 2024

Makes sense, considering the diferences in projection. Yes! For now, I'm trying to recover the multipoles from a set of mock simulations from Pinocchio code.

from corrfunc.

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.