atmospheric 0.4.4 → 0.4.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7fee8e85ad0a5ae8332b352e8e95098e33f3f0235032e1fbe34273a9b14db058
4
- data.tar.gz: 7f5b0d515d007ca5c3cf7c4581312265e1c0c01ddd0e4bac1fa9b8f22a05322f
3
+ metadata.gz: 9b084338a6346bc02e4440ef14304456ae2f2b3fa14a0a1bbd1d332683cdb0a9
4
+ data.tar.gz: 8eebfa7a90b447d868eb1fe2bf689aa2a957799a884ef3899181cfe6e4b794d1
5
5
  SHA512:
6
- metadata.gz: 2bdb5af2f4c861774e283903e3fef5242614eebd4ef30873e7c8df09cd2c6d4fb4486bf79bc2a4e1cc008acf77769c49cf03a0eaf00989fec013fee71dd91d28
7
- data.tar.gz: 4b647397cf70c2fd211670e2f5d4dd35c6e3be1624d4f3373da7c015581971a00d8ed82d291c139a5b2f691299297af92cc2d54f31a41a0bf21baf78c23e7c08
6
+ metadata.gz: 5162c59105d0eea75bae5f513d857aa0a0c245c7b857835e7f3a94c07b00e0ba6beaac986b44540c3c081d01ce44307b57be4dd5e7549ed8906254a61e6544f5
7
+ data.tar.gz: 7792ae4d76eb57082bebafa2167844d3977805b964bcd2c3839ac9df180b1102bf2e38c08a07d45b62778fb545f815bc67f0127bdd5ae12c56a08771454ceb92
data/README.adoc CHANGED
@@ -75,18 +75,27 @@ require 'atmospheric'
75
75
  Atmospheric::Export::AltitudeAttrs.new.set_altitude(
76
76
  value: {altitude-value} <1>
77
77
  type: {altitude-type} <2>
78
- unit: {altitude-unit} <3>
78
+ unit: {altitude-unit} <3>,
79
+ precision: {precision-mode} <4>
79
80
  )
80
81
  ----
81
82
  <1> Value of the altitude desired. Integer.
82
83
  <2> Type of altitude. Symbol. One of `:geometric`, `:geopotential`.
83
84
  <3> Unit of the altitude. Symbol. One of `:meters`, `:feet`.
84
-
85
- NOTE: The `set_altitude` method does not yet support high-precision mode.
85
+ <4> Precision mode. Symbol. One of `:normal`, `:high`, `:reduced`. Default is `:normal`.
86
86
 
87
87
  Each attribute of the `AltitudeAttrs` object is wrapped in a defined
88
88
  data class which is associated with a https://www.unitsml.org/[UnitsML] unit.
89
89
 
90
+ Behavior of the precision mode:
91
+
92
+ `:reduced`:: (default) Uses Isa::NormalPrecision for calculations with signficant digits
93
+ rounding according to the original ISO 2533 specification.
94
+
95
+ `:normal`:: Uses Isa::NormalPrecision for calculations without value modification.
96
+
97
+ `:high`:: Uses Isa::HighPrecision for calculations without value modifications. This mode uses BigDecimal.
98
+
90
99
  Depending on the type of the value, it is in one of the following classes:
91
100
 
92
101
  * Integer. Class: `UnitValueInteger`
@@ -303,8 +312,9 @@ Syntax:
303
312
  require 'atmospheric'
304
313
 
305
314
  Atmospheric::Export::PressureAttrs.new.set_pressure(
306
- value: {pressure-value} <1>
307
- unit: {pressure-unit} <2>
315
+ value: {pressure-value}, <1>
316
+ unit: {pressure-unit}, <2>
317
+ precision: {precision-mode} <3>
308
318
  )
309
319
  ----
310
320
  <1> Value of the pressure desired. Float.
