atmospheric 0.2.1 → 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: a79840dc839bcb8bc34dff87457e0438b340ae3f042f622e192c498a58350d6e
4
- data.tar.gz: 9937af10b863a3625ac9220ba0ee5cd9d29e932dba2a535e2840daf484532b3c
3
+ metadata.gz: 37087fb5667af4c541517e07eafbfbea33358817fde87449127f6fec169ddca5
4
+ data.tar.gz: 5b1c7bbf20d5b62e1dffa40051290901b5a32c51a11675c2a8e29c2d73b0059c
5
5
  SHA512:
6
- metadata.gz: '09a8e44dfecea5ff75f7a12430488e6cdb49ad0dd9db87efeb68be1bba2de1b4d1410ee083745e89cfb051d6843f13254069c68ed11ea90c0cb75dcbe4f2f21d'
7
- data.tar.gz: 21c712485bffb13371a9882ad501b64ef8c052ce9ea25c4a9fc7066c88563d9e66bec0f56ef408d357b6d8100c2290d957b977c996c3dcdad4ebde6dc80aa5f2
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.round,
28
- "geopotential-altitude-ft" => hgmf.round,
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
@@ -56,7 +56,7 @@ module Atmospheric
56
56
  def to_h(unit: steps_unit)
57
57
  d = {
58
58
  "by-geometrical-altitude" => [],
59
- "by-geopotential-altitude" => []
59
+ "by-geopotential-altitude" => [],
60
60
  }
61
61
 
62
62
  steps.each do |h|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Atmospheric
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
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.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.