##
# 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.
##
# ----------------------------------------------------------------------------
# This software is in the public domain, furnished "as is", without technical
# support, and with no warranty, express or implied, as to its usefulness for
# any purpose.
#
# Headlines Timing
#
# Author:
# ----------------------------------------------------------------------------

#set up to test area names and part of states
# without locationName defined
areaT1 = [
"AreaDictionary['FLZ050']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ050']['partOfState'] = 'WESTERN'",

"AreaDictionary['FLZ057']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ057']['partOfState'] = 'WESTERN'",

"AreaDictionary['FLZ060']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ060']['partOfState'] = 'CENTRAL'",

"AreaDictionary['FLZ051']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ051']['partOfState'] = 'CENTRAL'",

"AreaDictionary['FLZ043']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ043']['partOfState'] = 'CENTRAL'",

"AreaDictionary['FLZ062']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ062']['partOfState'] = 'CENTRAL'",

"AreaDictionary['FLZ065']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ065']['partOfState'] = 'CENTRAL'",

"AreaDictionary['FLZ056']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ056']['partOfState'] = 'SOUTHERN'",

"AreaDictionary['FLZ052']['fullStateName'] = 'GEORGIA'",
"AreaDictionary['FLZ052']['partOfState'] = 'WESTERN'",

"AreaDictionary['FLZ055']['fullStateName'] = 'GEORGIA'",
"AreaDictionary['FLZ055']['partOfState'] = 'WESTERN'",

"AreaDictionary['FLZ061']['fullStateName'] = 'GEORGIA'",
"AreaDictionary['FLZ061']['partOfState'] = 'SOUTHERN'",

"AreaDictionary['FLZ048']['fullStateName'] = 'GEORGIA'",
"AreaDictionary['FLZ048']['partOfState'] = 'SOUTHERN'",

"AreaDictionary['FLZ042']['fullStateName'] = 'SOUTH CAROLINA'",
"AreaDictionary['FLZ042']['partOfState'] = 'WESTERN'",

"AreaDictionary['FLZ043']['fullStateName'] = 'SOUTH CAROLINA'",
"AreaDictionary['FLZ043']['partOfState'] = 'WESTERN'"
]

#with location name defined
areaT2= [
"AreaDictionary['FLZ050']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ050']['partOfState'] = 'WESTERN'",
"AreaDictionary['FLZ050']['locationName'] = 'CLEARFIELD'",

"AreaDictionary['FLZ057']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ057']['partOfState'] = 'WESTERN'",
"AreaDictionary['FLZ057']['locationName'] = 'CLEARFIELD'",

"AreaDictionary['FLZ060']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ060']['partOfState'] = 'CENTRAL'",
"AreaDictionary['FLZ060']['locationName'] = 'AUNT RUBY'",

"AreaDictionary['FLZ051']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ051']['partOfState'] = 'CENTRAL'",
"AreaDictionary['FLZ051']['locationName'] = 'AUNT RUBY'",

"AreaDictionary['FLZ043']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ043']['partOfState'] = 'CENTRAL'",
"AreaDictionary['FLZ043']['locationName'] = 'ADAMS'",

"AreaDictionary['FLZ062']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ062']['partOfState'] = 'CENTRAL'",
"AreaDictionary['FLZ062']['locationName'] = 'ADAMS'",

"AreaDictionary['FLZ065']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ065']['partOfState'] = 'CENTRAL'",
#AreaDictionary['FLZ065']['locationName'] = 'WESTERN'

"AreaDictionary['FLZ056']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLZ056']['partOfState'] = 'SOUTHERN'",
"AreaDictionary['FLZ056']['locationName'] = 'TAMPA'",

"AreaDictionary['FLZ052']['fullStateName'] = 'GEORGIA'",
"AreaDictionary['FLZ052']['partOfState'] = 'WESTERN'",
"AreaDictionary['FLZ052']['locationName'] = 'TAMPA'",

"AreaDictionary['FLZ055']['fullStateName'] = 'GEORGIA'",
"AreaDictionary['FLZ055']['partOfState'] = 'WESTERN'",
"AreaDictionary['FLZ055']['locationName'] = 'ATLANTA'",

"AreaDictionary['FLZ061']['fullStateName'] = 'GEORGIA'",
"AreaDictionary['FLZ061']['partOfState'] = 'SOUTHERN'",
"AreaDictionary['FLZ061']['locationName'] = 'BEACH'",

"AreaDictionary['FLZ048']['fullStateName'] = 'GEORGIA'",
"AreaDictionary['FLZ048']['partOfState'] = 'SOUTHERN'",
"AreaDictionary['FLZ048']['locationName'] = 'BEACH'",

"AreaDictionary['FLZ042']['fullStateName'] = 'SOUTH CAROLINA'",
"AreaDictionary['FLZ042']['partOfState'] = 'WESTERN'",
"AreaDictionary['FLZ042']['locationName'] = 'SOUTH PARK'",

"AreaDictionary['FLZ043']['fullStateName'] = 'SOUTH CAROLINA'",
"AreaDictionary['FLZ043']['partOfState'] = 'WESTERN'",
"AreaDictionary['FLZ043']['locationName'] = 'SOUTH PARK'"

]

#for testing of parishes, counties, and areas
areaT3 = [
"AreaDictionary['FLC017']['fullStateName'] = 'LOUISIANA'",
"AreaDictionary['FLC017']['partOfState'] = 'WESTERN'",
"AreaDictionary['FLC017']['independentCity'] = 1",

"AreaDictionary['FLC105']['fullStateName'] = 'LOUISIANA'",
"AreaDictionary['FLC105']['partOfState'] = 'WESTERN'",

"AreaDictionary['FLC027']['fullStateName'] = 'LOUISIANA'",
"AreaDictionary['FLC027']['partOfState'] = 'WESTERN'",

"AreaDictionary['FLC053']['fullStateName'] = 'FLORIDA'",
"AreaDictionary['FLC053']['partOfState'] = 'WESTERN'",
]

areaT3FIPS0= '#Definition["areaType"] = "FIPS"'
areaT3FIPS1= [
'TextProduct.Definition["areaType"] = "FIPS"',
 'TextProduct.Definition["defaultEditAreas"] = "EditAreas_FIPS_TBW"',
'TextProduct.Definition["mapNameForCombinations"] = "FIPS_<site>"'
]




