module STAC::Extensions::ElectroOptical::Properties

Attributes

extra[R]

Public Instance Methods

eo_bands() click to toggle source
# File lib/stac/extensions/electro_optical.rb, line 20
def eo_bands
  extra.fetch('eo:bands', []).map { |band_hash| Band.new(band_hash) }
end
eo_bands=(bands) click to toggle source
# File lib/stac/extensions/electro_optical.rb, line 24
def eo_bands=(bands)
  extra['eo:bands'] = bands.map(&:to_h)
end
eo_cloud_cover() click to toggle source
# File lib/stac/extensions/electro_optical.rb, line 28
def eo_cloud_cover
  extra['eo:cloud_cover']
end
eo_cloud_cover=(cloud_cover) click to toggle source
# File lib/stac/extensions/electro_optical.rb, line 32
def eo_cloud_cover=(cloud_cover)
  extra['eo:cloud_cover'] = cloud_cover
end