Star Field Simulations

'Basic' simulation program (04/10/2016): Simulation_test1.py.txt

  • Simulation generates stars with random positions.
  • Canvas size and no. of stars are variable.
  • No gaussian profile for stars or grey values (pixel value is either 0 or 1).
  • Example output: (100x100 pixel canvas, 50 stars)
  • PositionSimTest2.png
Improvement - Gaussian star profiles (05/10/2016): Simulation_test2.py.txt

  • Generated stars now have 2d gaussian profiles.
  • Maximum grey values (gaussian peak values) are randomized - can result in star not appearing in output.
  • Example output: (100x100 pixel canvas, 0-100 grey value range, 10 stars)
  • GaussianSimTest1.png
  • Example 2: (1530x1020 pixels, 0-65535 grey value range, 50 stars)GaussianSimTest2.png

-- AaronAndrews - 04 Oct 2016

Topic attachments
I Attachment History Action Size Date Who Comment
PNGpng GaussianSimTest1.png r1 manage 27.3 K 05 Oct 2016 - 21:44 AaronAndrews Star field simulation with gaussian star profiles, 100x100 pixels, grey values 0-100, 10 stars generated
PNGpng GaussianSimTest2.png r1 manage 38.8 K 06 Oct 2016 - 14:32 AaronAndrews Simulation test, 1530x1020 pixels, 50 stars
PNGpng PositionSimTest1.png r1 manage 10.4 K 04 Oct 2016 - 15:26 AaronAndrews Star position simulation, 100x100 pixels, 5 stars
PNGpng PositionSimTest2.png r1 manage 19.0 K 04 Oct 2016 - 15:26 AaronAndrews Star position simulation, 100x100 pixels, 50 stars
Texttxt Simulation_test1.py.txt r1 manage 1.5 K 04 Oct 2016 - 15:21 AaronAndrews Star position simulator
Texttxt Simulation_test2.py.txt r1 manage 2.4 K 05 Oct 2016 - 21:45 AaronAndrews Gaussian star field simulator
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: r3 - 06 Oct 2016 - AaronAndrews

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2025 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