scripts = [
    {
    "commentary": "Clear out all Hazards Table and Grids.",
    "name": "Hazard_FFA_0",
    "productType": None,
    "clearHazardsTable": 1,
    "checkStrings": [],
    },
    {
    "commentary": "NEW FFA",
    "name": "Hazard_FFA_1",
    "drtTime": "20100101_0510",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLZ049"]),
       ],
    "checkStrings": ["URGENT - IMMEDIATE BROADCAST REQUESTED",
                     "FLOOD WATCH",
                     "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
                     "FLZ049-",
                     "/X.NEW.KTBW.FA.A.0001.100101T0510Z-100101T0800Z/",
                     "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "PASCO-",
                     "1210 AM EST FRI JAN 1 2010",
                     "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
                     "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
                     "* FLOOD WATCH FOR A PORTION OF WEST CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...PASCO.",
                     "* UNTIL 3 AM EST EARLY THIS MORNING",
                     ],
    },
    {
    "commentary": "CON FFA",
    "name": "Hazard_FFA_2",
    "drtTime": "20100101_0530",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'SM '}",
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLZ049"]),
       ],
    "checkStrings": ["FLOOD WATCH",
                     "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
                     "FLZ049-",
                     "/X.CON.KTBW.FA.A.0001.000000T0000Z-100101T0800Z/",
                     "/00000.0.SM.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLOOD WATCH REMAINS IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
                     "THE FLOOD WATCH CONTINUES FOR",
                     "* A PORTION OF WEST CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...PASCO.",
                     "* UNTIL 3 AM EST EARLY THIS MORNING",
                     ],
    },
    {
    "commentary": "EXA FFA",
    "name": "Hazard_FFA_3",
    "drtTime": "20100101_0700",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'DM '}",
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLZ049","FLZ057"]),
       ],
    "checkStrings": ["URGENT - IMMEDIATE BROADCAST REQUESTED",
                     "FLOOD WATCH",
                     "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
                     "FLZ057-",
                     "/X.EXA.KTBW.FA.A.0001.000000T0000Z-100101T0800Z/",
                     "/00000.0.DM.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
                     "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS EXPANDED THE",
                     "* FLOOD WATCH TO INCLUDE A PORTION OF SOUTH CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...HIGHLANDS.",
                     "* UNTIL 3 AM EST EARLY THIS MORNING",
                     "FLZ049-",
                     "/X.CON.KTBW.FA.A.0001.000000T0000Z-100101T0800Z/",
                     "/00000.0.DM.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLOOD WATCH REMAINS IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
                     "THE FLOOD WATCH CONTINUES FOR",
                     "* A PORTION OF WEST CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...PASCO.",
                     "* UNTIL 3 AM EST EARLY THIS MORNING",
                     ],
    },
    {
    "commentary": "CAN FFA, NEW FFA",
    "name": "Hazard_FFA_4",
    "drtTime": "20100101_0720",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'IJ '}",
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 8, "FF.A", ["FLZ057"]),
       ("Fcst", "Hazards", "DISCRETE", 24, 32, "FF.A", ["FLZ057"]),
       ],
    "checkStrings": ["URGENT - IMMEDIATE BROADCAST REQUESTED",
                     "FLOOD WATCH",
                     "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
                     "FLZ057-",
                     "/X.CAN.KTBW.FA.A.0001.000000T0000Z-100101T0800Z/",
                     "/X.NEW.KTBW.FF.A.0001.100101T0720Z-100101T1300Z/",
                     "/X.NEW.KTBW.FF.A.0002.100102T0500Z-100102T1300Z/",
                     "/00000.0.IJ.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLASH FLOOD WATCH IN EFFECT UNTIL 8 AM EST THIS MORNING...",
                     "...FLASH FLOOD WATCH IN EFFECT FROM LATE TONIGHT THROUGH SATURDAY MORNING...",
                     "...FLOOD WATCH IS CANCELLED...",
                     "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
                     "* FLASH FLOOD WATCH FOR A PORTION OF SOUTH CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...HIGHLANDS.",
                     "* UNTIL 8 AM EST THIS MORNING",
                     "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
                     "* FLASH FLOOD WATCH FOR A PORTION OF SOUTH CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...HIGHLANDS.",
                     "* FROM LATE TONIGHT THROUGH SATURDAY MORNING",
                     "THE FLOOD WATCH FOR A PORTION OF SOUTH CENTRAL FLORIDA HAS BEEN CANCELLED.",
                     "FLZ049-",
                     "/X.CAN.KTBW.FA.A.0001.000000T0000Z-100101T0800Z/",
                     "/00000.0.IJ.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLOOD WATCH IS CANCELLED...",
                     "THE FLOOD WATCH FOR A PORTION OF WEST CENTRAL FLORIDA HAS BEEN CANCELLED."
                     ],
    },
    {
    "commentary": "EXP FFA, 2 NEW FFA",
    "name": "Hazard_FFA_5",
    "drtTime": "20100101_1300",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'FS '}",
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 24, 32, "FF.A", ["FLZ057"]),
       ("Fcst", "Hazards", "DISCRETE", 46, 62, "FF.A", ["FLZ057"]),
       ("Fcst", "Hazards", "DISCRETE", 45, 46, "FA.A", ["FLZ049"]),
       ("Fcst", "Hazards", "DISCRETE", 46, 62, "FA.A", ["FLZ049"]),
       ("Fcst", "Hazards", "DISCRETE", 62, 68, "FA.A", ["FLZ049"]),
       ],
    "checkStrings": ["URGENT - IMMEDIATE BROADCAST REQUESTED",
                     "FLOOD WATCH",
                     "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
                     "FLZ057-",
                     "/X.EXP.KTBW.FF.A.0001.000000T0000Z-100101T1300Z/",
                     "/X.NEW.KTBW.FF.A.0003.100103T0300Z-100103T1900Z/",
                     "/X.CON.KTBW.FF.A.0002.100102T0500Z-100102T1300Z/",
                     "/00000.0.FS.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLASH FLOOD WATCH REMAINS IN EFFECT FROM LATE TONIGHT THROUGH SATURDAY MORNING...",
                     "...FLASH FLOOD WATCH IN EFFECT FROM SATURDAY EVENING THROUGH SUNDAY AFTERNOON...",
                     "...FLASH FLOOD WATCH HAS EXPIRED...",
                     "THE FLASH FLOOD WATCH CONTINUES FOR",
                     "* A PORTION OF SOUTH CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...HIGHLANDS.",
                     "* FROM LATE TONIGHT THROUGH SATURDAY MORNING",
                     "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
                     "* FLASH FLOOD WATCH FOR A PORTION OF SOUTH CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...HIGHLANDS.",
                     "* FROM SATURDAY EVENING THROUGH SUNDAY AFTERNOON",
                     "THE FLASH FLOOD WATCH FOR A PORTION OF SOUTH CENTRAL FLORIDA HAS EXPIRED.",
                     "FLZ049-",
                     "/X.NEW.KTBW.FA.A.0002.100103T0200Z-100104T0100Z/",
                     "/00000.0.FS.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLOOD WATCH IN EFFECT FROM SATURDAY EVENING THROUGH SUNDAY EVENING...",
                     "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
                     "* FLOOD WATCH FOR A PORTION OF WEST CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...PASCO.",
                     "* FROM SATURDAY EVENING THROUGH SUNDAY EVENING",
                     ],
    },
    {
    "commentary": "CON test of multiple events",
    "name": "Hazard_FFA_6",
    "drtTime": "20100102_0300",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'RS '}",
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 24, 32, "FF.A", ["FLZ057"]),
       ("Fcst", "Hazards", "DISCRETE", 46, 62, "FF.A", ["FLZ057"]),
       ("Fcst", "Hazards", "DISCRETE", 45, 46, "FA.A", ["FLZ049"]),
       ("Fcst", "Hazards", "DISCRETE", 46, 62, "FA.A", ["FLZ049"]),
       ("Fcst", "Hazards", "DISCRETE", 62, 68, "FA.A", ["FLZ049"]),
       ],
    "checkStrings": ["FLOOD WATCH",
                     "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
                     "FLZ057-",
                     "/X.CON.KTBW.FF.A.0002.100102T0500Z-100102T1300Z/",
                     "/X.CON.KTBW.FF.A.0003.100103T0300Z-100103T1900Z/",
                     "/00000.0.RS.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLASH FLOOD WATCH REMAINS IN EFFECT UNTIL 8 AM EST SATURDAY...",
                     "...FLASH FLOOD WATCH REMAINS IN EFFECT FROM SATURDAY EVENING THROUGH SUNDAY AFTERNOON...",
                     "THE FLASH FLOOD WATCH CONTINUES FOR",
                     "* A PORTION OF SOUTH CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...HIGHLANDS.",
                     "* UNTIL 8 AM EST SATURDAY",
                     "THE FLASH FLOOD WATCH CONTINUES FOR",
                     "* A PORTION OF SOUTH CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...HIGHLANDS.",
                     "* FROM SATURDAY EVENING THROUGH SUNDAY AFTERNOON",
                     "FLZ049-",
                     "/X.CON.KTBW.FA.A.0002.100103T0200Z-100104T0100Z/",
                     "/00000.0.RS.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLOOD WATCH REMAINS IN EFFECT FROM SATURDAY EVENING THROUGH SUNDAY EVENING...",
                     "THE FLOOD WATCH CONTINUES FOR",
                     "* A PORTION OF WEST CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...PASCO.",
                     "* FROM SATURDAY EVENING THROUGH SUNDAY EVENING",
                     ],
    },
    {
    "commentary": "middle of 1st event",
    "name": "Hazard_FFA_7",
    "drtTime": "20100102_0700",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 24, 32, "FF.A", ["FLZ057"]),
       ("Fcst", "Hazards", "DISCRETE", 46, 62, "FF.A", ["FLZ057"]),
       ("Fcst", "Hazards", "DISCRETE", 45, 46, "FA.A", ["FLZ049"]),
       ("Fcst", "Hazards", "DISCRETE", 46, 62, "FA.A", ["FLZ049"]),
       ("Fcst", "Hazards", "DISCRETE", 62, 68, "FA.A", ["FLZ049"]),
       ],
    "checkStrings": ["FLOOD WATCH",
                     "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
                     "FLZ057-",
                     "/X.CON.KTBW.FF.A.0002.000000T0000Z-100102T1300Z/",
                     "/X.CON.KTBW.FF.A.0003.100103T0300Z-100103T1900Z/",
                     "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLASH FLOOD WATCH REMAINS IN EFFECT UNTIL 8 AM EST THIS MORNING...",
                     "...FLASH FLOOD WATCH REMAINS IN EFFECT FROM THIS EVENING THROUGH SUNDAY AFTERNOON...",
                     "THE FLASH FLOOD WATCH CONTINUES FOR",
                     "* A PORTION OF SOUTH CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...HIGHLANDS.",
                     "* UNTIL 8 AM EST THIS MORNING",
                     "THE FLASH FLOOD WATCH CONTINUES FOR",
                     "* A PORTION OF SOUTH CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...HIGHLANDS.",
                     "* FROM THIS EVENING THROUGH SUNDAY AFTERNOON",
                     "FLZ049-",
                     "/X.CON.KTBW.FA.A.0002.100103T0200Z-100104T0100Z/",
                     "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLOOD WATCH REMAINS IN EFFECT FROM THIS EVENING THROUGH SUNDAY EVENING...",
                     "THE FLOOD WATCH CONTINUES FOR",
                     "* A PORTION OF WEST CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...PASCO.",
                     "* FROM THIS EVENING THROUGH SUNDAY EVENING",
                     ],
    },
    {
    "commentary": "joining two events",
    "name": "Hazard_FFA_8",
    "drtTime": "20100102_1200",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'IC '}",
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 24, 45, "FF.A", ["FLZ057"]),
       ("Fcst", "Hazards", "DISCRETE", 45, 62, "FF.A", ["FLZ057"]),
       ("Fcst", "Hazards", "DISCRETE", 45, 62, "FA.A", ["FLZ049"]),
       ("Fcst", "Hazards", "DISCRETE", 62, 68, "FA.A", ["FLZ049"]),

       ],
    "checkStrings": ["URGENT - IMMEDIATE BROADCAST REQUESTED",
                     "FLOOD WATCH",
                     "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
                     "FLZ057-",
                     "/X.CAN.KTBW.FF.A.0002.000000T0000Z-100102T1300Z/",
                     "/X.EXT.KTBW.FF.A.0003.100102T1200Z-100103T1900Z/",
                     "/00000.0.IC.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLASH FLOOD WATCH NOW IN EFFECT THROUGH SUNDAY AFTERNOON...",
                     "THE FLASH FLOOD WATCH IS NOW IN EFFECT FOR",
                     "* A PORTION OF SOUTH CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...HIGHLANDS.",
                     "* THROUGH SUNDAY AFTERNOON",
                     "FLZ049-",
                     "/X.CON.KTBW.FA.A.0002.100103T0200Z-100104T0100Z/",
                     "/00000.0.IC.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLOOD WATCH REMAINS IN EFFECT FROM THIS EVENING THROUGH SUNDAY EVENING...",
                     "THE FLOOD WATCH CONTINUES FOR",
                     "* A PORTION OF WEST CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...PASCO.",
                     "* FROM THIS EVENING THROUGH SUNDAY EVENING",
                     ],
    },
    {
    "commentary": "into the tail end of the events",
    "name": "Hazard_FFA_9",
    "drtTime": "20100103_1100",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'SM '}",
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 24, 45, "FF.A", ["FLZ057"]),
       ("Fcst", "Hazards", "DISCRETE", 45, 62, "FF.A", ["FLZ057"]),
       ("Fcst", "Hazards", "DISCRETE", 45, 62, "FA.A", ["FLZ049"]),
       ("Fcst", "Hazards", "DISCRETE", 62, 68, "FA.A", ["FLZ049"]),
       ],
    "checkStrings": ["FLOOD WATCH",
                     "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
                     "FLZ057-",
                     "/X.CON.KTBW.FF.A.0003.000000T0000Z-100103T1900Z/",
                     "/00000.0.SM.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLASH FLOOD WATCH REMAINS IN EFFECT UNTIL 2 PM EST THIS AFTERNOON...",
                     "THE FLASH FLOOD WATCH CONTINUES FOR",
                     "* A PORTION OF SOUTH CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...HIGHLANDS.",
                     "* UNTIL 2 PM EST THIS AFTERNOON",
                     "FLZ049-",
                     "/X.CON.KTBW.FA.A.0002.000000T0000Z-100104T0100Z/",
                     "/00000.0.SM.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLOOD WATCH REMAINS IN EFFECT THROUGH THIS EVENING...",
                     "THE FLOOD WATCH CONTINUES FOR",
                     "* A PORTION OF WEST CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...PASCO.",
                     "* THROUGH THIS EVENING",
                     ],
    },
    {
    "commentary": "exp 1st event, continue 2nd event",
    "name": "Hazard_FFA_10",
    "drtTime": "20100103_1855",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'DR '}",
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 24, 45, "FF.A", ["FLZ057"]),
       ("Fcst", "Hazards", "DISCRETE", 45, 62, "FF.A", ["FLZ057"]),
       ("Fcst", "Hazards", "DISCRETE", 45, 62, "FA.A", ["FLZ049"]),
       ("Fcst", "Hazards", "DISCRETE", 62, 68, "FA.A", ["FLZ049"]),
       ],
    "checkStrings": ["FLOOD WATCH",
                     "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
                     "FLZ057-",
                     "/X.EXP.KTBW.FF.A.0003.000000T0000Z-100103T1900Z/",
                     "/00000.0.DR.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLASH FLOOD WATCH WILL EXPIRE AT 2 PM EST THIS AFTERNOON...",
                     "THE FLASH FLOOD WATCH FOR A PORTION OF SOUTH CENTRAL FLORIDA WILL EXPIRE AT 2 PM EST THIS AFTERNOON.",
                     "FLZ049-",
                     "/X.CON.KTBW.FA.A.0002.000000T0000Z-100104T0100Z/",
                     "/00000.0.DR.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLOOD WATCH REMAINS IN EFFECT UNTIL 8 PM EST THIS EVENING...",
                     "THE FLOOD WATCH CONTINUES FOR",
                     "* A PORTION OF WEST CENTRAL FLORIDA...INCLUDING THE FOLLOWING AREA...PASCO.",
                     "* UNTIL 8 PM EST THIS EVENING",
                     ],
    },
    {
    "commentary": "cancel 2nd event",
    "name": "Hazard_FFA_11",
    "drtTime": "20100104_0000",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'GO '}",
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ],
    "checkStrings": ["FLOOD WATCH",
                     "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
                     "FLZ049-",
                     "/X.CAN.KTBW.FA.A.0002.000000T0000Z-100104T0100Z/",
                     "/00000.0.GO.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
                     "...FLOOD WATCH IS CANCELLED...",
                     "THE FLOOD WATCH FOR A PORTION OF WEST CENTRAL FLORIDA HAS BEEN CANCELLED.",
                     ],
    },

    {
    "commentary": "Deleting hazard grids.",
    "name": "Hazard_FFA_12",
    "productType": None,
    "checkStrings": [],
    "clearHazardsTable": 1,
    },

