Class: Atmospheric::Export::Iso25331985::TableFour

Inherits:
TableTwo show all
Defined in:
lib/atmospheric/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



75
76
77
# File 'lib/atmospheric/export/iso_25331985.rb', line 75

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

#stepsObject



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

def steps
  (10.0..899.9).step(0.1).to_a.map { |v| v.round(1) }
end

#steps_unitObject



71
72
73
# File 'lib/atmospheric/export/iso_25331985.rb', line 71

def steps_unit
  :mmhg
end