neic-glass3

glass-app

glass-app is an implementation of the neic-glass3 libraries that reads input from a file system directory, and writes output to a file system directory, with a static stationlist and configuration.

Building

To build glass-app, set the BUILD_GLASS-APP option equal to true (1) in the cmake command or GUI.

Configuration

An example configuration for glass-app is available in the glass-app params directory

Glass-App

{
    "Configuration":"glass-app",
    "LogLevel":"debug",
    "ConfigDirectory":"./params",
    "InitializeFile":"initialize.d",
    "StationList":"stationlist.d",
    "GridFiles":[
        "ak_grid.d",
    ],
    "InputConfig":"input.d",
    "OutputConfig":"output.d"
}

input.d

{
    "Configuration":"GlassInput",
    "InputDirectory":"./input",
    "ErrorDirectory":"./error",
    "ArchiveDirectory":"./archive",
    "Format":"gpick",
    "QueueMaxSize":1000,
    "ShutdownWhenNoData":true,
    "ShutdownWait":300,
    "DefaultAgencyID":"US",
    "DefaultAuthor":"glassConverter"
}

Output

{
    "Configuration":"GlassOutput",
    "PublicationTimes":[20,180],
    "PublishOnExpiration":true,
    "OutputDirectory":"./output",
    "OutputFormat":"json",
    "TimeStampFileName":true,
    "OutputAgencyID":"US",
    "OutputAuthor":"glass"
}

neic-glass3 Algorithm

For neic-glass3 algorithmic configuration, see neic-glass3 Configuration.

Documentation

Further documentation of the glass-app software is available here

Running

To run glass-app, use the following command: glass-app <configfile> [logname] [noconsole] where <configfile> is the required path the the glass.d configuration file, [logname] is an optional command that defining an alternate name for the glass-app log file, and [noconsole] is an optional command specifying that glass-app should not write messages to the console.

glass-app uses the environment variable GLASS_LOG to define the location to write log files