# Begin detailed phrasing of location tests
    {
    "commentary": "one state, single area, w/o location",
    "name": "Hazard_FFA_13a",
    "drtTime": "20100101_0510",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "decodeVTEC": 0,
    "vtecMode": "O",
    "fileChanges": [("AreaDictionary", "TextUtility", "add", areaT1, "delete"),],
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLZ050"]),
       ],
    "checkStrings": [
      "WGUS62 KTBW 010510",
      "FFATBW",
      "URGENT - IMMEDIATE BROADCAST REQUESTED",
      "FLOOD WATCH",
      "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
      "1210 AM EST FRI JAN 1 2010",
      "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
      ".|*OVERVIEW (MUST EDIT)*|.",
      "FLZ050-010800-",
      "/O.NEW.KTBW.FA.A.0001.100101T0510Z-100101T0800Z/",
      "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
      "PINELLAS-",
      "1210 AM EST FRI JAN 1 2010",
      "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
      "* FLOOD WATCH FOR A PORTION OF WESTERN FLORIDA...INCLUDING THE FOLLOWING AREA...PINELLAS.",
      "* UNTIL 3 AM EST EARLY THIS MORNING",
      "* |* BASIS FOR THE WATCH *|",
      "* |* (OPTIONAL) POTENTIAL IMPACTS OF FLOODING *|",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
      "A FLOOD WATCH MEANS THERE IS A POTENTIAL FOR FLOODING BASED ON CURRENT FORECASTS.",
      "YOU SHOULD MONITOR LATER FORECASTS AND BE ALERT FOR POSSIBLE FLOOD WARNINGS. THOSE LIVING IN AREAS PRONE TO FLOODING SHOULD BE PREPARED TO TAKE ACTION SHOULD FLOODING DEVELOP.",
      "&&",
      "$$",
       ],
    },

    {
    "commentary": "one state, single area, w location",
    "name": "Hazard_FFA_13b",
    "drtTime": "20100101_0510",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "decodeVTEC": 0,
    "vtecMode": "O",
    "fileChanges": [("AreaDictionary", "TextUtility", "add", areaT2, "delete"),],
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLZ050"]),
       ],
    "checkStrings": [
      "WGUS62 KTBW 010510",
      "FFATBW",
      "URGENT - IMMEDIATE BROADCAST REQUESTED",
      "FLOOD WATCH",
      "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
      "1210 AM EST FRI JAN 1 2010",
      "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
      ".|*OVERVIEW (MUST EDIT)*|.",
      "FLZ050-010800-",
      "/O.NEW.KTBW.FA.A.0001.100101T0510Z-100101T0800Z/",
      "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
      "PINELLAS-",
      "1210 AM EST FRI JAN 1 2010",
      "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
      "* FLOOD WATCH FOR A PORTION OF WESTERN FLORIDA...INCLUDING THE FOLLOWING AREA...CLEARFIELD.",
      "* UNTIL 3 AM EST EARLY THIS MORNING",
      "* |* BASIS FOR THE WATCH *|",
      "* |* (OPTIONAL) POTENTIAL IMPACTS OF FLOODING *|",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
      "A FLOOD WATCH MEANS THERE IS A POTENTIAL FOR FLOODING BASED ON CURRENT FORECASTS.",
      "YOU SHOULD MONITOR LATER FORECASTS AND BE ALERT FOR POSSIBLE FLOOD WARNINGS. THOSE LIVING IN AREAS PRONE TO FLOODING SHOULD BE PREPARED TO TAKE ACTION SHOULD FLOODING DEVELOP.",
      "&&",
      "$$",
       ],
    },

    {
    "commentary": "two states, single area, w/o location",
    "name": "Hazard_FFA_14a",
    "drtTime": "20100101_0510",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "decodeVTEC": 0,
    "vtecMode": "O",
    "fileChanges": [("AreaDictionary", "TextUtility", "add", areaT1, "delete"),],
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLZ050","FLZ057",
         "FLZ052","FLZ055"]),
       ],
    "checkStrings": [
       "WGUS62 KTBW 010510",
       "FFATBW",
       "URGENT - IMMEDIATE BROADCAST REQUESTED",
       "FLOOD WATCH",
       "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
       "1210 AM EST FRI JAN 1 2010",
       "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
       ".|*OVERVIEW (MUST EDIT)*|.",
       "FLZ050-052-055-057-010800-",
       "/O.NEW.KTBW.FA.A.0001.100101T0510Z-100101T0800Z/",
       "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
       "PINELLAS-POLK-MANATEE-HIGHLANDS-",
       "INCLUDING THE CITIES OF...ST. PETERSBURG...CLEARWATER...LARGO...",
       "LAKELAND...WINTER HAVEN...BRADENTON...BAYSHORE GARDENS...",
       "PALMETTO...SEBRING...AVON PARK...PLACID LAKES",
       "1210 AM EST FRI JAN 1 2010",
       "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
       "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
       "* FLOOD WATCH FOR PORTIONS OF WESTERN FLORIDA AND WESTERN GEORGIA...INCLUDING THE FOLLOWING AREAS...IN WESTERN FLORIDA...HIGHLANDS AND PINELLAS. IN WESTERN GEORGIA...MANATEE AND POLK.",
       "* UNTIL 3 AM EST EARLY THIS MORNING",
       "* |* BASIS FOR THE WATCH *|",
       "* |* (OPTIONAL) POTENTIAL IMPACTS OF FLOODING *|",
       "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
       "A FLOOD WATCH MEANS THERE IS A POTENTIAL FOR FLOODING BASED ON CURRENT FORECASTS.",
       "YOU SHOULD MONITOR LATER FORECASTS AND BE ALERT FOR POSSIBLE FLOOD WARNINGS. THOSE LIVING IN AREAS PRONE TO FLOODING SHOULD BE PREPARED TO TAKE ACTION SHOULD FLOODING DEVELOP.",
       "&&",
       "$$",
       ],
    },

    {
    "commentary": "two states, single area, w location",
    "name": "Hazard_FFA_14b",
    "drtTime": "20100101_0510",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "decodeVTEC": 0,
    "vtecMode": "O",
    "fileChanges": [("AreaDictionary", "TextUtility", "add", areaT2, "delete"),],
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLZ050","FLZ057",
         "FLZ052","FLZ055"]),
       ],
    "checkStrings": [
       "WGUS62 KTBW 010510",
       "FFATBW",
       "URGENT - IMMEDIATE BROADCAST REQUESTED",
       "FLOOD WATCH",
       "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
       "1210 AM EST FRI JAN 1 2010",
       "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
       ".|*OVERVIEW (MUST EDIT)*|.",
       "FLZ050-052-055-057-010800-",
       "/O.NEW.KTBW.FA.A.0001.100101T0510Z-100101T0800Z/",
       "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
       "PINELLAS-POLK-MANATEE-HIGHLANDS-",
       "1210 AM EST FRI JAN 1 2010",
       "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
       "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
       "* FLOOD WATCH FOR PORTIONS OF WESTERN FLORIDA AND WESTERN GEORGIA...INCLUDING THE FOLLOWING AREAS...IN WESTERN FLORIDA...CLEARFIELD. IN WESTERN GEORGIA...ATLANTA AND TAMPA.",
       "* UNTIL 3 AM EST EARLY THIS MORNING",
       "* |* BASIS FOR THE WATCH *|",
       "* |* (OPTIONAL) POTENTIAL IMPACTS OF FLOODING *|",
       "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
       "A FLOOD WATCH MEANS THERE IS A POTENTIAL FOR FLOODING BASED ON CURRENT FORECASTS.",
       "YOU SHOULD MONITOR LATER FORECASTS AND BE ALERT FOR POSSIBLE FLOOD WARNINGS. THOSE LIVING IN AREAS PRONE TO FLOODING SHOULD BE PREPARED TO TAKE ACTION SHOULD FLOODING DEVELOP.",
       "&&",
       "$$",
       ],
    },

    {
    "commentary": "one state, multiple areas, w/o location",
    "name": "Hazard_FFA_15a",
    "drtTime": "20100101_0510",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "decodeVTEC": 0,
    "vtecMode": "O",
    "fileChanges": [("AreaDictionary", "TextUtility", "add", areaT1, "delete"),],
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLZ050","FLZ060",
         "FLZ057","FLZ051","FLZ056"]),
       ],
    "checkStrings": [
      "WGUS62 KTBW 010510",
      "FFATBW",
      "URGENT - IMMEDIATE BROADCAST REQUESTED",
      "FLOOD WATCH",
      "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
      "1210 AM EST FRI JAN 1 2010",
      "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
      ".|*OVERVIEW (MUST EDIT)*|.",
      "FLZ050-051-056-057-060-010800-",
      "/O.NEW.KTBW.FA.A.0001.100101T0510Z-100101T0800Z/",
      "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
      "PINELLAS-HILLSBOROUGH-HARDEE-HIGHLANDS-SARASOTA-",
      "1210 AM EST FRI JAN 1 2010",
      "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
      "* FLOOD WATCH FOR PORTIONS OF CENTRAL FLORIDA...SOUTHERN FLORIDA AND WESTERN FLORIDA...INCLUDING THE FOLLOWING AREAS...IN CENTRAL FLORIDA...HILLSBOROUGH AND SARASOTA. IN SOUTHERN FLORIDA...HARDEE. IN WESTERN FLORIDA...HIGHLANDS AND PINELLAS.",
      "* UNTIL 3 AM EST EARLY THIS MORNING",
      "* |* BASIS FOR THE WATCH *|",
      "* |* (OPTIONAL) POTENTIAL IMPACTS OF FLOODING *|",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
      "A FLOOD WATCH MEANS THERE IS A POTENTIAL FOR FLOODING BASED ON CURRENT FORECASTS.",
      "YOU SHOULD MONITOR LATER FORECASTS AND BE ALERT FOR POSSIBLE FLOOD WARNINGS. THOSE LIVING IN AREAS PRONE TO FLOODING SHOULD BE PREPARED TO TAKE ACTION SHOULD FLOODING DEVELOP.",
      "&&",
      "$$",
       ],
    },

    {
    "commentary": "one state, multiple areas, w location",
    "name": "Hazard_FFA_15b",
    "drtTime": "20100101_0510",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "decodeVTEC": 0,
    "vtecMode": "O",
    "fileChanges": [("AreaDictionary", "TextUtility", "add", areaT2, "delete"),],
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLZ050","FLZ060",
         "FLZ057","FLZ051","FLZ056"]),
       ],
    "checkStrings": [
       "WGUS62 KTBW 010510",
       "FFATBW",
       "URGENT - IMMEDIATE BROADCAST REQUESTED",
       "FLOOD WATCH",
       "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
       "1210 AM EST FRI JAN 1 2010",
       "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
       ".|*OVERVIEW (MUST EDIT)*|.",
       "FLZ050-051-056-057-060-010800-",
       "/O.NEW.KTBW.FA.A.0001.100101T0510Z-100101T0800Z/",
       "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
       "PINELLAS-HILLSBOROUGH-HARDEE-HIGHLANDS-SARASOTA-",
       "1210 AM EST FRI JAN 1 2010",
       "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
       "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
       "* FLOOD WATCH FOR PORTIONS OF CENTRAL FLORIDA...SOUTHERN FLORIDA AND WESTERN FLORIDA...INCLUDING THE FOLLOWING AREAS...IN CENTRAL FLORIDA...AUNT RUBY. IN SOUTHERN FLORIDA...TAMPA. IN WESTERN FLORIDA...CLEARFIELD.",
       "* UNTIL 3 AM EST EARLY THIS MORNING",
       "* |* BASIS FOR THE WATCH *|",
       "* |* (OPTIONAL) POTENTIAL IMPACTS OF FLOODING *|",
       "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
       "A FLOOD WATCH MEANS THERE IS A POTENTIAL FOR FLOODING BASED ON CURRENT FORECASTS.",
       "YOU SHOULD MONITOR LATER FORECASTS AND BE ALERT FOR POSSIBLE FLOOD WARNINGS. THOSE LIVING IN AREAS PRONE TO FLOODING SHOULD BE PREPARED TO TAKE ACTION SHOULD FLOODING DEVELOP.",
       "&&",
       "$$",
       ],
    },

    {
    "commentary": "two states, single area 1st, mulitple area 2nd, w/o location",
    "name": "Hazard_FFA_16a",
    "drtTime": "20100101_0510",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "decodeVTEC": 0,
    "vtecMode": "O",
    "fileChanges": [("AreaDictionary", "TextUtility", "add", areaT1, "delete"),],
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLZ050","FLZ052",
         "FLZ055","FLZ061"]),
       ],
    "checkStrings": [
       "WGUS62 KTBW 010510",
       "FFATBW",
       "URGENT - IMMEDIATE BROADCAST REQUESTED",
       "FLOOD WATCH",
       "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
       "1210 AM EST FRI JAN 1 2010",
       "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
       ".|*OVERVIEW (MUST EDIT)*|.",
       "FLZ050-052-055-061-010800-",
       "/O.NEW.KTBW.FA.A.0001.100101T0510Z-100101T0800Z/",
       "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
       "PINELLAS-POLK-MANATEE-DE SOTO-",
       "1210 AM EST FRI JAN 1 2010",
       "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
       "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
       "* FLOOD WATCH FOR PORTIONS OF WESTERN FLORIDA AND GEORGIA...INCLUDING THE FOLLOWING AREAS...IN WESTERN FLORIDA...PINELLAS. IN GEORGIA...DE SOTO...MANATEE AND POLK.",
       "* UNTIL 3 AM EST EARLY THIS MORNING",
       "* |* BASIS FOR THE WATCH *|",
       "* |* (OPTIONAL) POTENTIAL IMPACTS OF FLOODING *|",
       "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
       "A FLOOD WATCH MEANS THERE IS A POTENTIAL FOR FLOODING BASED ON CURRENT FORECASTS.",
       "YOU SHOULD MONITOR LATER FORECASTS AND BE ALERT FOR POSSIBLE FLOOD WARNINGS. THOSE LIVING IN AREAS PRONE TO FLOODING SHOULD BE PREPARED TO TAKE ACTION SHOULD FLOODING DEVELOP.",
       "&&",
       "$$",
       ],
    },

    {
    "commentary": "two states, single area 1st, mulitple area 2nd, w location",
    "name": "Hazard_FFA_16b",
    "drtTime": "20100101_0510",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "decodeVTEC": 0,
    "vtecMode": "O",
    "fileChanges": [("AreaDictionary", "TextUtility", "add", areaT2, "delete"),],
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLZ050","FLZ052",
         "FLZ055","FLZ061"]),
       ],
    "checkStrings": [
       "WGUS62 KTBW 010510",
       "FFATBW",
       "URGENT - IMMEDIATE BROADCAST REQUESTED",
       "FLOOD WATCH",
       "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
       "1210 AM EST FRI JAN 1 2010",
       "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
       ".|*OVERVIEW (MUST EDIT)*|.",
       "FLZ050-052-055-061-010800-",
       "/O.NEW.KTBW.FA.A.0001.100101T0510Z-100101T0800Z/",
       "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
       "PINELLAS-POLK-MANATEE-DE SOTO-",
       "1210 AM EST FRI JAN 1 2010",
       "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
       "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
       "* FLOOD WATCH FOR PORTIONS OF WESTERN FLORIDA AND GEORGIA...INCLUDING THE FOLLOWING AREAS...IN WESTERN FLORIDA...CLEARFIELD. IN GEORGIA...ATLANTA...BEACH AND TAMPA.",
       "* UNTIL 3 AM EST EARLY THIS MORNING",
       "* |* BASIS FOR THE WATCH *|",
       "* |* (OPTIONAL) POTENTIAL IMPACTS OF FLOODING *|",
       "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
       "A FLOOD WATCH MEANS THERE IS A POTENTIAL FOR FLOODING BASED ON CURRENT FORECASTS.",
       "YOU SHOULD MONITOR LATER FORECASTS AND BE ALERT FOR POSSIBLE FLOOD WARNINGS. THOSE LIVING IN AREAS PRONE TO FLOODING SHOULD BE PREPARED TO TAKE ACTION SHOULD FLOODING DEVELOP.",
       "&&",
       "$$",
       ],
    },

    {
    "commentary": "two states, multiple areas, w/o location",
    "name": "Hazard_FFA_17a",
    "drtTime": "20100101_0510",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "decodeVTEC": 0,
    "vtecMode": "O",
    "fileChanges": [("AreaDictionary", "TextUtility", "add", areaT1, "delete"),],
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLZ050","FLZ057",
         "FLZ060","FLZ051","FLZ052","FLZ055","FLZ061","FLZ048"]),
       ],
    "checkStrings": [
       "WGUS62 KTBW 010510",
       "FFATBW",
       "URGENT - IMMEDIATE BROADCAST REQUESTED",
       "FLOOD WATCH",
       "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
       "1210 AM EST FRI JAN 1 2010",
       "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
       ".|*OVERVIEW (MUST EDIT)*|.",
       "FLZ048-050>052-055-057-060-061-010800-",
       "/O.NEW.KTBW.FA.A.0001.100101T0510Z-100101T0800Z/",
       "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
       "HERNANDO-PINELLAS-HILLSBOROUGH-POLK-MANATEE-HIGHLANDS-SARASOTA-",
       "DE SOTO-",
       "1210 AM EST FRI JAN 1 2010",
       "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
       "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
       "* FLOOD WATCH FOR PORTIONS OF FLORIDA AND GEORGIA...INCLUDING THE FOLLOWING AREAS...IN FLORIDA...HIGHLANDS...HILLSBOROUGH...PINELLAS AND SARASOTA. IN GEORGIA...DE SOTO...HERNANDO...MANATEE AND POLK.",
       "* UNTIL 3 AM EST EARLY THIS MORNING",
       "* |* BASIS FOR THE WATCH *|",
       "* |* (OPTIONAL) POTENTIAL IMPACTS OF FLOODING *|",
       "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
       "A FLOOD WATCH MEANS THERE IS A POTENTIAL FOR FLOODING BASED ON CURRENT FORECASTS.",
       "YOU SHOULD MONITOR LATER FORECASTS AND BE ALERT FOR POSSIBLE FLOOD WARNINGS. THOSE LIVING IN AREAS PRONE TO FLOODING SHOULD BE PREPARED TO TAKE ACTION SHOULD FLOODING DEVELOP.",
       "&&",
       "$$",
       ],
    },

    {
    "commentary": "two states, multiple areas, w location",
    "name": "Hazard_FFA_17b",
    "drtTime": "20100101_0510",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "decodeVTEC": 0,
    "vtecMode": "O",
    "fileChanges": [("AreaDictionary", "TextUtility", "add", areaT2, "delete"),],
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLZ050","FLZ057",
         "FLZ060","FLZ051","FLZ052","FLZ055","FLZ061","FLZ048"]),
       ],
    "checkStrings": [
       "WGUS62 KTBW 010510",
       "FFATBW",
       "URGENT - IMMEDIATE BROADCAST REQUESTED",
       "FLOOD WATCH",
       "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
       "1210 AM EST FRI JAN 1 2010",
       "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
       ".|*OVERVIEW (MUST EDIT)*|.",
       "FLZ048-050>052-055-057-060-061-010800-",
       "/O.NEW.KTBW.FA.A.0001.100101T0510Z-100101T0800Z/",
       "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
       "HERNANDO-PINELLAS-HILLSBOROUGH-POLK-MANATEE-HIGHLANDS-SARASOTA-",
       "DE SOTO-",
       "1210 AM EST FRI JAN 1 2010",
       "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
       "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
       "* FLOOD WATCH FOR PORTIONS OF FLORIDA AND GEORGIA...INCLUDING THE FOLLOWING AREAS...IN FLORIDA...AUNT RUBY AND CLEARFIELD. IN GEORGIA...ATLANTA...BEACH AND TAMPA.",
       "* UNTIL 3 AM EST EARLY THIS MORNING",
       "* |* BASIS FOR THE WATCH *|",
       "* |* (OPTIONAL) POTENTIAL IMPACTS OF FLOODING *|",
       "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
       "A FLOOD WATCH MEANS THERE IS A POTENTIAL FOR FLOODING BASED ON CURRENT FORECASTS.",
       "YOU SHOULD MONITOR LATER FORECASTS AND BE ALERT FOR POSSIBLE FLOOD WARNINGS. THOSE LIVING IN AREAS PRONE TO FLOODING SHOULD BE PREPARED TO TAKE ACTION SHOULD FLOODING DEVELOP.",
       "&&",
       "$$",
       ],
    },


    {
    "commentary": "parishes 1, independent 1, counties 1",
    "name": "Hazard_FFA_18a",
    "drtTime": "20100101_0510",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "decodeVTEC": 0,
    "vtecMode": "O",
    "fileChanges": [
       ("AreaDictionary", "TextUtility", "add", areaT3, "delete"),
       ("Hazard_FFA_Local", "TextProduct", "replace", 
         areaT3FIPS1, "delete"),
       ],
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLC017","FLC027",
         "FLC053"]),
       ],
    "checkStrings": [
      "WGUS62 KTBW 010510",
      "FFATBW",
      "URGENT - IMMEDIATE BROADCAST REQUESTED",
      "FLOOD WATCH",
      "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
      "1210 AM EST FRI JAN 1 2010",
      "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
      ".|*OVERVIEW (MUST EDIT)*|.",
      "FLC017-027-053-010800-",
      "/O.NEW.KTBW.FA.A.0001.100101T0510Z-100101T0800Z/",
      "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
      "CITRUS-DESOTO-HERNANDO-",
      "1210 AM EST FRI JAN 1 2010",
      "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
      "* FLOOD WATCH FOR PORTIONS OF WESTERN FLORIDA AND WESTERN LOUISIANA...INCLUDING THE FOLLOWING COUNTY AND INDEPENDENT CITY AND PARISH...IN WESTERN FLORIDA...HERNANDO. IN WESTERN LOUISIANA...CITRUS AND DESOTO.",
      "* UNTIL 3 AM EST EARLY THIS MORNING",
      "* |* BASIS FOR THE WATCH *|",
      "* |* (OPTIONAL) POTENTIAL IMPACTS OF FLOODING *|",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
      "A FLOOD WATCH MEANS THERE IS A POTENTIAL FOR FLOODING BASED ON CURRENT FORECASTS.",
      "YOU SHOULD MONITOR LATER FORECASTS AND BE ALERT FOR POSSIBLE FLOOD WARNINGS. THOSE LIVING IN AREAS PRONE TO FLOODING SHOULD BE PREPARED TO TAKE ACTION SHOULD FLOODING DEVELOP.",
      "&&",
      "$$",
       ],
    },

    {
    "commentary": "parishes 2, independent 1, counties 1",
    "name": "Hazard_FFA_18b",
    "drtTime": "20100101_0510",
    "productType": "Hazard_FFA_Local",
    "cmdLineVars": "{('Flood Reason', 'floodReason'): 'ER '}",
    "decodeVTEC": 0,
    "vtecMode": "O",
    "fileChanges": [
       ("AreaDictionary", "TextUtility", "add", areaT3, "delete"),
       ("Hazard_FFA_Local", "TextProduct", "replace", 
         areaT3FIPS1, "delete"),
       ],
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 3, "FA.A", ["FLC017","FLC027",
         "FLC053","FLC105"]),
       ],
    "checkStrings": [
      "WGUS62 KTBW 010510",
      "FFATBW",
      "URGENT - IMMEDIATE BROADCAST REQUESTED",
      "FLOOD WATCH",
      "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
      "1210 AM EST FRI JAN 1 2010",
      "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
      ".|*OVERVIEW (MUST EDIT)*|.",
      "FLC017-027-053-105-010800-",
      "/O.NEW.KTBW.FA.A.0001.100101T0510Z-100101T0800Z/",
      "/00000.0.ER.000000T0000Z.000000T0000Z.000000T0000Z.OO/",
      "CITRUS-DESOTO-HERNANDO-POLK-",
      "1210 AM EST FRI JAN 1 2010",
      "...FLOOD WATCH IN EFFECT UNTIL 3 AM EST EARLY THIS MORNING...",
      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A",
      "* FLOOD WATCH FOR PORTIONS OF WESTERN FLORIDA AND WESTERN LOUISIANA...INCLUDING THE FOLLOWING COUNTY AND INDEPENDENT CITY AND PARISHES...IN WESTERN FLORIDA...HERNANDO. IN WESTERN LOUISIANA...CITRUS...DESOTO AND POLK.",
      "* UNTIL 3 AM EST EARLY THIS MORNING",
      "* |* BASIS FOR THE WATCH *|",
      "* |* (OPTIONAL) POTENTIAL IMPACTS OF FLOODING *|",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
      "A FLOOD WATCH MEANS THERE IS A POTENTIAL FOR FLOODING BASED ON CURRENT FORECASTS.",
      "YOU SHOULD MONITOR LATER FORECASTS AND BE ALERT FOR POSSIBLE FLOOD WARNINGS. THOSE LIVING IN AREAS PRONE TO FLOODING SHOULD BE PREPARED TO TAKE ACTION SHOULD FLOODING DEVELOP.",
      "&&",
      "$$",
       ],
    },
    ]

       
import TestScript
def testScript(self, dataMgr):
    defaults = {
        "database": "<site>_GRID__Official_00000000_0000",
        "publishGrids": 1,
        "decodeVTEC": 1,
        "gridsStartTime": "20100101_0500",
        "orderStrings": 1,
        "vtecMode": "X",
        "deleteGrids": [("Fcst", "Hazards", "SFC", "all", "all")],
        }
    return TestScript.generalTestScript(self, dataMgr, scripts, defaults)




