Module: Atmospheris::Export::Iso5878
- Defined in:
- lib/atmospheris/export/iso_5878.rb,
lib/atmospheris/export/iso_5878/wind_table_export.rb,
lib/atmospheris/export/iso_5878/atmosphere_profile_export.rb
Defined Under Namespace
Classes: AtmosphereProfileExport, WindTableExport
Class Method Summary collapse
-
.generate_atmosphere_profile(model_id, layers_data, table_id:, title_en:, geometric_altitudes:) ⇒ Hash
Generate atmosphere profile YAML data for a given model.
-
.generate_wind_table(wind_yaml_data) ⇒ Hash
Augment wind observation YAML data with computed derived fields.
Class Method Details
.generate_atmosphere_profile(model_id, layers_data, table_id:, title_en:, geometric_altitudes:) ⇒ Hash
Generate atmosphere profile YAML data for a given model.
20 21 22 23 24 25 26 27 28 |
# File 'lib/atmospheris/export/iso_5878.rb', line 20 def generate_atmosphere_profile(model_id, layers_data, table_id:, title_en:, geometric_altitudes:) profile = ::Atmospheris::Iso5878::AtmosphereModelRegistry.create(model_id, layers_data) AtmosphereProfileExport.new( profile, table_id: table_id, title_en: title_en, geometric_altitudes: geometric_altitudes ).generate end |
.generate_wind_table(wind_yaml_data) ⇒ Hash
Augment wind observation YAML data with computed derived fields.
34 35 36 |
# File 'lib/atmospheris/export/iso_5878.rb', line 34 def generate_wind_table(wind_yaml_data) WindTableExport.new(wind_yaml_data).generate end |