File: altitude.html

package info (click to toggle)
harp 1.5%2Bdata-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 54,032 kB
  • sloc: xml: 286,510; ansic: 143,710; yacc: 1,910; python: 913; makefile: 600; lex: 574; sh: 69
file content (626 lines) | stat: -rw-r--r-- 27,950 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626


<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
  <meta charset="utf-8">
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title>altitude derivations &mdash; HARP 1.5 documentation</title>
  

  
  
  
  

  

  
  
    

  

  <link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../_static/custom.css" type="text/css" />
    <link rel="index" title="Index" href="../../genindex.html" />
    <link rel="next" title="altitude bounds derivations" href="altitude_bounds.html" />
    <link rel="prev" title="aerosol optical depth derivations" href="aerosol_optical_depth.html" /> 

  
  <script src="../../_static/js/modernizr.min.js"></script>

</head>

<body class="wy-body-for-nav">

   
  <div class="wy-grid-for-nav">

    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search">
          

          
            <a href="../../index.html" class="icon icon-home"> HARP
          

          
          </a>

          
            
            
              <div class="version">
                1.5
              </div>
            
          

          

          
        </div>

        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../../install.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../conventions/index.html">Conventions</a></li>
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">Algorithms</a><ul class="current">
<li class="toctree-l2"><a class="reference internal" href="../definitions.html">Definitions</a></li>
<li class="toctree-l2"><a class="reference internal" href="../formula.html">Common formula</a></li>
<li class="toctree-l2 current"><a class="reference internal" href="../index.html#variable-conversions">Variable Conversions</a><ul class="current">
<li class="toctree-l3"><a class="reference internal" href="../common.html">common derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="aerosol_extinction_coefficient.html">aerosol extinction coefficient derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="aerosol_optical_depth.html">aerosol optical depth derivations</a></li>
<li class="toctree-l3 current"><a class="current reference internal" href="#">altitude derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="altitude_bounds.html">altitude bounds derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="cloud_height.html">cloud height derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="column_mass_density.html">column mass density derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="column_mass_mixing_ratio.html">column mass mixing ratio derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="column_number_density.html">column number density derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="column_number_density_avk.html">column number density averaging kernel derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="column_volume_mixing_ratio.html">column volume mixing ratio derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="datetime.html">datetime derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="datetime_length.html">datetime length derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="datetime_start.html">datetime start derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="datetime_stop.html">datetime stop derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="degrees_of_freedom_for_signal.html">degrees of freedom for signal</a></li>
<li class="toctree-l3"><a class="reference internal" href="frequency.html">frequency derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="geopotential.html">geopotential derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="geopotential_height.html">geopotential height derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="latitude.html">latitude derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="latitude_bounds.html">latitude bounds derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="longitude.html">longitude derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="longitude_bounds.html">longitude bounds derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="mass_density.html">mass density derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="mass_mixing_ratio.html">mass mixing ratio derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="molar_mass.html">molar mass derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="number_density.html">number density derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="number_density_avk.html">number density averaging kernel derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="partial_pressure.html">partial pressure derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="pressure.html">pressure derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="pressure_bounds.html">pressure bounds derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="relative_azimuth_angle.html">relative azimuth angle derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="relative_humidity.html">relative humidity derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="scattering_angle.html">scattering angle derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="sensor_azimuth_angle.html">sensor azimuth angle derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="sensor_elevation_angle.html">sensor elevation angle derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="sensor_zenith_angle.html">sensor zenith angle derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="solar_azimuth_angle.html">solar azimuth angle derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="solar_declination_angle.html">solar declination angle derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="solar_elevation_angle.html">solar elevation angle derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="solar_hour_angle.html">solar hour angle derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="solar_zenith_angle.html">solar zenith angle derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="temperature.html">temperature derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="viewing_azimuth_angle.html">viewing azimuth angle derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="viewing_elevation_angle.html">viewing elevation angle derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="viewing_zenith_angle.html">viewing zenith angle derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="virtual_temperature.html">virtual temperature derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="volume_mixing_ratio.html">volume mixing ratio derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="volume_mixing_ratio_avk.html">volume mixing ratio averaging kernel derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="wavelength.html">wavelength derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="wavenumber.html">wavenumber derivations</a></li>
<li class="toctree-l3"><a class="reference internal" href="wind_velocity.html">wind velocity derivations</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../../operations.html">Operations</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../ingestions/index.html">Ingestion definitions</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../libharp.html">C library</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../idl.html">IDL interface</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../matlab.html">MATLAB interface</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../python.html">Python interface</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../tools.html">Command line tools</a></li>
</ul>

            
          
        </div>
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../index.html">HARP</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../../index.html">Docs</a> &raquo;</li>
        
          <li><a href="../index.html">Algorithms</a> &raquo;</li>
        
      <li>altitude derivations</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
            
        
      </li>
    
  </ul>

  
  <hr/>
