atmospheric 0.3.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +4 -1
- data/lib/atmospheric/export/iso_25332024.rb +4 -0
- data/lib/atmospheric/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff04fca9f0e2b8073be7d74f58132e49097b004da8a467f4edc4ce67c7010175
|
4
|
+
data.tar.gz: a9693609f11f56541e6c3e69de7f3a5e89ece4b1b2278b87323c595566a82b7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bab58f7b049a27c5f8c114f0dcdf99d661e2b9be95ea8c05ff270a156272350591912080ec0b16589f881cea3185376fc05acef5c81bd5247e976c6238425b67
|
7
|
+
data.tar.gz: 73de8de20ab781b18cd5460ce77eabcfff37eefad83aca2736bc2389cdf25e0ba61a3dab09ab3665d7c34adc7c149714ec16b4386a345736b5d2a54a553eca6d
|
data/README.adoc
CHANGED
@@ -544,7 +544,7 @@ Atmospheric::Export::Iso25332024.table_10_yaml #=> YAML
|
|
544
544
|
NOTE: This corresponds to ISO 2533:1975/ADD 1:1985 Table 1 combined with Table 2.
|
545
545
|
|
546
546
|
Title:
|
547
|
-
"
|
547
|
+
"_Geometric and geopotential altitude as a function of barometric pressure
|
548
548
|
for 5 <= p < 20 hPa at intervals of 0.01 hPa and
|
549
549
|
20 <= p < 1200 hPa at intervals of 0.1 hPa__"
|
550
550
|
|
@@ -554,6 +554,9 @@ Provides:
|
|
554
554
|
|
555
555
|
* `pressure-mbar`
|
556
556
|
* `geopotential-altitude-m`
|
557
|
+
* `geopotential-altitude-ft`
|
558
|
+
* `geometric-altitude-m`
|
559
|
+
* `geometric-altitude-ft`
|
557
560
|
|
558
561
|
[source,ruby]
|
559
562
|
----
|
@@ -81,10 +81,14 @@ module Atmospheric
|
|
81
81
|
method_name = "geopotential_altitude_from_pressure_#{unit}"
|
82
82
|
gp_h_m = Isa.send(method_name, p)
|
83
83
|
gp_h_ft = m_to_ft(gp_h_m)
|
84
|
+
gm_h_m = Isa.geometric_altitude_from_geopotential(gp_h_m)
|
85
|
+
gm_h_ft = m_to_ft(gm_h_m)
|
84
86
|
{
|
85
87
|
"pressure-#{unit}" => p,
|
86
88
|
"geopotential-altitude-m" => gp_h_m.round(1),
|
87
89
|
"geopotential-altitude-ft" => gp_h_ft.round,
|
90
|
+
"geometric-altitude-m" => gm_h_m.round(1),
|
91
|
+
"geometric-altitude-ft" => gm_h_ft.round,
|
88
92
|
}
|
89
93
|
end
|
90
94
|
end
|
data/lib/atmospheric/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: atmospheric
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: measured
|