local globeIdentifier = asset.require("../../earth").Earth.Identifier


local Name = "Atmospheric General Circulation"
local Identifier = "noaa-sos-overlays-general_circulation"
local Description = [[Overlays are datasets with transparent backgrounds that contain 
foreground data used to augment other SOS datasets.This particular dataset overlays 
arrows and names of the approximate prevailing wind onto any dataset that you are 
viewing. General circulation overlay would be particularly useful when pointing out the 
rain shadow effect as well as cloud movement or when describing the coriolis effect]]
local URL = "https://sos.noaa.gov/catalog/datasets/atmospheric-general-circulation/"


local syncedDirectory = asset.syncedResource({
  Name = Name,
  Type = "HttpSynchronization",
  Identifier = Identifier,
  Version = 1
})

local layer = {
  Identifier = Identifier,
  Name = Name,
  Enabled = asset.enabled,
  FilePath = syncedDirectory .. "features_arrows.png",
  Description = Description
}

asset.onInitialize(function() 
  openspace.globebrowsing.addLayer(globeIdentifier, "Overlays", layer)
end)

asset.onDeinitialize(function()
  openspace.globebrowsing.deleteLayer(globeIdentifier, "Overlays", layer)
end)

asset.export(layer)


asset.meta = {
  Name = Name,
  Version = "1.0",
  Description = Description .. "Data provided by the National Oceanic and Atmospheric Administration",
  Author = "National Oceanic and Atmospheric Administration",
  URL = URL,
  License = "https://sos.noaa.gov/copyright/"
}
