atmospheric 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.adoc +8 -1
- data/lib/atmospheric/export/iso_25331975/group_base.rb +7 -7
- data/lib/atmospheric/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37087fb5667af4c541517e07eafbfbea33358817fde87449127f6fec169ddca5
|
4
|
+
data.tar.gz: 5b1c7bbf20d5b62e1dffa40051290901b5a32c51a11675c2a8e29c2d73b0059c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
"
|
28
|
-
"
|
29
|
-
"
|
30
|
-
"
|
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..
|
47
|
-
(32000..
|
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|
|
data/lib/atmospheric/version.rb
CHANGED