Class: Gribr::Wgrib::ShortInventoryRecord

Inherits:
InventoryRecord show all
Defined in:
lib/gribr/wgrib/inventory_record.rb

Constant Summary collapse

REGEX_TIMESTAMP =
Regexp.new("(d=(\\d{2,4})(\\d{2})(\\d{2})(\\d{2}))").freeze
TIME_FORMAT =
"%Y%m%d%H".freeze

Instance Attribute Summary

Attributes inherited from InventoryRecord

#average, #element, #end_position, #level, #number, #projection, #reference_time, #start_position, #valid_time

Instance Method Summary collapse

Methods inherited from InventoryRecord

#end_position_of_previous

Methods included from RegexpParser

included

Instance Method Details

#to_sObject



21
22
23
# File 'lib/gribr/wgrib/inventory_record.rb', line 21

def to_s
  [number, start_position, formatted_reference_time, element, level, projection, average].join(":")
end