</div>
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
  <div class="section" id="altitude-derivations">
<h1>altitude derivations</h1>
<ol class="arabic">
<li><p class="first">altitude from geopotential height</p>
<table border="1" class="docutils">
<colgroup>
<col width="19%" />
<col width="31%" />
<col width="23%" />
<col width="27%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">symbol</th>
<th class="head">description</th>
<th class="head">unit</th>
<th class="head">variable name</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="math notranslate nohighlight">\(g_{0}\)</span></td>
<td>mean earth gravity</td>
<td><span class="math notranslate nohighlight">\(\frac{m}{s^2}\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(g_{wgs84}\)</span></td>
<td>gravity at WGS84 ellipsoid</td>
<td><span class="math notranslate nohighlight">\(\frac{m}{s^2}\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-even"><td><span class="math notranslate nohighlight">\(R_{wgs84}\)</span></td>
<td>local earth curvature radius
at WGS84 ellipsoid</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(z\)</span></td>
<td>altitude</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td><cite>altitude {:}</cite></td>
</tr>
<tr class="row-even"><td><span class="math notranslate nohighlight">\(z_{g}\)</span></td>
<td>geopotential height</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td><cite>geopotential_height {:}</cite></td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(\phi\)</span></td>
<td>latitude</td>
<td><span class="math notranslate nohighlight">\(degN\)</span></td>
<td><cite>latitude {:}</cite></td>
</tr>
</tbody>
</table>
<p>The pattern <cite>:</cite> for the dimensions can represent <cite>{vertical}</cite>, <cite>{time}</cite>, <cite>{time,vertical}</cite>, or no dimensions at all.</p>
<p>This equation approximates the mean sea level gravity and radius by that of the reference ellipsoid.</p>
<div class="math notranslate nohighlight">
\begin{eqnarray}
   g_{wgs84} &amp; = &amp; 9.7803253359 \frac{1 + 0.00193185265241{\sin}^2(\frac{\pi}{180}\phi)}
      {\sqrt{1 - 0.00669437999013{\sin}^2(\frac{\pi}{180}\phi)}} \\
   R_{wgs84} &amp; = &amp; \frac{1}{\sqrt{\left(\frac{\cos(\frac{\pi}{180}\phi)}{6356752.0}\right)^2 +
      \left(\frac{\sin(\frac{\pi}{180}\phi)}{6378137.0}\right)^2}} \\
   z &amp; = &amp; \frac{g_{0}R_{wgs84}z_{g}}{g_{wgs84}R_{wgs84} - g_{0}z_{g}}
\end{eqnarray}</div></li>
<li><p class="first">altitude from bounds</p>
<table border="1" class="docutils">
<colgroup>
<col width="18%" />
<col width="47%" />
<col width="10%" />
<col width="25%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">symbol</th>
<th class="head">description</th>
<th class="head">unit</th>
<th class="head">variable name</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="math notranslate nohighlight">\(z\)</span></td>
<td>altitude</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td><cite>altitude {:}</cite></td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(z^{B}(l)\)</span></td>
<td>altitude boundaries (<span class="math notranslate nohighlight">\(l \in \{1,2\}\)</span>)</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td><cite>altitude_bounds {:,2}</cite></td>
</tr>
</tbody>
</table>
<p>The pattern <cite>:</cite> for the dimensions can represent <cite>{vertical}</cite>, or <cite>{time,vertical}</cite>.</p>
<div class="math notranslate nohighlight">
\[z = \frac{z^{B}(2) + z^{B}(1)}{2}\]</div>
</li>
<li><p class="first">altitude from sensor altitude</p>
<table border="1" class="docutils">
<colgroup>
<col width="25%" />
<col width="32%" />
<col width="13%" />
<col width="30%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">symbol</th>
<th class="head">description</th>
<th class="head">unit</th>
<th class="head">variable name</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="math notranslate nohighlight">\(z\)</span></td>
<td>altitude</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td><cite>altitude {:}</cite></td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(z_{instr}\)</span></td>
<td>altitude of the sensor</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td><cite>sensor_altitude {:}</cite></td>
</tr>
</tbody>
</table>
<p>The pattern <cite>:</cite> for the dimensions can represent <cite>{time}</cite>, or no dimensions at all.</p>
<div class="math notranslate nohighlight">
\[z = z_{instr}\]</div>
</li>
<li><p class="first">altitude from pressure</p>
<table border="1" class="docutils">
<colgroup>
<col width="17%" />
<col width="27%" />
<col width="31%" />
<col width="25%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">symbol</th>
<th class="head">description</th>
<th class="head">unit</th>
<th class="head">variable name</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="math notranslate nohighlight">\(a\)</span></td>
<td>WGS84 semi-major axis</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(b\)</span></td>
<td>WGS84 semi-minor axis</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-even"><td><span class="math notranslate nohighlight">\(f\)</span></td>
<td>WGS84 flattening</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(g\)</span></td>
<td>gravity</td>
<td><span class="math notranslate nohighlight">\(\frac{m}{s^2}\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-even"><td><span class="math notranslate nohighlight">\(g_{0}\)</span></td>
<td>mean earth gravity</td>
<td><span class="math notranslate nohighlight">\(\frac{m}{s^2}\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(g_{surf}\)</span></td>
<td>gravity at surface</td>
<td><span class="math notranslate nohighlight">\(\frac{m}{s^2}\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-even"><td><span class="math notranslate nohighlight">\(GM\)</span></td>
<td>WGS84 earth’s gravitational
constant</td>
<td><span class="math notranslate nohighlight">\(\frac{m^3}{s^2}\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(M_{air}(i)\)</span></td>
<td>molar mass of total air</td>
<td><span class="math notranslate nohighlight">\(\frac{g}{mol}\)</span></td>
<td><cite>molar_mass {:,vertical}</cite></td>
</tr>
<tr class="row-even"><td><span class="math notranslate nohighlight">\(p(i)\)</span></td>
<td>pressure</td>
<td><span class="math notranslate nohighlight">\(Pa\)</span></td>
<td><cite>pressure {:,vertical}</cite></td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(p_{surf}\)</span></td>
<td>surface pressure</td>
<td><span class="math notranslate nohighlight">\(Pa\)</span></td>
<td><cite>surface_pressure {:}</cite></td>
</tr>
<tr class="row-even"><td><span class="math notranslate nohighlight">\(R\)</span></td>
<td>universal gas constant</td>
<td><span class="math notranslate nohighlight">\(\frac{kg m^2}{K mol s^2}\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(T(i)\)</span></td>
<td>temperature</td>
<td><span class="math notranslate nohighlight">\(K\)</span></td>
<td><cite>temperature {:,vertical}</cite></td>
</tr>
<tr class="row-even"><td><span class="math notranslate nohighlight">\(z(i)\)</span></td>
<td>altitude</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td><cite>altitude {:,vertical}</cite></td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(z_{surf}\)</span></td>
<td>surface height</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td><cite>surface_altitude {:}</cite></td>
</tr>
<tr class="row-even"><td><span class="math notranslate nohighlight">\(\phi\)</span></td>
<td>latitude</td>
<td><span class="math notranslate nohighlight">\(degN\)</span></td>
<td><cite>latitude {:}</cite></td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(\omega\)</span></td>
<td>WGS84 earth angular velocity</td>
<td><span class="math notranslate nohighlight">\(rad/s\)</span></td>
<td>&#160;</td>
</tr>
</tbody>
</table>
<p>The pattern <cite>:</cite> for the dimensions can represent <cite>{latitude,longitude}</cite>, <cite>{time}</cite>, <cite>{time,latitude,longitude}</cite>,
or no dimensions at all.</p>
<p>The surface pressure <span class="math notranslate nohighlight">\(p_{surf}\)</span> and surface height <span class="math notranslate nohighlight">\(z_{surf}\)</span> need to use the same definition of ‘surface’.</p>
<p>The pressures <span class="math notranslate nohighlight">\(p(i)\)</span> are expected to be at higher levels than the surface pressure (i.e. lower values).
This should normally be the case since even for pressure grids that start at the surface, <span class="math notranslate nohighlight">\(p_{surf}\)</span> should
equal the lower pressure boundary <span class="math notranslate nohighlight">\(p^{B}(1,1)\)</span>, whereas <span class="math notranslate nohighlight">\(p(1)\)</span> should then be between <span class="math notranslate nohighlight">\(p^{B}(1,1)\)</span>
and <span class="math notranslate nohighlight">\(p^{B}(1,2)\)</span> (which is generally not equal to <span class="math notranslate nohighlight">\(p^{B}(1,1)\)</span>).</p>
<div class="math notranslate nohighlight">
\begin{eqnarray}
   g_{surf} &amp; = &amp; 9.7803253359 \frac{1 + 0.00193185265241{\sin}^2(\frac{\pi}{180}\phi)}
      {\sqrt{1 - 0.00669437999013 {\sin}^2(\frac{\pi}{180}\phi)}} \\
   m &amp; = &amp; \frac{\omega^2a^2b}{GM} \\
   g(1) &amp; = &amp; g_{surf} \left(1 - \frac{2}{a}\left(1+f+m-2f{\sin}^2(\frac{\pi}{180}\phi)\right)z_{surf} + \frac{3}{a^2}z_{surf}^2\right) \\
   g(i) &amp; = &amp; g_{surf} \left(1 - \frac{2}{a}\left(1+f+m-2f{\sin}^2(\frac{\pi}{180}\phi)\right)z(i-1) + \frac{3}{a^2}z(i-1)^2\right), 1 &lt; i \leq N \\
   z(1) &amp; = &amp; z_{surf} + 10^{3}\frac{T(1)}{M_{air}(1)}\frac{R}{g(1)}\ln\left(\frac{p_{surf}}{p(i)}\right) \\
   z(i) &amp; = &amp; z(i-1) + 10^{3}\frac{T(i-1)+T(i)}{M_{air}(i-1)+M_{air}(i)}\frac{R}{g(i)}\ln\left(\frac{p(i-1)}{p(i)}\right), 1 &lt; i \leq N
\end{eqnarray}</div></li>
<li><p class="first">surface altitude from surface geopotential height</p>
<table border="1" class="docutils">
<colgroup>
<col width="18%" />
<col width="28%" />
<col width="21%" />
<col width="33%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">symbol</th>
<th class="head">description</th>
<th class="head">unit</th>
<th class="head">variable name</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="math notranslate nohighlight">\(g_{0}\)</span></td>
<td>mean earth gravity</td>
<td><span class="math notranslate nohighlight">\(\frac{m}{s^2}\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(g_{wgs84}\)</span></td>
<td>gravity at WGS84 ellipsoid</td>
<td><span class="math notranslate nohighlight">\(\frac{m}{s^2}\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-even"><td><span class="math notranslate nohighlight">\(R_{wgs84}\)</span></td>
<td>local earth curvature radius
at WGS84 ellipsoid</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td>&#160;</td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(z_{surf}\)</span></td>
<td>surface altitude
(relative to mean sea level)</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td><cite>surface_altitude {:}</cite></td>
</tr>
<tr class="row-even"><td><span class="math notranslate nohighlight">\(z_{g,surf}\)</span></td>
<td>surface geopotential height
(relative to mean sea level)</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td><cite>surface_geopotential_height {:}</cite></td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(\phi\)</span></td>
<td>latitude</td>
<td><span class="math notranslate nohighlight">\(degN\)</span></td>
<td><cite>latitude {:}</cite></td>
</tr>
</tbody>
</table>
<p>The pattern <cite>:</cite> for the dimensions can represent <cite>{latitude,longitude}</cite>, <cite>{time}</cite>, <cite>{time,latitude,longitude}</cite>,
or no dimensions at all.</p>
<p>This equation approximates the mean sea level gravity and radius by that of the reference ellipsoid.</p>
<div class="math notranslate nohighlight">
\begin{eqnarray}
   g_{wgs84} &amp; = &amp; 9.7803253359 \frac{1 + 0.00193185265241{\sin}^2(\frac{\pi}{180}\phi)}
      {\sqrt{1 - 0.00669437999013{\sin}^2(\frac{\pi}{180}\phi)}} \\
   R_{wgs84} &amp; = &amp; \frac{1}{\sqrt{\left(\frac{\cos(\frac{\pi}{180}\phi)}{6356752.0}\right)^2 +
      \left(\frac{\sin(\frac{\pi}{180}\phi)}{6378137.0}\right)^2}} \\
   z_{surf} &amp; = &amp; \frac{g_{0}R_{wgs84}z_{g,surf}}{g_{wgs84}R_{wgs84} - g_{0}z_{g,surf}}
\end{eqnarray}</div></li>
<li><p class="first">tropopause altitude from temperature and altitude/pressure</p>
<table border="1" class="docutils">
<colgroup>
<col width="20%" />
<col width="28%" />
<col width="14%" />
<col width="38%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">symbol</th>
<th class="head">description</th>
<th class="head">unit</th>
<th class="head">variable name</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><span class="math notranslate nohighlight">\(p(i)\)</span></td>
<td>pressure</td>
<td><span class="math notranslate nohighlight">\(Pa\)</span></td>
<td><cite>pressure {:,vertical}</cite></td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(T(i)\)</span></td>
<td>temperature</td>
<td><span class="math notranslate nohighlight">\(K\)</span></td>
<td><cite>temperature {:,vertical}</cite></td>
</tr>
<tr class="row-even"><td><span class="math notranslate nohighlight">\(z(i)\)</span></td>
<td>altitude</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td><cite>altitude {:,vertical}</cite></td>
</tr>
<tr class="row-odd"><td><span class="math notranslate nohighlight">\(z_{TP}\)</span></td>
<td>tropopause altitude</td>
<td><span class="math notranslate nohighlight">\(m\)</span></td>
<td><cite>tropopause_altitude {:}</cite></td>
</tr>
</tbody>
</table>
<p>The pattern <cite>:</cite> for the dimensions can represent <cite>{latitude,longitude}</cite>, <cite>{time}</cite>, <cite>{time,latitude,longitude}</cite>,
or no dimensions at all.</p>
<p>The tropopause altitude <span class="math notranslate nohighlight">\(z_{TP}\)</span> equals the altitude <span class="math notranslate nohighlight">\(z(i)\)</span> where <span class="math notranslate nohighlight">\(i\)</span> is the minimum level that satisfies:</p>
<div class="math notranslate nohighlight">
\begin{eqnarray}
   &amp; 1 &lt; i &lt; N  &amp; \wedge \\
   &amp; 5000 &lt;= p(i) &lt;= 50000  &amp; \wedge \\
   &amp; \frac{T(i-1)-T(i)}{z(i)-z(i-1)} &gt; 0.002 \wedge \frac{T(i)-T(i+1)}{z(i+1)-z(i)} &lt;= 0.002 &amp; \wedge \\
   &amp; \forall_{j, i &lt; j &lt;= N \wedge z(j)-z(i) &lt;= 2000} \frac{T(i)-T(j)}{z(j)-z(i)} &lt;= 0.002 &amp;
\end{eqnarray}</div><p>If no such <span class="math notranslate nohighlight">\(i\)</span> can be found then <span class="math notranslate nohighlight">\(z_{TP}\)</span> is set to <cite>NaN</cite>.</p>
</li>
</ol>
</div>


           </div>
           
          </div>
          <footer>
  
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
      
        <a href="altitude_bounds.html" class="btn btn-neutral float-right" title="altitude bounds derivations" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right"></span></a>
      
      
        <a href="aerosol_optical_depth.html" class="btn btn-neutral" title="aerosol optical depth derivations" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left"></span> Previous</a>
      
    </div>
  

  <hr/>

  <div role="contentinfo">
    <p>
        &copy; Copyright 2015-2018 S&amp;T, The Netherlands

    </p>
  </div> 

</footer>

        </div>
      </div>

    </section>

  </div>
  


  

    
    
      <script type="text/javascript" id="documentation_options" data-url_root="../../" src="../../_static/documentation_options.js"></script>
        <script type="text/javascript" src="../../_static/jquery.js"></script>
        <script type="text/javascript" src="../../_static/underscore.js"></script>
        <script type="text/javascript" src="../../_static/doctools.js"></script>
        <script async="async" type="text/javascript" src="/usr/share/javascript/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
    

  

  <script type="text/javascript" src="../../_static/js/theme.js"></script>

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script> 

</body>
</html>