awips2/cave/com.raytheon.viz.gfe/python/testFormatters/MarineSnapshotTable.py
2022-05-05 12:34:50 -05:00

83 lines
2.7 KiB
Python

##
# This software was developed and / or modified by Raytheon Company,
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
#
# U.S. EXPORT CONTROLLED TECHNICAL DATA
# This software product contains export-restricted data whose
# export/transfer/disclosure is restricted by U.S. law. Dissemination
# to non-U.S. persons whether in the United States or abroad requires
# an export license or other authorization.
#
# Contractor Name: Raytheon Company
# Contractor Address: 6825 Pine Street, Suite 340
# Mail Stop B8
# Omaha, NE 68106
# 402.291.0100
#
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
# further licensing information.
##
#######################################################################
# Table Definition
#
########################################################################
## EXAMPLE OUTPUT (Scarce Data)
## MarineSnapshotTable for Feb 29 00 17:00:00 GMT - Mar 01 00 11:00:00 GMT.
## Edit Area Wind (kt) Waves (ft) Swells (ft)
## COAdams W 10
## COArapahoe W 10
## COBoulder W 5
## COClearCreek W 5
## CODenver W 5
## CODouglas W 5
## COElbert W 10
MarineSnapshotTable = {
"type": "table",
"displayName": "TEST_Marine Snapshot Table", # for Product Generation Menu
# Output file for product results
"outputFile": "./MarineSnapshotTable.txt", # default output file
"constantVariable": "TimePeriod",
"rowVariable": "EditArea",
"columnVariable": "WeatherElement",
"beginningText": "MarineSnapshotTable for %TimePeriod. \n\n",
"endingText": "",
"defaultEditAreas": [("area1", "Area 1"),
("area2", "Area 2"),
],
"runTimeEditAreas" : "yes", # if yes, ask user at run time
"areaType" : "Edit Area", # E.g. City, County, Basin, etc.
"defaultRanges": [("Today"),
("Tonight"),
("Tomorrow"),
],
# If runTimeRanges is yes, ask user to choose from defaults
# at run time.
"runTimeRanges" : "yes",
"elementList": [
("Wind", "Wind (kt)",
"vectorRange",
"avgValue",
"Vector", 5, None),
("WaveHeight","Waves (ft)",
"minMax",
"range2Value",
"Scalar", 1, None),
("Swell","Swells (ft)",
"vectorAvg",
"singleValue",
"Vector", 1, None),
],
}