Module: SeisRuby::Data::Sac::Head::LogicalConverter

Defined in:
lib/seis_ruby/data/sac/head.rb

Class Method Summary collapse

Class Method Details

.from_head(n) ⇒ Object



113
114
115
# File 'lib/seis_ruby/data/sac/head.rb', line 113

def self.from_head(n)
  n.to_f.round == 1
end

.to_head(v) ⇒ Object



117
118
119
120
121
122
123
# File 'lib/seis_ruby/data/sac/head.rb', line 117

def self.to_head(v)
  if v
    1
  else
    0
  end
end