@@ -312,6 +322,15 @@ Atmospheric::Export::PressureAttrs.new.set_pressure(
312
322
 
313
323
  NOTE: The `set_pressure` method does not yet support high-precision mode.
314
324
 
325
+ Behavior of the precision mode:
326
+
327
+ `:reduced`:: (default) Uses Isa::NormalPrecision for calculations with signficant digits
328
+ rounding according to the original ISO 2533/ADD 2 specification.
329
+
330
+ `:normal`:: Uses Isa::NormalPrecision for calculations without value modification.
331
+
332
+ `:high`:: Uses Isa::HighPrecision for calculations without value modifications. This mode uses BigDecimal.
333
+
315
334
  Each attribute of the `PressureAttrs` object is wrapped in a defined
316
335
  data class which is associated with a https://www.unitsml.org/[UnitsML] unit.
317
336
 
@@ -949,8 +968,13 @@ is a `PressureAttrs` object. It follows this step schedule:
949
968
  ====
950
969
  [source,ruby]
951
970
  ----
971
+ # Defaults to precision mode `:reduced`
952
972
  Atmospheric::Export::Iso25332025.table_atmosphere_meters #=> Lutaml::Model
953
973
  Atmospheric::Export::Iso25332025.table_atmosphere_meters.to_yaml #=> YAML
974
+
975
+ # To use precision mode `:high`
976
+ x = Atmospheric::Export::Iso25332025.table_atmosphere_meters(precision: :high)
977
+ x.to_yaml #=> YAML
954
978
  ----
955
979
  ====
956
980
 
@@ -1069,8 +1093,13 @@ Provides:
1069
1093
 
1070
1094
  [source,ruby]
1071
1095
  ----
1096
+ # Defaults to precision mode `:reduced`
1072
1097
  Atmospheric::Export::Iso25332025.table_hypsometrical_mbar #=> Lutaml::Model
1073
1098
  Atmospheric::Export::Iso25332025.table_hypsometrical_mbar.to_yaml #=> YAML
1099
+
1100
+ # To use precision mode `:high`
1101
+ x = Atmospheric::Export::Iso25332025.table_hypsometrical_mbar(precision: :high)
1102
+ x.to_yaml #=> YAML
1074
1103
  ----
1075
1104
 
1076
1105
 
@@ -33,6 +33,7 @@ module Atmospheric
33
33
  attribute :mean_speed, UnitValueFloat
34
34
  attribute :frequency, UnitValueFloat
35
35
  attribute :mean_free_path, UnitValueFloat
36
+ attribute :precision, :string, values: %w[reduced normal high]
36
37
 
37
38
  key_value do
38
39
  map "geometric-altitude-m", to: :geometric_altitude_m
@@ -64,6 +65,8 @@ module Atmospheric
64
65
  map "mean-speed", to: :mean_speed
65
66
  map "frequency", to: :frequency
66
67
  map "mean-free-path", to: :mean_free_path
68
+
69
+ map "precision", to: :precision
67
70
  end
68
71
 
69
72
  xml do
@@ -97,10 +100,14 @@ module Atmospheric
97
100
  map_element "mean-speed", to: :mean_speed
98
101
  map_element "frequency", to: :frequency
99
102
  map_element "mean-free-path", to: :mean_free_path
103
+
104
+ map_element "precision", to: :precision
100
105
  end
101
106
 
102
107
  # In meters only
103
108
  def realize_values_from_geopotential(gp_h_m, precision: :reduced)
109
+ self.precision = precision.to_s
110
+
104
111
  %i[
105
112
  temperature_k temperature_c pressure_mbar pressure_mmhg density
106
113
  acceleration ppn rhorhon sqrt_rhorhon speed_of_sound
@@ -114,117 +121,119 @@ module Atmospheric
114
121
  end
115
122
 
116
123
  def calculate(gp_h_m, name, precision: :reduced)
124
+ isa = precision == :high ? Isa::HighPrecision.instance : Isa::NormalPrecision.instance
125
+
117
126
  case name
118
127
  when :temperature_k
119
- v = Isa::NormalPrecision.instance.temperature_at_layer_from_geopotential(gp_h_m)
128
+ v = isa.temperature_at_layer_from_geopotential(gp_h_m)
120
129
  UnitValueFloat.new(
121
- value: precision == :reduced ? (v * 1000.0).round : v,
130
+ value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
122
131
  unitsml: "K"
123
132
  )
124
133
  when :temperature_c
125
- v = Isa::NormalPrecision.instance.temperature_at_layer_celcius(gp_h_m)
134
+ v = isa.temperature_at_layer_celcius(gp_h_m)
126
135
  UnitValueFloat.new(
127
- value: precision == :reduced ? (v * 1000.0).round : v,
136
+ value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
128
137
  unitsml: "degC"
129
138
  )
130
139
  when :pressure_mbar
131
- v = Isa::NormalPrecision.instance.pressure_from_geopotential_mbar(gp_h_m)
140
+ v = isa.pressure_from_geopotential_mbar(gp_h_m)
132
141
  UnitValueFloat.new(
133
142
  value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
134
143
  unitsml: "mbar"
135
144
  )
136
145
  when :pressure_mmhg
137
- v = Isa::NormalPrecision.instance.pressure_from_geopotential_mmhg(gp_h_m)
146
+ v = isa.pressure_from_geopotential_mmhg(gp_h_m)
138
147
  UnitValueFloat.new(
139
148
  value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
140
149
  unitsml: "u:mm_Hg"
141
150
  )
142
151
  when :density
143
- v = Isa::NormalPrecision.instance.density_from_geopotential(gp_h_m)
152
+ v = isa.density_from_geopotential(gp_h_m)
144
153
  UnitValueFloat.new(
145
154
  value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
146
155
  unitsml: "kg*m^-3"
147
156
  )
148
157
  when :acceleration
149
- v = Isa::NormalPrecision.instance.gravity_at_geopotential(gp_h_m)
158
+ v = isa.gravity_at_geopotential(gp_h_m)
150
159
  UnitValueFloat.new(
151
160
  value: precision == :reduced ? v.round(4) : v,
152
161
  unitsml: "m*s^-2"
153
162
  )
154
163
  when :ppn
155
- v = Isa::NormalPrecision.instance.p_p_n_from_geopotential(gp_h_m)
164
+ v = isa.p_p_n_from_geopotential(gp_h_m)
156
165
  UnitValueFloat.new(
157
166
  value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
158
167
  unitsml: nil
159
168
  )
160
169
  when :rhorhon
161
- v = Isa::NormalPrecision.instance.rho_rho_n_from_geopotential(gp_h_m)
170
+ v = isa.rho_rho_n_from_geopotential(gp_h_m)
162
171
  UnitValueFloat.new(
163
172
  value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
164
173
  unitsml: nil
165
174
  )
166
175
  when :sqrt_rhorhon
167
- v = Isa::NormalPrecision.instance.root_rho_rho_n_from_geopotential(gp_h_m)
176
+ v = isa.root_rho_rho_n_from_geopotential(gp_h_m)
168
177
  UnitValueFloat.new(
169
178
  value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
170
179
  unitsml: nil
171
180
  )
172
181
  when :speed_of_sound
173
- v = Isa::NormalPrecision.instance.speed_of_sound_from_geopotential(gp_h_m)
182
+ v = isa.speed_of_sound_from_geopotential(gp_h_m)
174
183
  UnitValueFloat.new(
175
- value: precision == :reduced ? (v * 1000.0).round : v,
184
+ value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
176
185
  unitsml: "m*s^-1"
177
186
  )
178
187
  when :dynamic_viscosity
179
- v = Isa::NormalPrecision.instance.dynamic_viscosity_from_geopotential(gp_h_m)
188
+ v = isa.dynamic_viscosity_from_geopotential(gp_h_m)
180
189
  UnitValueFloat.new(
181
190
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
182
191
  unitsml: "Pa*s"
183
192
  )
184
193
  when :kinematic_viscosity
185
- v = Isa::NormalPrecision.instance.kinematic_viscosity_from_geopotential(gp_h_m)
194
+ v = isa.kinematic_viscosity_from_geopotential(gp_h_m)
186
195
  UnitValueFloat.new(
187
196
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
188
197
  unitsml: "m^2*s^-1"
189
198
  )
190
199
  when :thermal_conductivity
191
- v = Isa::NormalPrecision.instance.thermal_conductivity_from_geopotential(gp_h_m)
200
+ v = isa.thermal_conductivity_from_geopotential(gp_h_m)
192
201
  UnitValueFloat.new(
193
202
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
194
203
  unitsml: "W*m^-1*K^-1"
195
204
  )
196
205
  when :pressure_scale_height
197
- v = Isa::NormalPrecision.instance.pressure_scale_height_from_geopotential(gp_h_m)
206
+ v = isa.pressure_scale_height_from_geopotential(gp_h_m)
198
207
  UnitValueFloat.new(
199
208
  value: precision == :reduced ? v.round(1) : v,
200
209
  unitsml: "m"
201
210
  )
202
211
  when :specific_weight
203
- v = Isa::NormalPrecision.instance.specific_weight_from_geopotential(gp_h_m)
212
+ v = isa.specific_weight_from_geopotential(gp_h_m)
204
213
  UnitValueFloat.new(
205
214
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
206
215
  unitsml: "N*m^-3"
207
216
  )
208
217
  when :air_number_density
209
- v = Isa::NormalPrecision.instance.air_number_density_from_geopotential(gp_h_m)
218
+ v = isa.air_number_density_from_geopotential(gp_h_m)
210
219
  UnitValueFloat.new(
211
220
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
212
221
  unitsml: "m^-3"
213
222
  )
214
223
  when :mean_speed
215
- v = Isa::NormalPrecision.instance.mean_air_particle_speed_from_geopotential(gp_h_m)
224
+ v = isa.mean_air_particle_speed_from_geopotential(gp_h_m)
216
225
  UnitValueFloat.new(
217
226
  value: precision == :reduced ? v.round(2) : v,
218
227
  unitsml: "m*s^-1"
219
228
  )
220
229
  when :frequency
221
- v = Isa::NormalPrecision.instance.air_particle_collision_frequency_from_geopotential(gp_h_m)
230
+ v = isa.air_particle_collision_frequency_from_geopotential(gp_h_m)
222
231
  UnitValueFloat.new(
223
232
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
224
233
  unitsml: "s^-1"
225
234
  )
226
235
  when :mean_free_path
227
- v = Isa::NormalPrecision.instance.mean_free_path_of_air_particles_from_geopotential(gp_h_m)
236
+ v = isa.mean_free_path_of_air_particles_from_geopotential(gp_h_m)
228
237
  UnitValueFloat.new(
229
238
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
230
239
  unitsml: "m"
@@ -41,39 +41,41 @@ module Atmospheric
41
41
  end
42
42
 
43
43
  def calculate(gp_h_m, name, precision: :reduced)
44
+ isa = precision == :high ? Isa::HighPrecision.instance : Isa::NormalPrecision.instance
45
+
44
46
  case name
45
47
  when :temperature_k
46
- v = Isa::NormalPrecision.instance.temperature_at_layer_from_geopotential(gp_h_m)
48
+ v = isa.temperature_at_layer_from_geopotential(gp_h_m)
47
49
  UnitValueInteger.new(
48
50
  value: precision == :reduced ? (v * 1000.0).round : v,
49
51
  unitsml: "K"
50
52
  )
51
53
  when :temperature_c
52
- v = Isa::NormalPrecision.instance.temperature_at_layer_celcius(gp_h_m)
54
+ v = isa.temperature_at_layer_celcius(gp_h_m)
53
55
  UnitValueInteger.new(
54
56
  value: precision == :reduced ? (v * 1000.0).round : v,
55
57
  unitsml: "degC"
56
58
  )
57
59
  when :pressure_mbar
58
- v = Isa::NormalPrecision.instance.pressure_from_geopotential_mbar(gp_h_m)
60
+ v = isa.pressure_from_geopotential_mbar(gp_h_m)
59
61
  UnitValueFloat.new(
60
62
  value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
61
63
  unitsml: "mbar"
62
64
  )
63
65
  when :pressure_mmhg
64
- v = Isa::NormalPrecision.instance.pressure_from_geopotential_mmhg(gp_h_m)
66
+ v = isa.pressure_from_geopotential_mmhg(gp_h_m)
65
67
  UnitValueFloat.new(
66
68
  value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
67
69
  unitsml: "u:mm_Hg"
68
70
  )
69
71
  when :density
70
- v = Isa::NormalPrecision.instance.density_from_geopotential(gp_h_m)
72
+ v = isa.density_from_geopotential(gp_h_m)
71
73
  UnitValueFloat.new(
72
74
  value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
73
75
  unitsml: "kg*m^-3"
74
76
  )
75
77
  when :acceleration
76
- v = Isa::NormalPrecision.instance.gravity_at_geopotential(gp_h_m)
78
+ v = isa.gravity_at_geopotential(gp_h_m)
77
79
  UnitValueFloat.new(
78
80
  value: precision == :reduced ? v.round(4) : v,
79
81
  unitsml: "m*s^-2"
@@ -40,39 +40,41 @@ module Atmospheric
40
40
  end
41
41
 
42
42
  def calculate(gp_h_m, name, precision: :reduced)
43
+ isa = precision == :high ? Isa::HighPrecision.instance : Isa::NormalPrecision.instance
44
+
43
45
  case name
44
46
  when :pressure_scale_height
45
- v = Isa::NormalPrecision.instance.pressure_scale_height_from_geopotential(gp_h_m)
47
+ v = isa.pressure_scale_height_from_geopotential(gp_h_m)
46
48
  UnitValueFloat.new(
47
49
  value: precision == :reduced ? v.round(1) : v,
48
50
  unitsml: "m"
49
51
  )
50
52
  when :specific_weight
51
- v = Isa::NormalPrecision.instance.specific_weight_from_geopotential(gp_h_m)
53
+ v = isa.specific_weight_from_geopotential(gp_h_m)
52
54
  UnitValueFloat.new(
53
55
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
54
56
  unitsml: "N*m^-3"
55
57
  )
56
58
  when :air_number_density
57
- v = Isa::NormalPrecision.instance.air_number_density_from_geopotential(gp_h_m)
59
+ v = isa.air_number_density_from_geopotential(gp_h_m)
58
60
  UnitValueFloat.new(
59
61
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
60
62
  unitsml: "m^-3"
61
63
  )
62
64
  when :mean_speed
63
- v = Isa::NormalPrecision.instance.mean_air_particle_speed_from_geopotential(gp_h_m)
65
+ v = isa.mean_air_particle_speed_from_geopotential(gp_h_m)
64
66
  UnitValueFloat.new(
65
67
  value: precision == :reduced ? v.round(2) : v,
66
68
  unitsml: "m*s^-1"
67
69
  )
68
70
  when :frequency
69
- v = Isa::NormalPrecision.instance.air_particle_collision_frequency_from_geopotential(gp_h_m)
71
+ v = isa.air_particle_collision_frequency_from_geopotential(gp_h_m)
70
72
  UnitValueFloat.new(
71
73
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
72
74
  unitsml: "s^-1"
73
75
  )
74
76
  when :mean_free_path
75
- v = Isa::NormalPrecision.instance.mean_free_path_of_air_particles_from_geopotential(gp_h_m)
77
+ v = isa.mean_free_path_of_air_particles_from_geopotential(gp_h_m)
76
78
  UnitValueFloat.new(
77
79
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
78
80
  unitsml: "m"
@@ -42,46 +42,47 @@ module Atmospheric
42
42
  end
43
43
 
44
44
  def calculate(gp_h_m, name, precision: :reduced)
45
- case name
45
+ isa = precision == :high ? Isa::HighPrecision.instance : Isa::NormalPrecision.instance
46
46
 
47
+ case name
47
48
  when :ppn
48
- v = Isa::NormalPrecision.instance.p_p_n_from_geopotential(gp_h_m)
49
+ v = isa.p_p_n_from_geopotential(gp_h_m)
49
50
  UnitValueFloat.new(
50
51
  value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
51
52
  unitsml: nil
52
53
  )
53
54
  when :rhorhon
54
- v = Isa::NormalPrecision.instance.rho_rho_n_from_geopotential(gp_h_m)
55
+ v = isa.rho_rho_n_from_geopotential(gp_h_m)
55
56
  UnitValueFloat.new(
56
57
  value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
57
58
  unitsml: nil
58
59
  )
59
60
  when :sqrt_rhorhon
60
- v = Isa::NormalPrecision.instance.root_rho_rho_n_from_geopotential(gp_h_m)
61
+ v = isa.root_rho_rho_n_from_geopotential(gp_h_m)
61
62
  UnitValueFloat.new(
62
63
  value: precision == :reduced ? round_to_sig_figs(v, 6) : v,
63
64
  unitsml: nil
64
65
  )
65
66
  when :speed_of_sound
66
- v = Isa::NormalPrecision.instance.speed_of_sound_from_geopotential(gp_h_m)
67
+ v = isa.speed_of_sound_from_geopotential(gp_h_m)
67
68
  UnitValueInteger.new(
68
69
  value: precision == :reduced ? (v * 1000.0).round : v,
69
70
  unitsml: "m*s^-1"
70
71
  )
71
72
  when :dynamic_viscosity
72
- v = Isa::NormalPrecision.instance.dynamic_viscosity_from_geopotential(gp_h_m)
73
+ v = isa.dynamic_viscosity_from_geopotential(gp_h_m)
73
74
  UnitValueFloat.new(
74
75
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
75
76
  unitsml: "Pa*s"
76
77
  )
77
78
  when :kinematic_viscosity
78
- v = Isa::NormalPrecision.instance.kinematic_viscosity_from_geopotential(gp_h_m)
79
+ v = isa.kinematic_viscosity_from_geopotential(gp_h_m)
79
80
  UnitValueFloat.new(
80
81
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
81
82
  unitsml: "m^2*s^-1"
82
83
  )
83
84
  when :thermal_conductivity
84
- v = Isa::NormalPrecision.instance.thermal_conductivity_from_geopotential(gp_h_m)
85
+ v = isa.thermal_conductivity_from_geopotential(gp_h_m)
85
86
  UnitValueFloat.new(
86
87
  value: precision == :reduced ? round_to_sig_figs(v, 5) : v,
87
88
  unitsml: "W*m^-1*K^-1"
@@ -60,20 +60,20 @@ module Atmospheric
60
60
  end
61
61
 
62
62
  class << self
63
- def table_atmosphere_meters
64
- AltitudesInMeters.new.set_attrs
63
+ def table_atmosphere_meters(precision: :reduced)
64
+ AltitudesInMeters.new.set_attrs(precision: precision)
65
65
  end
66
66
 
67
- def table_atmosphere_feet
68
- AltitudesInFeet.new.set_attrs
67
+ def table_atmosphere_feet(precision: :reduced)
68
+ AltitudesInFeet.new.set_attrs(precision: precision)
69
69
  end
70
70
 
71
- def table_hypsometrical_altitude
72
- AltitudesForPressure.new.set_attrs
71
+ def table_hypsometrical_altitude(precision: :reduced)
72
+ AltitudesForPressure.new.set_attrs(precision: precision)
73
73
  end
74
74
 
75
- def table_hypsometrical_mbar
76
- HypsometricalMbar.new.set_attrs
75
+ def table_hypsometrical_mbar(precision: :reduced)
76
+ HypsometricalMbar.new.set_attrs(precision: precision)
77
77
  end
78
78
  end
79
79
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Atmospheric
4
- VERSION = "0.4.4"
4
+ VERSION = "0.4.5"
5
5
  end
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.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-14 00:00:00.000000000 Z
11
+ date: 2025-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bigdecimal