Class: Atmospheric::Export::HypsometricalTables::TableFour

Inherits:
TableBase
  • Object
show all
Defined in:
lib/atmospheric/export/hypsometrical_tables.rb

Instance Method Summary collapse

Methods inherited from TableBase

#to_h

Methods included from Target

#ft_to_m, #m_to_ft, #round_to_sig_figs, #to_file, #to_yaml

Instance Method Details

#row(p) ⇒ Object



71
72
73
74
75
76
# File 'lib/atmospheric/export/hypsometrical_tables.rb', line 71

def row(p)
  {
    "pressure-mmhg" => p.round(1),
    "geopotential-altitude" => Isa.geopotential_altitude_from_pressure_mmhg(p.round(1)).round,
  }
end

#stepsObject



67
68
69
# File 'lib/atmospheric/export/hypsometrical_tables.rb', line 67

def steps
  (10.0..899.9).step(0.1)
end