Class: Atmospheric::Export::Iso25331975::GroupOne
- Defined in:
- lib/atmospheric/export/iso_25331975/group_one.rb
Direct Known Subclasses
Atmospheric::Export::Iso25331997::GroupFour, Atmospheric::Export::Iso25331997::GroupOne
Instance Method Summary collapse
-
#row_from_geopotential(gp_h_f) ⇒ Object
In meters only.
Methods inherited from GroupBase
#height_hash, #row_big_h, #row_small_h, #steps, #steps_unit, #to_h, #values_in_m_ft
Methods included from Target
#ft_to_m, #m_to_ft, #round_to_sig_figs, #to_file, #to_yaml
Instance Method Details
#row_from_geopotential(gp_h_f) ⇒ Object
In meters only
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/atmospheric/export/iso_25331975/group_one.rb', line 15 def row_from_geopotential(gp_h_f) { "temperature-K" => (Isa.temperature_at_layer_from_geopotential(gp_h_f) * 1000.0).round, "temperature-C" => (Isa.temperature_at_layer_celcius(gp_h_f) * 1000.0).round, "pressure-mbar" => round_to_sig_figs(Isa.(gp_h_f), 6), "pressure-mmHg" => round_to_sig_figs(Isa.pressure_from_geopotential_mmhg(gp_h_f), 6), "density" => round_to_sig_figs(Isa.density_from_geopotential(gp_h_f), 6), "acceleration" => Isa.gravity_at_geopotential(gp_h_f).round(4), } end |