class NMEAPlus::Message::AIS::VDMPayload::VDMMsg8d1f31
Type 8: Binary Broadcast Message
Subtype: Meteorological and Hydrological Data (IMO289)
Public Instance Methods
Source
# File lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f31.rb, line 35 def air_pressure_tendency_description trend_description(air_pressure_tendency) end
@!parse attr_reader :air_pressure_tendency_description @return [String] pressure tendency description
Source
# File lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f31.rb, line 16 def current_time day = _u(106, 5) hour = _u(111, 5) minute = _u(116, 6) _get_date_mdhm(nil, day, hour, minute) end
@!parse attr_reader :current_time @return [Time] current time, assumed to be in UTC
Source
# File lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f31.rb, line 117 def ice_description case ice_code when 0 then return "No" when 1 then return "Yes" when 2 then return "(reserved)" end nil end
@param [Integer] code The code for ice @return [String] the description
Source
# File lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f31.rb, line 82 def precipitation_description # rubocop:disable Lint/DuplicateBranch case precipitation_type when 0 then return "Reserved" when 1 then return "Rain" when 2 then return "Thunderstorm" when 3 then return "Freezing rain" when 4 then return "Mixed/ice" when 5 then return "Snow" when 6 then return "Reserved" # 7 is nil end # rubocop:enable Lint/DuplicateBranch nil end
precipitation type description @param [Integer] code The code for precipitation @return [String] the description
Source
# File lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f31.rb, line 100 def salinity ret = _U(339, 9, 10) return nil if ret > 51.0 # 51.1 for sensor not available, otherwise n/a ret end
@!parse attr_reader :salinity @return [Float] salinity
Source
# File lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f31.rb, line 129 def trend_description(code) case code when 0 then return "steady" when 1 then return "decreasing" when 2 then return "increasing" end nil end
trend description @param [Integer] code The trend code @return [String] the description
Source
# File lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f31.rb, line 56 def water_current_depth1 0 end
surface water current @!parse attr_reader :water_current_depth1 @return [Float] depth of measurement
Source
# File lib/nmea_plus/message/ais/vdm_payload/vdm_msg8d1f31.rb, line 46 def water_level_tendency_description trend_description(water_level_tendency) end
@!parse attr_reader :water_level_tendency_description @return [String] water level tendency description