Advertisement
Zarty

Shadow Length Calculator

May 23rd, 2023 (edited)
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.04 KB | None | 0 0
  1. Mobile App Specification
  2. Version 1.2
  3.  
  4. 1. Introduction
  5. The goal is to develop and implement a mobile App that can help people carry out simple experiments around the world relating to the Sun's shadow length. However, more important than providing a calculated shadow length that people can they verify for themselves with their own empirical experiments, the App will demonstrate for people from school children to adults how Earth's rotation, declination and orbit around the Sun on any given day and time of the year will determine the Sun's shadow length. To achieve these aims, this draft document will provide the starting point for a specification for developing the required mobile App.
  6.  
  7. 2. 'How To'
  8. The App needs to give a simple A, B, C type explanation of how to do the experiment and what resources they will need.
  9. note: As written, the information an steps described are not 'user friendly', especially for young school children. There will be more dynamic and interesting ways to display this information such as with images and so on.
  10. eg.
  11. What you need to do this experiment with this App:
  12. a) A day with enough sunshine to cast a clear shadow
  13. b) A straight stick or rigid wood/plastic rule, ideally 1 meter long
  14. c) Optionally, some stones, bricks or similar to put at the base of the stick/rule to hold it vertically upright
  15. d) A tape measure (metric)
  16.  
  17. How to do the experiment:
  18. a) Find a nice level area of ground without shadows from nearby buildings, trees, etc
  19. b) Locate the stick/rule standing vertically upright on the ground - better if you put some bricks at the base to hold it vertically upright
  20. c) If you have a carpenter's level, you can adjust the stick/rule so it is perfectly upright but, if not, just estimate with your eyes if the stick/rule looks to be vertically upright.
  21. d) Be careful to measure the height of the stick/rule from the ground to the top of the stick/rule
  22. e) Enter the height of the stick/rule into this App
  23. f) Check the calculated length of the shadow that the App displays
  24. g) Use your tape measure to measure the shadow and compare if the measurement is the same or near enough to the calculated shadow length
  25. h) Repeat at different times of the day and days of the year
  26. i) Ask your friends or family who live in different parts of the country or the world to download the App and repeat the experiment!
  27. j) Learn more about WHY the Sun's shadow length changes the way it does depending on your location, day and time of the year by following the links provided.
  28.  
  29.  
  30. 3. Inputs
  31. 3.1 Latitude and Longitude
  32. This should ultimately be provided by the Mobile Phone's location finding capability.
  33. Initially, for a staged development approach, the Latitude and Longitude can be manually entered.
  34. In a later stage of development, the default values can be automatically calculated by current location but should still be capable of being overwritten by the user if they choose to enter different valid coordinates.
  35.  
  36. UI considerations: The user should be informed that they can override their location's Latitude and Longitude if they wish.
  37.  
  38. 3.2 Local Date & Time
  39. By default, the current local time can be automatically entered but can be overwritten by the user if they wish.
  40.  
  41. Note: The application will have to allow for DST (Daylight Saving Time)
  42.  
  43. 3.3 Height of object casting a shadow
  44. For the experiment, the user can input the length of stick or whatever object they wish to use to stand vertically on level ground to measure the cast shadow.
  45. Units can be fixed to meters and decimal parts to 2 decimal places.
  46. By default, the value of 1.00 can be entered.
  47.  
  48. UI considerations: A UI design feature can incorporate information/guidance/tips for the user such as, advising a very level surface use used for the experiment and suggest that a stick or wooden rule of known length is used such as a 1 meter wooden or hard plastic rule. Suggestions can be made about holding the stick/rule in place using bricks at the base so they don't have to physically hold the stick/rule while measuring the shadow. They can also use a carpenter's level to ensure the stick/rule is accurately vertical.
  49.  
  50. 4. Calculated variables
  51. 4.1 UTC Date & Time
  52. Can not be changed by the user but will be updated if the Local Time is changed by the user (ref. 1.2)
  53. nb. It is assumed that calculations required for the Sun's shadow length should use UTC time as local time could have DST (Daylight Saving Time) adjustments.
  54.  
  55. 4.2 Other constants & variables according to the shadow length calculation
  56. Further work required to complete this section but will involve known and readily available calculations so this should not be difficult.
  57.  
  58. 5. Outputs
  59. 5.1 Solar Noon using Local Time (DST adjusted if necessary)
  60. Although this is not related to the local time input at 1.2, it's useful to show when solar noon occurs at the given latitude and longitude on the same day of year relating to 1.2.
  61.  
  62. 5.2 Shadow Length at Solar Noon
  63. Units: Meters to two decimal places
  64. Can Label this output as something like, 'Shadow Length at Solar Noon (Local Time: hh:mm:ss):'
  65.  
  66. 5.3 Shadow Length at current Local Time
  67. Units: Meters to two decimal places
  68. Label: 'Shadow Length at current local time, hh:mm:ss:'
  69.  
  70. Note: As the application will use UTC time and not DST time where it applies, the output current local time needs to be converted back from UTC to DST time where and when applicable.
  71.  
  72. 5.4 Angle of Sun (Degrees)
  73. The shadow length will of course be relative to the height of the stick/rule and the angle of the Sun. Therefore, we calculate the angle of the Sun that is necessary to create the shadow of a certain length, the angle will be same even if we used different length sticks/rules. Because the vertical height of sticks/rules or other suitable items will vary, this will make it easier to compare different results to experiments carried out in the future or experiments done by other people in other locations.
  74.  
  75. 5.5 Graphical displays
  76. This is a future development stage so just needs to be allowed for at this point and not implemented.
  77. It is hoped that a 2D image can be generated that shows a segment of Earth that includes the App user's location at one point and the point on the same line of longitude where the Sun is directly overhead at the given solar (?) time. A depiction of the Sun's parallel rays hitting the surface of the curved segment of Earth can be shown in relation to the two locations with angles displayed as well as depictions of the shadow length with measurements.
  78.  
  79. 6. Recommend to other people
  80. As part of the App's appeal, it is more interesting to also ask friends and family who live in other locations/countries to download the App and try the experiment themselves.
  81.  
  82. 7. Feedback & Donations
  83. Allow Apps users to send their feedback.
  84. Provide donations facility such as https://www.buymeacoffee.com/ to provide funds for future App enhancements or other similar Apps.
  85.  
  86. 8. Pin Map
  87. Optional and future stage development for the App to post data to a central database each time the App is used.
  88. Data would include date and time, latitude, longitude, stick/rule/pole height, Sun angle.
  89.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement