Converting wind data from rotated lat-lon grid

Similar documents
Geometry Notes RIGHT TRIANGLE TRIGONOMETRY

Techniques of Integration

(1.) The air speed of an airplane is 380 km/hr at a bearing of. Find the ground speed of the airplane as well as its

ANALYTICAL METHODS FOR ENGINEERS

5.3 SOLVING TRIGONOMETRIC EQUATIONS. Copyright Cengage Learning. All rights reserved.

Section 6-3 Double-Angle and Half-Angle Identities

Simplification of Sun Tracking Mode to Gain High Concentration Solar Energy

Section 1.1. Introduction to R n

1 TRIGONOMETRY. 1.0 Introduction. 1.1 Sum and product formulae. Objectives

ASSESSSMENT TASK OVERVIEW & PURPOSE:

Algebra. Exponents. Absolute Value. Simplify each of the following as much as possible. 2x y x + y y. xxx 3. x x x xx x. 1. Evaluate 5 and 123

Trigonometry. An easy way to remember trigonometric properties is:

Trigonometry for AC circuits

SAT Subject Math Level 2 Facts & Formulas

4 The Rhumb Line and the Great Circle in Navigation

Week 13 Trigonometric Form of Complex Numbers

Section 5-9 Inverse Trigonometric Functions

PROBLEM 2.9. sin 75 sin 65. R = 665 lb. sin 75 sin 40

Figure 1.1 Vector A and Vector F

Trigonometric Functions: The Unit Circle

Trigonometry Review with the Unit Circle: All the trig. you ll ever need to know in Calculus

Trigonometric Functions and Equations

TRIGONOMETRY Compound & Double angle formulae

Prentice Hall Mathematics: Algebra Correlated to: Utah Core Curriculum for Math, Intermediate Algebra (Secondary)

Higher Education Math Placement

Vector Math Computer Graphics Scott D. Anderson

Area and Arc Length in Polar Coordinates

With the Tan function, you can calculate the angle of a triangle with one corner of 90 degrees, when the smallest sides of the triangle are given:

Exam 1 Sample Question SOLUTIONS. y = 2x

Angles and Quadrants. Angle Relationships and Degree Measurement. Chapter 7: Trigonometry

Find the length of the arc on a circle of radius r intercepted by a central angle θ. Round to two decimal places.

11.1. Objectives. Component Form of a Vector. Component Form of a Vector. Component Form of a Vector. Vectors and the Geometry of Space

Algebra and Geometry Review (61 topics, no due date)

Biggar High School Mathematics Department. National 5 Learning Intentions & Success Criteria: Assessing My Progress

Extra Credit Assignment Lesson plan. The following assignment is optional and can be completed to receive up to 5 points on a previously taken exam.

VECTOR ALGEBRA A quantity that has magnitude as well as direction is called a vector. is given by a and is represented by a.

In mathematics, there are four attainment targets: using and applying mathematics; number and algebra; shape, space and measures, and handling data.

Right Triangles A right triangle, as the one shown in Figure 5, is a triangle that has one angle measuring

GRAPHING IN POLAR COORDINATES SYMMETRY

Trigonometry Hard Problems

Geometry of Vectors. 1 Cartesian Coordinates. Carlo Tomasi

HS Mathematics Item Specification C1 TO

Solutions to Homework 10

FACTORING ANGLE EQUATIONS:

Geometry Notes PERIMETER AND AREA

Thnkwell s Homeschool Precalculus Course Lesson Plan: 36 weeks

South Carolina College- and Career-Ready (SCCCR) Pre-Calculus

y cos 3 x dx y cos 2 x cos x dx y 1 sin 2 x cos x dx

Evaluating trigonometric functions

D.3. Angles and Degree Measure. Review of Trigonometric Functions

New York State Student Learning Objective: Regents Geometry

Section 10.4 Vectors

Calculating Astronomical Unit from Venus Transit

Estimated Pre Calculus Pacing Timeline

Trigonometry LESSON ONE - Degrees and Radians Lesson Notes

TWO-DIMENSIONAL TRANSFORMATION

National 5 Mathematics Course Assessment Specification (C747 75)

PYTHAGOREAN TRIPLES KEITH CONRAD

How to Graph Trigonometric Functions

Geodynamics Lecture 2 Kinematics of plate tectonics

Essential Mathematics for Computer Graphics fast

MATH 132: CALCULUS II SYLLABUS

SIGNAL PROCESSING & SIMULATION NEWSLETTER

Solutions to Exercises, Section 5.1

Week 1 Chapter 1: Fundamentals of Geometry. Week 2 Chapter 1: Fundamentals of Geometry. Week 3 Chapter 1: Fundamentals of Geometry Chapter 1 Test

