Class: Atmospheris::Export::Iso25331985::TableThree

Inherits:
TableOne show all
Defined in:
lib/atmospheris/export/iso_25331985.rb

Instance Method Summary collapse

Methods inherited from HypsometricalTable

#initialize_attrs

Instance Method Details

#set_attrs(klass: PressureAttrs, unit: steps_unit, precision: :reduced) ⇒ Object



59
60
61
# File 'lib/atmospheris/export/iso_25331985.rb', line 59

def set_attrs(klass: PressureAttrs, unit: steps_unit, precision: :reduced)
  super
end

#stepsObject



51
52
53
# File 'lib/atmospheris/export/iso_25331985.rb', line 51

def steps
  (4.0..9.99).step(0.01).to_a.map { |v| v.round(2) }
end

#steps_unitObject



55
56
57
# File 'lib/atmospheris/export/iso_25331985.rb', line 55

def steps_unit
  :mmhg
end