Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

GlassApp

John Patton edited this page Aug 15, 2018 · 9 revisions

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

{
	"Cmd":"Glass",
	"LogLevel":"debug",
	"ConfigDirectory":"./params",
	"InitializeFile":"glass_initialize.d",
	"StationList":"stationlist.d",
	"GridFiles":[
		"glass_ak_grid.d",
	],
	"InputConfig":"glass_input.d",
	"OutputConfig":"glass_output.d"
}
  • LogLevel - Sets the logging level, trace, debug, info, warning, error, criticalerror
  • ConfigDirectory - Path to directory containing the other glass subcomponent configuration files
  • InitializeFile - Configuration file containing the GLASS3 Algorithm configuration
  • StationList - File containing the initial GLASS3 station list
  • GridFiles - One or more files defining detection grids
  • InputConfig - Configuration file containing the input configuration
  • OutputConfig - Configuration file containing the output configuration

Input

{
	"Configuration":"GlassInput",
	"InputDirectory":"./input",
	"ErrorDirectory":"./error",
	"ArchiveDirectory":"./archive",
	"Format":"gpick"
	"QueueMaxSize":1000,
	"ShutdownWhenNoData":true,
	"ShutdownWait":300,
	"DefaultAgencyID":"US",
	"DefaultAuthor":"glassConverter"
}
  • InputDirectory - The directory to read input files from
  • ErrorDirectory - The optional directory to archive erroneous input files to.
  • ArchiveDirectory - The optional directory to archive input files to.
  • Format - The format to accept. glass-app currently understands the gpick, jsonpick, jsonhypo, and ccdata (dat) formats
  • QueueMaxSize - The maximum size of the input queue
  • ShutdownWhenNoData - Optional Flag indicating whether to shut down when there is no more input data
  • ShutdownWait - The time in seconds to wait before shutting down due to there being no input data
  • DefaultAgencyID - The default agency identifier to use when converting data to json
  • DefaultAuthor - The default author to use when converting data to json

Output

{
	"Configuration":"GlassOutput",
	"PublicationTimes":[20,180],
	"PublishOnExpiration":true,
	"OutputDirectory":"./output",
	"OutputFormat":"json",
	"TimeStampFileName":true,
	"OutputAgencyID":"US",
	"OutputAuthor":"glass"
}
  • PublicationTimes - The time(s), in seconds since the detections was first found, to publish
  • PublishOnExpiration - Flag indicating whether to always publish a final version of a detection when it expires out of glass
  • OutputDirectory - The directory to write output to
  • OutputFormat - The format to write output in for now, the only format is json
  • TimeStampFileName - Optional flag to define whether to timestamp output file names, defaults to true
  • OutputAgencyID - The agency identifier to use when generating output data
  • OutputAuthor - The author to use when generating output data

GLASS3 Algorithm

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

Running

To run glass-app, use the following command: glass-app <configfile> [noconsole] where <configfile> is the required path the the glass.d configuration file and [noconsole] is an optional command that when present suppresses all console messages from glass-app .

Clone this wiki locally