Star Field Simulation:

First a random position function was made for a variable canvas size and number of stars. At this point, the stars are just points.

Position_of_Stars_Example.png

Next, a 2D Gaussian function was used over the position of the star with mean values of x and y = 5. The array was then converted into a fits image.

FirstStar.png

The same was attempted for twenty stars on a larger canvas size, which worked, but took a long time. This is because the algorithm was looped over every pixel for every star, this can be fixed by limiting the number of pixels to iterate over around each star. The monte carlo part of the simulation hasn't yet been implemented.

20Stars.png

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng 20Stars.png r1 manage 13.1 K 25 Oct 2017 - 18:57 RebekahChafer1 Image with 20 stars
Unknown file formatfits FirstStar.fits r1 manage 81.6 K 25 Oct 2017 - 18:09 RebekahChafer1  
PNGpng FirstStar.png r1 manage 0.5 K 25 Oct 2017 - 18:13 RebekahChafer1 Image of first simulated star. Monte Carlo not implemented yet. - png image
PNGpng Position_of_Stars_Example.png r2 r1 manage 32.4 K 22 Oct 2017 - 14:57 RebekahChafer1 Positions of simulated stars example scatter plot
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions...

Physics WebpagesRHUL WebpagesCampus Connect • Royal Holloway, University of London, Egham, Surrey TW20 0EX; Tel/Fax +44 (0)1784 434455/437520

Topic revision: r2 - 25 Oct 2017 - RebekahChafer1

 
  • Edit
  • Attach
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding RHUL Physics Department TWiki? Send feedback