Class: Atmospheric::Export::Iso25331985::TableOne

Inherits:
HypsometricalTable
  • Object
show all
Defined in:
lib/atmospheric/export/iso_25331985.rb

Direct Known Subclasses

TableThree

Instance Method Summary collapse

Methods inherited from HypsometricalTable

#initialize_attrs

Instance Method Details

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



31
32
33
# File 'lib/atmospheric/export/iso_25331985.rb', line 31

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

#stepsObject



23
24
25
# File 'lib/atmospheric/export/iso_25331985.rb', line 23

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

#steps_unitObject



27
28
29
# File 'lib/atmospheric/export/iso_25331985.rb', line 27

def steps_unit
  :mbar
end