atmospheric 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cf182abde57d7742252da9f6915f59c249f57333de7621099e4b075acef11b0
4
- data.tar.gz: 4ee5305a1d85db54d25f576439b03905bda62d068f2c00208fa3dc1e63e7d8ad
3
+ metadata.gz: 37087fb5667af4c541517e07eafbfbea33358817fde87449127f6fec169ddca5
4
+ data.tar.gz: 5b1c7bbf20d5b62e1dffa40051290901b5a32c51a11675c2a8e29c2d73b0059c
5
5
  SHA512:
6
- metadata.gz: 5030dc98cd819232d7ace9d4771de89146746640977cb4f29a5a0c6f2759abf86117b7d4f52c8f0cdf58c78171997545ac886e114d084c6a625188b20cb2f3f7
7
- data.tar.gz: 250a571ecfc2e526eee7176eabd35a716e9c9e366b7149afad9dbb299056b5af94cbf0f2d89b055808627d2c62b45b5e7ead030b6fba8f2c82d49bfc7d65a687
6
+ metadata.gz: 5db560cb6066be3598a074cdddbb361ba88e72c2ccf609e6f15b32882d27e600ae3ae2d908050f5685fb8b485f5c67a0312e4215c3f4f0e3d7c86ad95bc3aac8
7
+ data.tar.gz: 9086fa6c1208d11f8978aef849c19fa37279b57df39c25819c16640ad0a7c2dbd47e99f0b854f87a987d8a9de46ffe833f9af3aa64a7f065f5b83e89ba9a4b00
data/README.adoc CHANGED
@@ -5,7 +5,8 @@
5
5
  This repository provides Ruby code for calculating values defined in the
6
6
  following documents:
7
7
 
8
- * International Standard Atmosphere (ISA) from ISO 2533:1975
8
+ * International Standard Atmosphere (ISA) from ISO 2533:1975,
9
+ ISO 2533:1975/ADD 1:1985 and ISO 2533:1975/ADD 2:1997
9
10
  * ICAO Standard Atmosphere (ICAO Doc 7488/3, 1994)
10
11
 
11
12
  Which are technically identical documents but different in presentation and
@@ -67,6 +68,12 @@ Tables 5 to 7 all have height information of the following keys in the hash:
67
68
  * `geometrical-altitude-m`
68
69
  * `geometrical-altitude-ft`
69
70
 
71
+ All YAML tables generated contain these two keys which group altitude values
72
+ as the ISO 2533 tables are rendered in both types of altitudes:
73
+
74
+ * `by-geopotential-altitude`
75
+ * `by-geometric-altitude`
76
+
70
77
  ==== Table 5
71
78
 
72
79
  Title:
@@ -24,10 +24,10 @@ module Atmospheric
24
24
 
25
25
  def height_hash(hgmm, hgmf, hgpm, hgpf)
26
26
  {
27
- "geopotential-altitude-m" => hgmm,
28
- "geopotential-altitude-ft" => hgmf,
29
- "geometrical-altitude-m" => hgpm.round,
30
- "geometrical-altitude-ft" => hgpf.round,
27
+ "geometrical-altitude-m" => hgmm.round,
28
+ "geometrical-altitude-ft" => hgmf.round,
29
+ "geopotential-altitude-m" => hgpm.round,
30
+ "geopotential-altitude-ft" => hgpf.round,
31
31
  }
32
32
  end
33
33
 
@@ -43,8 +43,8 @@ module Atmospheric
43
43
  # Step 50 from -2k to 40k, step 100 above 32k, 200 above 51k to 80k
44
44
  def steps
45
45
  (
46
- (-2000..31999).step(50) +
47
- (32000..50999).step(100) +
46
+ (-2000..31950).step(50) +
47
+ (32000..50900).step(100) +
48
48
  (51000..80000).step(200)
49
49
  )
50
50
  end
@@ -55,13 +55,13 @@ module Atmospheric
55
55
 
56
56
  def to_h(unit: steps_unit)
57
57
  d = {
58
- "rows-h" => [],
59
- "rows-H" => []
58
+ "by-geometrical-altitude" => [],
59
+ "by-geopotential-altitude" => [],
60
60
  }
61
61
 
62
62
  steps.each do |h|
63
- d["rows-h"] << row_small_h(h, unit: unit)
64
- d["rows-H"] << row_big_h(h, unit: unit)
63
+ d["by-geometrical-altitude"] << row_small_h(h, unit: unit)
64
+ d["by-geopotential-altitude"] << row_big_h(h, unit: unit)
65
65
  end
66
66
  d
67
67
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Atmospheric
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
5
5
  end
@@ -6,7 +6,7 @@ title-ru: Температура (stem:[T] и stem:[t]), давление (stem:
6
6
  note-en: Values in terms of geometrical altitude.
7
7
  note-fr: Valeurs en fonction de l'altitude géométrique.
8
8
  note-ru: Значения величин в функции геометрической высоты.
9
- rows-h:
9
+ by-geometrical-altitude:
10
10
  - geometrical-altitude: -2000
11
11
  geopotential-altitude: -2001
12
12
  temperature-K: 301154
@@ -9151,7 +9151,7 @@ rows-h:
9151
9151
  density: 1.84580e-5
9152
9152
  acceleration: 9.5644
9153
9153
 
9154
- rows-H:
9154
+ by-geopotential-altitude:
9155
9155
  - geopotential-altitude: -2000
9156
9156
  geometrical-altitude: -1999
9157
9157
  temperature-K: 301150
@@ -6,7 +6,7 @@ title-ru: Отношения stem:[p//p_"n"], stem:[rho//rho_"n"] и stem:[sqrt(
6
6
  note-en: Values in terms of geometrical altitude.
7
7
  note-fr: Valeurs en fonction de l'altitude géométrique.
8
8
  note-ru: Значения величин в функции геометрической высоты.
9
- rows-h:
9
+ by-geometrical-altitude:
10
10
  - geometrical-altitude: -2000
11
11
  ppn: 1.26112e+0
12
12
  rhorhon: 1.20666e+0
@@ -9151,7 +9151,7 @@ rows-h:
9151
9151
  kinematic-viscosity: 7.1558e-1
9152
9152
  thermal-conductivity: 1.7987e-2
9153
9153
 
9154
- rows-H:
9154
+ by-geopotential-altitude:
9155
9155
  - geopotential-altitude: -2000
9156
9156
  ppn: 1.26103e+0
9157
9157
  rhorhon: 1.20659e+0
@@ -6,7 +6,7 @@ title-ru: Высота однородной атмосферы (stem:[H_"p"]),
6
6
  note-en: Values in terms of geometrical altitude.
7
7
  note-fr: Valeurs en fonction de l'altitude géométrique.
8
8
  note-ru: Значения величин в функции геометрической высоты.
9
- rows-h:
9
+ by-geometrical-altitude:
10
10
  - geometrical-altitude: -2000
11
11
  pressure-scale-height: 8809.6
12
12
  specific-weight: 1.4505e+1
@@ -8135,7 +8135,7 @@ rows-h:
8135
8135
  frequency: 8.6564e+4
8136
8136
  mean-free-path: 4.4020e-3
8137
8137
 
8138
- rows-H:
8138
+ by-geopotential-altitude:
8139
8139
  - geopotential-altitude: -2000
8140
8140
  pressure-scale-height: 8809.5
8141
8141
  specific-weight: 1.4504e+1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atmospheric
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.