Class: Atmospheric::Export::HypsometricalTable
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Atmospheric::Export::HypsometricalTable
show all
- Defined in:
- lib/atmospheric/export/hypsometrical_table.rb
Instance Method Summary
collapse
Instance Method Details
#initialize_attrs ⇒ Object
22
23
24
|
# File 'lib/atmospheric/export/hypsometrical_table.rb', line 22
def initialize_attrs
self.rows = []
end
|
#set_attrs(klass: PressureAttrs, unit: steps_unit, precision: :reduced) ⇒ Object
26
27
28
29
30
31
32
33
|
# File 'lib/atmospheric/export/hypsometrical_table.rb', line 26
def set_attrs(klass: PressureAttrs, unit: steps_unit, precision: :reduced)
initialize_attrs
steps.each do |p|
rows << klass.new.set_pressure(value: p, unit: unit, precision: precision)
end
self
end
|
#steps ⇒ Object
14
15
16
|
# File 'lib/atmospheric/export/hypsometrical_table.rb', line 14
def steps
(0..0)
end
|
#steps_unit ⇒ Object
18
19
20
|
# File 'lib/atmospheric/export/hypsometrical_table.rb', line 18
def steps_unit
:mbar
end
|