Class: Atmospheric::Export::Iso25331975::GroupTwo

Inherits:
GroupBase
  • Object
show all
Defined in:
lib/atmospheric/export/iso_25331975/group_two.rb

Instance Method Summary collapse

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
25
# File 'lib/atmospheric/export/iso_25331975/group_two.rb', line 15

def row_from_geopotential(gp_h_f)
  {
    "ppn"                  => round_to_sig_figs(Isa.p_p_n_from_geopotential(gp_h_f), 6),
    "rhorhon"              => round_to_sig_figs(Isa.rho_rho_n_from_geopotential(gp_h_f), 6),
    "sqrt-rhorhon"         => round_to_sig_figs(Isa.root_rho_rho_n_from_geopotential(gp_h_f), 6),
    "speed-of-sound"       => (Isa.speed_of_sound_from_geopotential(gp_h_f) * 1000.0).round,
    "dynamic-viscosity"    => round_to_sig_figs(Isa.dynamic_viscosity_from_geopotential(gp_h_f), 5),
    "kinematic-viscosity"  => round_to_sig_figs(Isa.kinematic_viscosity_from_geopotential(gp_h_f), 5),
    "thermal-conductivity" => round_to_sig_figs(Isa.thermal_conductivity_from_geopotential(gp_h_f), 5),
  }
end