*X100/12/02* X100/12/02. MATHEMATICS HIGHER Paper 1 (Non-calculator) MONDAY, 21 MAY 1.00 PM 2.30 PM NATIONAL QUALIFICATIONS 2012

Parallel and Perpendicular. We show a small box in one of the angles to show that the lines are perpendicular.

9 Right Triangle Trigonometry

MAC Learning Objectives. Module 10. Polar Form of Complex Numbers. There are two major topics in this module:

Trigonometric Functions and Triangles

Unit 6 Trigonometric Identities, Equations, and Applications

TRIGONOMETRY FOR ANIMATION

Pre Calculus Math 40S: Explained!

Georgia Department of Education Kathy Cox, State Superintendent of Schools 7/19/2005 All Rights Reserved 1

Friday, January 29, :15 a.m. to 12:15 p.m., only

The Deadly Sins of Algebra

Dear Accelerated Pre-Calculus Student:

General Formula for On-Axis Sun-Tracking System

Vector Algebra II: Scalar and Vector Products

How To Solve The Pythagorean Triangle

2312 test 2 Fall 2010 Form B

Geometry Enduring Understandings Students will understand 1. that all circles are similar.

Precalculus REVERSE CORRELATION. Content Expectations for. Precalculus. Michigan CONTENT EXPECTATIONS FOR PRECALCULUS CHAPTER/LESSON TITLES

Big Ideas in Mathematics

Introduction to Structural Mechanics 1-1 Introduction

Plotting and Adjusting Your Course: Using Vectors and Trigonometry in Navigation

LS.6 Solution Matrices

Semester 2, Unit 4: Activity 21

Core Maths C3. Revision Notes

alternate interior angles

MILS and MOA A Guide to understanding what they are and How to derive the Range Estimation Equations

ALGEBRA 2/TRIGONOMETRY

X On record with the USOE.

Geometry. Higher Mathematics Courses 69. Geometry

Math Placement Test Practice Problems

Definition of derivative

10 Polar Coordinates, Parametric Equations

PLANE TRUSSES. Definitions

Practice Final Math 122 Spring 12 Instructor: Jeff Lang

Transcription:

Converting wind data from rotated lat-lon grid Carsten Hansen, Farvandsvæsenet Copenhagen, 16 march 2001 1 Figure 1: A Hirlam Grid Hirlam output data are in a rotated lat-lon grid The Hirlam grid is typically defined on a rotated latitude-longitude coordinate system. In the present note I will explain what this means, and write down the algebra to convert from geographical coordinates (also called regular lat-lon coordinates) to rotated coordinates. I will also show how to rotate a horizontal vector such as the wind. However, it is not the aim of this note to discuss handling of the Hirlam forcing fields in general. Normally the equator of the rotated system is plased somewhere along the middle of grid. When the people at the meteorological institutes give us the data they tell us that "Origo of the Hirlam grid is at longitude α R0 and latitude φ RO. Longitude increment is dx and latitude increment is dy. There are nx grid points in longitude direction and ny grid points 1 The correctness of all formulas, especially Eqs. SA r to CB r has not been verified yet

in latitudes. The sequence of binary data are written to the file in this and this order along the grid points." This information defines the grid points within the rotated system, and some of the information is written to inventory sections of the data files (except for the counting order of data in the files - you must find this information elsewhere). So, if we know the coordinates of a point in the rotated system (e.g. point P α R φ R of Fig. 1), we can identify near-by grid points by their coordinates and find their field values in the data file. However, we usually only know the point P as a geographic position λ φ. In order to calculate the coordinates of P in the rotated system, we must know orientation of the rotated reference system. The data file inventory provides this information expressed as the position of the south pole of the rotated system λ S φ S. We also want to rotate horizontal vectors such as the wind. For this we need to calculate the meridional convergence at our position P. The convergence is defined as the local angle β from the regular meridian through the point P to the rotated meridian at P. The spherical geometry is illustrated in Fig. 2. By convension longitudes α R of the rotated system has origo at the common meridian that intersects the south poles of both the rotated and the regular system. If we apply the same convension to the regular lat-lon system, the algebra becomes simpler. In our detailed threatment of the spherical trigonometry we will shift origo to λ S, and use a longitude parameter α λ λ S. Figure 2: Regular and rotated spherical coordinate systems. The Equator is EQ, South Pole SP and North Pole NP. Parameters of the rotated system have index R. 2

