SQL 2016 spatial data types and astronomy well mixed

Slides:



Advertisements
Similar presentations
Make An Astrolabe A Tool Used in Exploring The Night Sky.
Advertisements

Coordinate systems in Astronomy
7.6 Law of Sines. Use the Law of Sines to solve triangles and problems.
Constellations A constellation is a region of the sky.
© 2011 Pearson Education, Inc. Lecture Outlines Chapter 1 Astronomy Today 7th Edition Chaisson/McMillan.
Chapter 7 – UQ: How do you solve for missing sides and angles in a non-right triangle?
Introduction to the Unit Circle in Trigonometry. What is the Unit Circle? Definition: A unit circle is a circle that has a radius of 1. Typically, especially.
Warm Up Find AB. 1. A(0, 15), B(17, 0) 2. A(–4, 2), B(4, –2)
Use the 3 ratios – sin, cos and tan to solve application problems. Solving Word Problems Choose the easiest ratio(s) to use based on what information you.
New Solids: CYLINDERS, PYRAMIDS, CONES, SPHERES Challenge Questions Projects and exam area next week! Sites: 1, 2, 3, mathsnacks.org123 Videos (Bubbles.
New Solids: Pyramids, Cones, Spheres Challenge Questions Projects and exam area next week! Sites: 1, 2, 3123 Videos (Bubbles is #2): 1, 212.
Warm up Find the missing side.. Skills Check CCGPS Geometry Applications of Right Triangle Trigonometry.
Chapter 7 – UQ: How do you solve for missing sides and angles in a non-right triangle?
Angles of Elevation and Depression Unit 5-5 Trig word problems.
Shadow prediction: SQL 2014 spatial data types and astronomy well mixed.
© 2011 Pearson Education, Inc. Chapter 1 Charting the Heavens.
Trigonometry of Right Triangles
9.2 Notes: Solving Right Triangles
Solving Word Problems Use the 3 ratios – sin, cos and tan to solve application problems. Choose the easiest ratio(s) to use based on what information you.
Introduction to Trigonometry
3 Radian Measure and Circular Functions
Example: Fasten your seatbelts A small plane takes off from an airport and rises uniformly at an angle of 6° with the horizontal ground. After it has traveled.
Sides in a right angled triangle
Lesson 4.3 Our second approach to trigonometry is from a right triangle perspective…
Lesson 4.2 There are TWO historical perspectives of trigonometry which incorporate different methods for introducing trigonometric functions. Our first.
Positional Astronomy Chapter 3 Fundamentals of Radio Interferometry
NEUTRAL GEOMETRY PRESENTED BY: WARSOYO
SSIS Custom Pipeline Component A step-by-step guide
8-6 Vectors Warm Up Lesson Presentation Lesson Quiz Holt Geometry.
SSIS Custom Pipeline Component A step-by-step guide
HEIGHTS AND DISTANCE © Department of Analytical Skills.
Geometry 9.6 Solving Right Triangles
Elevation and depression
Grade 10 Academic (MPM2D) Unit 5: Trigonometry Applications of the Trigonometric Ratios 2 Mr. Choi © 2017 E. Choi – MPM2D - All Rights Reserved.
What is trigonometry?.
Sine Rule and Cosine Rule Joan Ridgway.
Mr. Young’s Geometry Classes, Spring 2005
Warm Up Find the missing side length Find the missing angle 55°
Warm Up Find the missing side length Find the missing angle.
CHAPTER 10 Geometry.
Copyright © Cengage Learning. All rights reserved.
GEOMETRI ELIPTIK Oleh : ADANG KUSDIANA NIM
Sine Rule and Cosine Rule Joan Ridgway.
Day 4: Right Angle Triangle Word Problems
Application of Trigonometry Angles of Elevation and Depression
Objectives Find the magnitude and direction of a vector.
Trig Ratios C 5 2 A M Don’t forget the Pythagorean Theorem
Sine Rule and Cosine Rule Joan Ridgway.
Review Find the EXACT value of: 1. sin 30° 2. cos 225° 3. tan 135° 4. cos 300° How can we find the values of expressions like sin 15° ?? We need some new.
Area, Sine Rule, Cosine Rule – Outcomes
7-5 and 7-6: Apply Trigonometric Ratios
10-7: Write and Graph Equations of Circles
Lesson 9-R Chapter 8 Review.
Trigonometry Pre-Amble and Review
9.2 Notes: Solving Right Triangles
Finding celestial objects in our night sky … … requires knowing celestial coordinates, based on the time of night, and our location Every star, cluster,
8-6 Vectors Warm Up Lesson Presentation Lesson Quiz Holt Geometry.
Every star, cluster, nebula, galaxy,
Warm up Find the missing side.
Trigonometry Survival Manual
Trigonometry Pre-Amble and Review
Solving Word Problems Use the 3 ratios – sin, cos and tan to solve application problems. Choose the easiest ratio(s) to use based on what information.
Warm up Find the missing side.
Trigonometry Pre-Amble and Review
Unit 3: Right Triangle Trigonometry
Open the program Paint on your computer
α The terminal side of the angle here is r
Arne Bartels Shadow prediction: SQL 2017 spatial data types and astronomy well mixed.
Mr. Young’s Geometry Classes, Spring 2005
Chapter 8 Review Name:_______________ Hour: _______ GEOMETRY
Presentation transcript:

SQL 2016 spatial data types and astronomy well mixed Shadow prediction: SQL 2016 spatial data types and astronomy well mixed 2016-08-27 Gothenburg, Sweden

Shadow prediction: SQL 2016 spatial data types and astronomy well mixed

Agenda Whoami Motivation Examples How to model? What is needed? Demo1: Drawing circles or Introduction to spatial datatypes Tools 1: Tilt of coordinate system/spherical trigonometry Demo2: Paint the sun in the sky Tools 2: Azimuth, altitude, size Demo3: Add the turbine(s) Bonus : Astronomy, precise to the second 2016-08-27 Gothenburg, Sweden

Whoami Arne Bartels Working for Vestas Windsystems A/S in Aarhus DK. Since approx. 2007 as Data Warehouse Developer Software developer in wind industry since 2001 Physicist by training, programmer by profession Worked in C/C++,Pascal, Linux scripts/PHP, MySQL… Recent: T-SQL, SSIS, C# arbar@vestas.com arne.bartels2@gmail.com LinkedIn

Motivation Inspired by real world challenge Encourage to use unusual combination of methods Introduce spatial data types i.e. GEOGRAPHY A shift of perspective might give new ideas Show what Management Studio/SQLServer can do Show off what I can do

Tauernwind Bullet Points, Line 2, 26 pt. Bullet Points, Line 3, 22 pt.

How to model? Assume worst case i.e. turbine is always pointed into the sun, then the turbine can be modeled as a sphere on top of the tower. The radius is the blade length or a bit more. The house in the shadow can be encompassed by a sphere where no shadow is allowed. Then the sensitive areas can be projected as circles in the sphere, that represents the sky seen from the house Compare to path of the sun seen from the house => simple drawings of circles with GEOGRAPHY are usable

What is needed? Path of the sun -> formulas known for ages Turbine picture in the sky -> basic (?) geometry

Demo1: Drawing circles or Introduction to spatial datatypes Goal: introduce the necessary datatypes and operators Necessary tools: Minimum SQL2012, here 2016 SQL Management studio Any Database, here : AdventureworksDW Imagination…

Tools 1: Tilt of coordinate system/spherical geometry There seem to no way to move GEOGRAPHY elements in SQL directly. Possible solution: parse as XML, recalculate and recreate. How do lat and lon change if we tilt by angle ? Believe me, check here for yourself, or look into the appendix sin 𝑙𝑎 𝑡 ′ = cos 𝜗 sin 𝑙𝑎𝑡− sin 𝜗 cos 𝑙𝑎𝑡 cos 𝑙𝑜𝑛 tan 𝑙𝑜𝑛′ = sin 𝑙𝑜𝑛 cos 𝜗 cos 𝑙𝑜𝑛+ sin 𝜗 tan 𝑙𝑎𝑡

Demo 2: Paint the sun in the sky Goal: Model the sun’s area in the sky for different latitudes Subtract the part obscured by the ground, aka night https://en.wikipedia.org/wiki/Equinox

Tools 2: Azimuth, altitude, size https://en.wikipedia.org/wiki/Horizontal_coordinate_system https://en.wikipedia.org/wiki/Horizon

Azimuth Precise solution: Short distance aproximation: tan 𝛼= sin 𝑙𝑜𝑛 𝑇 − 𝑙𝑜𝑛 𝑃 tan 𝑙𝑎𝑡 𝑇 cos 𝑙𝑎𝑡 𝑃 − sin 𝑙𝑎𝑡 𝑃 cos 𝑙𝑜𝑛 𝑇 − 𝑙𝑜𝑛 𝑃 Precise solution: Short distance aproximation: tan 𝛼= cos 𝑙𝑎𝑡 𝑇 𝑙𝑜𝑛 𝑇 − 𝑙𝑜𝑛 𝑃 𝑙𝑎𝑡 𝑇 − 𝑙𝑎𝑡 𝑃

Altitude Horizontal distance d from .STDistance() Slant distance 𝑑 𝑠 = 𝑑 2 + ℎ 𝑇 − ℎ 𝑃 2 Assume flat geometry plus horizontal dip 𝜑 2 = 𝑑 2𝑅 Altitude for short distances:𝛼′= tan −1 ℎ 𝑇 − ℎ 𝑝 𝑑 − 𝑑 2𝑅

Size Add both radiuses Add sun radius full or partially 𝛿= sin −1 𝑟 𝑇+ 𝑟 𝑃 𝑑 𝑠 +0.25°

Demo 3: Add the turbine(s) Liseberg and Scandic Opalen

Bonus : Astronomy, precise to the second https://en.wikipedia.org/wiki/Position_of_the_Sun https://en.wikipedia.org/wiki/Equation_of_time

Primary sponsors

The others… 2016-08-27 Gothenburg, Sweden

Don’t miss Evaluations The Raffle