Class: Atmospheric::Export::Iso25331975::GroupThree

Inherits:
GroupBase
  • Object
show all
Defined in:
lib/atmospheric/export/iso_25331975/group_three.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
# File 'lib/atmospheric/export/iso_25331975/group_three.rb', line 15

def row_from_geopotential(gp_h_f)
  {
    "pressure-scale-height" => Isa.pressure_scale_height_from_geopotential(gp_h_f).round(1),
    "specific-weight"       => round_to_sig_figs(Isa.specific_weight_from_geopotential(gp_h_f), 5),
    "air-number-density"    => round_to_sig_figs(Isa.air_number_density_from_geopotential(gp_h_f), 5),
    "mean-speed"            => Isa.mean_air_particle_speed_from_geopotential(gp_h_f).round(2),
    "frequency"             => round_to_sig_figs(Isa.air_particle_collision_frequency_from_geopotential(gp_h_f), 5),
    "mean-free-path"        => round_to_sig_figs(Isa.mean_free_path_of_air_particles_from_geopotential(gp_h_f), 5),
  }
end