The conversion formulas Here we provide an overview of the formulas 2 for conversion between the regular and the rotated lat-lon coordinate systems. Formulas are given for a) Locate point P in the rotated coordinate system, b) Find regular orientation of a vector known in the rotated coordinate system (such as wind direction), c) Convert a position known in rotated coordinates to regular coordinates. a) Locate a point P in the rotated coordinate system Our position P has geographic longitude,latitude coordinates λ φ. To derive the rotated longitude coordinate λ R we first calculate the right-hand sides of the equations sinλ R cosφ R sin λ λ S cosφ SA cosλ R cosφ R cosφ S sinφ sinφ S cosφ cos λ λ S CA There is no need to calculate φ R in order to get λ R. For positive CA it is simply the principal value of the arc tangent of SA CA, and for negative CA it is the arc tangent shifted plus/minus π. Strictly, Arctan SA CA for the case CA 0 λ R Arctan SA CA π for CA 0 and SA 0 Arctan SA CA π for CA 0 and SA 0 π 2 for CA 0 and SA 0 π 2 for CA 0 and SA 0 In standard programming languages this is expressed shortly by using the function atan2: λ R atan2 SA CA ; (1) To derive the rotated latitude coordinate φ R we calculate the right-hand side of and then get φ R as the arc sinus sinφ R sinφ S sinφ cosφ S cosφ cos λ λ S SL φ R Arcsin SL (2) There is no need of multiple cases here since φ R belongs to the interval π 2 π 2. b) Map a vector from rotated to regular coordinate system The direction of a vector (such as wind direction) at P must be shifted by the angle β between the rotated meridian and the regular meridian through P (Fig. 2). Note that there is always an 2 It should be noted that there are other ways to do the rotation. For example you may transform to a Cartesian system and rotate that system. 3

ambiguity in how individual persons interprete the sign of such angles. All I can say is that the sign of β used here is positive in the direction shown in Fig. 2. β is derived from the formulas sinβ cosφ R sin λ λ S cosφ S SB cosβ cosφ R sinφ S cosφ cosφ S sinφ cos λ λ S CB Expressed in the programming language function atan2 we have β atan2 SB CB (3) c) Map a position from rotated to regular coordinates The transformations above may be reversed, using virtually the same equations. However, interchanging the symbols for rotated and regular coordinates is not quite straightforeward. The regular south pole has the coordinates (180,φ S ) relative to the rotated system. This means that on the left hand sides of the equations SA and CA λ R is exchanged with λ λ S 180. On the right hand sides of all equations SA to CB λ λ S is exchanged with λ R 180. The reverse equations corresponding to Eqs. SA to CB are then (with index r meaning reverse - from rotated to regular ) sin λ λ S cosφ sinλ R cosφ R SA r cos λ λ S cosφ cosφ S sinφ R sinφ S cosφ R cosλ R CA r sinφ sinφ S sinφ R cosφ S cosφ R cosλ R SL r sinβ cosφ sinλ R cosφ S SB r cosβ cosφ sinφ S cosφ R cosφ S sinφ R cosλ R CB r Trigonometry on spherical triangles We will derive Eqs. SA to CB from spherical trigonometry. Figure 3 a) shows a spherical triangle wich has corners at the two south poles and at the point of interest P. The angles at the corners are α, β as defined above. The third angle is The arc angles of the sides are foun with the aid of Fig. 2: γ 180 α R (4) a φ R 90 b φ S 90 c φ 90 (5) Figure 3 b) shows two triangles. They have one common side connecting P and the origo of the rotated system, and their third corner is respectively the regular South Pole, and the rightangled projection of P on the rotated Equator. Two new side lengths are introduced, a 2 is to be eliminated between trigonometric relations of the two triangles b 2 φ S 180 (6) 4

Figure 3 a): Spherical triangles Figure 3 b) In terms of the parameters of Fig. 3 a) we have, from the Law of Sines: and from the Law of Cosines: For Fig. 3 b) we have from the Law of Cosines: for the two triangles respectively. sinβ sina sinbsinα (7) sinγ sina sincsinα (8) cosa cosb cosc sinb sinc cosα (9) cosβ cosα cosγ sinα sinγ cosb (10) cosa 2 cosb 2 cosc sinb 2 sinc cosα (11) cosa 2 cosα R cosφ R (12) Equation (10) is multiplied by sina, and the factor sinγ sina is then eliminated by use of Eq. (8). We then have cosβ sina cosα cosγ sina sin 2 α sinc cosb (13) 5

Now rewrite the equations in terms of the lat-lon coordinates of Eqs. (4) to (6). We find that Eq. SL corresponds to Eq. (9), Eq. SA corresponds to Eq. (8), and Eq. SB corresponds to Eq. (7). Eq. CA is the equality between right sides of Eqs. (11) and (12). To obtain Eq. CB we will do a little algebra. Substitution of Eqs. (4) to (6) in Eq. (13) yields cosβ cosφ R cosα cosα R cosφ R sin 2 α cosφ sinφ S By substitution of Eq. CA we see that this is equal to which reduces to Eq. CB. cosβ cosφ R cosα cosφ S sinφ sinφ S cosφ sin 2 α cos 2 α 6