Astronomy

A random distribution of RA&Dec

A random distribution of RA&Dec


We are searching data for your request:

Forums and discussions:
Manuals and reference books:
Data from registers:
Wait the end of the search in all databases.
Upon completion, a link will appear to access the found materials.

How to make random positions in Equatorial coordinate system?

If I divide Dec between -90 and 90 evenly, the space distribution is not random.


Well, your problem is that you have a sphere. To compensate for the polar declination skew, you just calculate $$sin^{-1}(mathtt{rand})$$ Where $mathtt{rand}$ is a number in an evenly divided -1 to 1 range. Alternatively, you can use another trigonometric function based on what you have available, but you get the idea.

RA can obviously be divided evenly.



Comments:

  1. Zulukinos

    Fly away!

  2. Barrani

    Thanks! Cool thing !!!

  3. Samukora

    The very good communication is remarkable

  4. Kerry

    it is precisely

  5. Leveret

    The theme is interesting, I will take part in discussion. Together we can come to a right answer. I am assured.



Write a message