##
# 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.
#
# More VTEC_GHG Complex Hazard Tests 
#
# Author:
# ----------------------------------------------------------------------------

scripts = [
    {
    "commentary": "Clear out all Hazards Table and Grids.",
    "name": "GHG_Complex3_0",
    "productType":None,
    "clearHazardsTable": 1,
    "checkStrings": [],
    },
    {

    "commentary": """
    Creating a WW.Y hazard for Area1, Area2, Area3, and Area4
    Area1 (FLZ039, FLZ042) 0-30
    Area2 (FLZ048, FLZ049) 0-23
    Area3 (FLZ052, FLZ055) 27-30
    Area4 (FLZ060, FLZ061) 23-30
    Note that we had to condense this to 3 different time ranges to accomodate the overlaps in time
    """,
    
    "name": "GHG_Complex3_1",
    "productType": "Hazard_WSW_Local",
    "createGrids": [
       ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
       ("Fcst", "Hazards", "DISCRETE", 0, 23, "WW.Y", ["FLZ039", "FLZ042", "FLZ048", "FLZ049"]), 
       ("Fcst", "Hazards", "DISCRETE", 23, 27, "WW.Y", ["FLZ039", "FLZ042", "FLZ060", "FLZ061"]),
       ("Fcst", "Hazards", "DISCRETE", 27, 30, "WW.Y", ["FLZ039", "FLZ042", "FLZ052", "FLZ055", "FLZ060", "FLZ061"]),
       ],
    "checkStrings": [
      "WWUS42 KTBW 010000",
      "WSWTBW",
      "URGENT - WINTER WEATHER MESSAGE",
      "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
      "700 PM EST THU DEC 31 2009",
      "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
      ".|*OVERVIEW (MUST EDIT)*|.",
      "FLZ048-049-010800-",
      "/O.NEW.KTBW.WW.Y.0001.100101T0000Z-100101T2300Z/",
      "HERNANDO-PASCO-",
      "700 PM EST THU DEC 31 2009",
      "...WINTER WEATHER ADVISORY IN EFFECT UNTIL 6 PM EST FRIDAY...",
#      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A WINTER WEATHER ADVISORY...WHICH IS IN EFFECT UNTIL 6 PM EST FRIDAY.",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "&&",
      "$$",
      "FLZ039-042-010800-",
      "/O.NEW.KTBW.WW.Y.0001.100101T0000Z-100102T0600Z/",
      "LEVY-CITRUS-",
      "700 PM EST THU DEC 31 2009",
      "...WINTER WEATHER ADVISORY IN EFFECT UNTIL 1 AM EST SATURDAY...",
#      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A WINTER WEATHER ADVISORY...WHICH IS IN EFFECT UNTIL 1 AM EST SATURDAY.",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "&&",
      "$$",
      "FLZ060-061-010800-",
      "/O.NEW.KTBW.WW.Y.0001.100101T2300Z-100102T0600Z/",
      "SARASOTA-DE SOTO-",
      "700 PM EST THU DEC 31 2009",
      "...WINTER WEATHER ADVISORY IN EFFECT FROM 6 PM FRIDAY TO 1 AM EST SATURDAY...",
#      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A WINTER WEATHER ADVISORY...WHICH IS IN EFFECT FROM 6 PM FRIDAY TO 1 AM EST SATURDAY.",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "&&",
      "$$",
      "FLZ052-055-010800-",
      "/O.NEW.KTBW.WW.Y.0001.100102T0300Z-100102T0600Z/",
      "POLK-MANATEE-",
      "700 PM EST THU DEC 31 2009",
      "...WINTER WEATHER ADVISORY IN EFFECT FROM 10 PM FRIDAY TO 1 AM EST SATURDAY...",
#      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A WINTER WEATHER ADVISORY...WHICH IS IN EFFECT FROM 10 PM FRIDAY TO 1 AM EST SATURDAY.",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "&&",
      "$$",
                     ],
    },
    {
    "commentary": "No changes are made to the existing hazards.",
    "name": "GHG_Complex3_2",
    "productType": "Hazard_WSW_Local",
    "deleteGrids": [],
    "checkStrings": [
      "WWUS42 KTBW 010000",
      "WSWTBW",
      "URGENT - WINTER WEATHER MESSAGE",
      "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
      "700 PM EST THU DEC 31 2009",
      "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
      ".|*OVERVIEW (MUST EDIT)*|.",
      "FLZ048-049-010800-",
      "/O.CON.KTBW.WW.Y.0001.000000T0000Z-100101T2300Z/",
      "HERNANDO-PASCO-",
      "700 PM EST THU DEC 31 2009",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "A WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY. ",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "&&",
      "$$",
      "FLZ039-042-010800-",
      "/O.CON.KTBW.WW.Y.0001.000000T0000Z-100102T0600Z/",
      "LEVY-CITRUS-",
      "700 PM EST THU DEC 31 2009",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 1 AM EST SATURDAY...",
      "A WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 1 AM EST SATURDAY. ",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "&&",
      "$$",
      "FLZ060-061-010800-",
      "/O.CON.KTBW.WW.Y.0001.100101T2300Z-100102T0600Z/",
      "SARASOTA-DE SOTO-",
      "700 PM EST THU DEC 31 2009",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 6 PM FRIDAY TO 1 AM EST SATURDAY...",
      "A WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 6 PM FRIDAY TO 1 AM EST SATURDAY. ",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "&&",
      "$$",
      "FLZ052-055-010800-",
      "/O.CON.KTBW.WW.Y.0001.100102T0300Z-100102T0600Z/",
      "POLK-MANATEE-",
      "700 PM EST THU DEC 31 2009",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 10 PM FRIDAY TO 1 AM EST SATURDAY...",
      "A WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 10 PM FRIDAY TO 1 AM EST SATURDAY. ",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "&&",
      "$$",
                     ],
    },
    {
    
    "commentary": """
    Creating a WC.Y hazard for the entire CWA
    Area5 (FLZ039, FLZ042, FLZ043, FLZ048, FLZ049, FLZ050, FLZ051, FLZ052, FLZ055, FLZ056, FLZ057, FLZ060, FLZ061, FLZ062, FLZ065) 0-23
    """,

    "name": "GHG_Complex3_3",
    "productType": "Hazard_WSW_Local",
    "createGrids": [
        ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
        ("Fcst", "Hazards", "DISCRETE", 0, 23, "WC.Y", ["FLZ039", "FLZ042", "FLZ043", "FLZ048", "FLZ049", "FLZ050", "FLZ051", "FLZ052", "FLZ055", "FLZ056", "FLZ057", "FLZ060", "FLZ061", "FLZ062", "FLZ065"]),
        ("Fcst", "Hazards", "DISCRETE", 0, 23, "WW.Y^WC.Y", ["FLZ039", "FLZ042", "FLZ048", "FLZ049"]),
        ("Fcst", "Hazards", "DISCRETE", 23, 27, "WW.Y", ["FLZ039", "FLZ042", "FLZ060", "FLZ061"]),
        ("Fcst", "Hazards", "DISCRETE", 27, 30, "WW.Y", ["FLZ039", "FLZ042", "FLZ052", "FLZ055", "FLZ060", "FLZ061"]),
        ],
    "checkStrings": [
      "WWUS42 KTBW 010000",
      "WSWTBW",
      "URGENT - WINTER WEATHER MESSAGE",
      "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
      "700 PM EST THU DEC 31 2009",
      "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
      ".|*OVERVIEW (MUST EDIT)*|.",
      "FLZ039-042-010800-",
      "/O.NEW.KTBW.WC.Y.0001.100101T0000Z-100101T2300Z/",
      "/O.CON.KTBW.WW.Y.0001.000000T0000Z-100102T0600Z/",
      "LEVY-CITRUS-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 1 AM EST SATURDAY...",
      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A WIND CHILL ADVISORY...WHICH IS IN EFFECT UNTIL 6 PM EST FRIDAY. A WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 1 AM EST SATURDAY. ",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
      "FLZ048-049-010800-",
      "/O.NEW.KTBW.WC.Y.0001.100101T0000Z-100101T2300Z/",
      "/O.CON.KTBW.WW.Y.0001.000000T0000Z-100101T2300Z/",
      "HERNANDO-PASCO-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A WIND CHILL ADVISORY...WHICH IS IN EFFECT UNTIL 6 PM EST FRIDAY. A WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY. ",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
      "FLZ060-061-010800-",
      "/O.NEW.KTBW.WC.Y.0001.100101T0000Z-100101T2300Z/",
      "/O.CON.KTBW.WW.Y.0001.100101T2300Z-100102T0600Z/",
      "SARASOTA-DE SOTO-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 6 PM FRIDAY TO 1 AM EST SATURDAY...",
      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A WIND CHILL ADVISORY...WHICH IS IN EFFECT UNTIL 6 PM EST FRIDAY. A WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 6 PM FRIDAY TO 1 AM EST SATURDAY. ",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
      "FLZ052-055-010800-",
      "/O.NEW.KTBW.WC.Y.0001.100101T0000Z-100101T2300Z/",
      "/O.CON.KTBW.WW.Y.0001.100102T0300Z-100102T0600Z/",
      "POLK-MANATEE-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 10 PM FRIDAY TO 1 AM EST SATURDAY...",
      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A WIND CHILL ADVISORY...WHICH IS IN EFFECT UNTIL 6 PM EST FRIDAY. A WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 10 PM FRIDAY TO 1 AM EST SATURDAY. ",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
      "FLZ043-050-051-056-057-062-065-010800-",
      "/O.NEW.KTBW.WC.Y.0001.100101T0000Z-100101T2300Z/",
      "SUMTER-PINELLAS-HILLSBOROUGH-HARDEE-HIGHLANDS-CHARLOTTE-LEE-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS ISSUED A WIND CHILL ADVISORY...WHICH IS IN EFFECT UNTIL 6 PM EST FRIDAY. ",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
                     ],
    },
    {
    "commentary": "No changes are made to the existing hazards.",
    "name": "GHG_Complex3_4",
    "productType": "Hazard_WSW_Local",
    "deleteGrids": [],        
    "checkStrings": [
      "WWUS42 KTBW 010000",
      "WSWTBW",
      "URGENT - WINTER WEATHER MESSAGE",
      "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
      "700 PM EST THU DEC 31 2009",
      "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
      ".|*OVERVIEW (MUST EDIT)*|.",
      "FLZ039-042-010800-",
      "/O.CON.KTBW.WC.Y.0001.000000T0000Z-100101T2300Z/",
      "/O.CON.KTBW.WW.Y.0001.000000T0000Z-100102T0600Z/",
      "LEVY-CITRUS-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 1 AM EST SATURDAY...",
      "",
      "A WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 1 AM EST SATURDAY. A WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY.",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
      "FLZ048-049-010800-",
      "/O.CON.KTBW.WC.Y.0001.000000T0000Z-100101T2300Z/",
      "/O.CON.KTBW.WW.Y.0001.000000T0000Z-100101T2300Z/",
      "HERNANDO-PASCO-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "A WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY. A WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY.",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
      "FLZ060-061-010800-",
      "/O.CON.KTBW.WC.Y.0001.000000T0000Z-100101T2300Z/",
      "/O.CON.KTBW.WW.Y.0001.100101T2300Z-100102T0600Z/",
      "SARASOTA-DE SOTO-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 6 PM FRIDAY TO 1 AM EST SATURDAY...",
      "A WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY. A WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 6 PM FRIDAY TO 1 AM EST SATURDAY.",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
      "FLZ052-055-010800-",
      "/O.CON.KTBW.WC.Y.0001.000000T0000Z-100101T2300Z/",
      "/O.CON.KTBW.WW.Y.0001.100102T0300Z-100102T0600Z/",
      "POLK-MANATEE-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 10 PM FRIDAY TO 1 AM EST SATURDAY...",
      "A WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY. A WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 10 PM FRIDAY TO 1 AM EST SATURDAY.",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
      "FLZ043-050-051-056-057-062-065-010800-",
      "/O.CON.KTBW.WC.Y.0001.000000T0000Z-100101T2300Z/",
      "SUMTER-PINELLAS-HILLSBOROUGH-HARDEE-HIGHLANDS-CHARLOTTE-LEE-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "A WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY.",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
                     ],
    },
    {

    "commentary": """
    Removing Area2 and the WW.Y hazard
    Area2 (FLZ048, FLZ049) 0-23
    """,
    
    "name": "GHG_Complex3_5",
    "productType": "Hazard_WSW_Local",
    "createGrids": [
        ("Fcst", "Hazards", "DISCRETE", -100, 100, "<None>", "all"),
        ("Fcst", "Hazards", "DISCRETE", 0, 23, "WC.Y", ["FLZ039", "FLZ042", "FLZ043", "FLZ048", "FLZ049", "FLZ050", "FLZ051", "FLZ052", "FLZ055", "FLZ056", "FLZ057", "FLZ060", "FLZ061", "FLZ062", "FLZ065"]),
        ("Fcst", "Hazards", "DISCRETE", 0, 23, "WW.Y^WC.Y", ["FLZ039", "FLZ042"]),
        ("Fcst", "Hazards", "DISCRETE", 23, 27, "WW.Y", ["FLZ039", "FLZ042", "FLZ060", "FLZ061"]),
        ("Fcst", "Hazards", "DISCRETE", 27, 30, "WW.Y", ["FLZ039", "FLZ042", "FLZ052", "FLZ055", "FLZ060", "FLZ061"]),
        ],
    "checkStrings": [
      "WWUS42 KTBW 010000",
      "WSWTBW",
      "URGENT - WINTER WEATHER MESSAGE",
      "NATIONAL WEATHER SERVICE TAMPA BAY RUSKIN FL",
      "700 PM EST THU DEC 31 2009",
      "...|*OVERVIEW HEADLINE (MUST EDIT)*|...",
      ".|*OVERVIEW (MUST EDIT)*|.",
      "FLZ048-049-010800-",
      "/O.CAN.KTBW.WW.Y.0001.000000T0000Z-100101T2300Z/",
      "/O.CON.KTBW.WC.Y.0001.000000T0000Z-100101T2300Z/",
      "HERNANDO-PASCO-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "...WINTER WEATHER ADVISORY IS CANCELLED...",
      "THE NATIONAL WEATHER SERVICE IN TAMPA BAY RUSKIN HAS CANCELLED THE WINTER WEATHER ADVISORY. A WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY.",
#      "|*|* SEGMENT TEXT GOES HERE *|.*|",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
      "FLZ039-042-010800-",
      "/O.CON.KTBW.WC.Y.0001.000000T0000Z-100101T2300Z/",
      "/O.CON.KTBW.WW.Y.0001.000000T0000Z-100102T0600Z/",
      "LEVY-CITRUS-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 1 AM EST SATURDAY...",
      "A WINTER WEATHER ADVISORY REMAINS IN EFFECT UNTIL 1 AM EST SATURDAY. A WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY.",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
      "FLZ060-061-010800-",
      "/O.CON.KTBW.WC.Y.0001.000000T0000Z-100101T2300Z/",
      "/O.CON.KTBW.WW.Y.0001.100101T2300Z-100102T0600Z/",
      "SARASOTA-DE SOTO-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 6 PM FRIDAY TO 1 AM EST SATURDAY...",
      "A WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY. A WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 6 PM FRIDAY TO 1 AM EST SATURDAY.",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
      "FLZ052-055-010800-",
      "/O.CON.KTBW.WC.Y.0001.000000T0000Z-100101T2300Z/",
      "/O.CON.KTBW.WW.Y.0001.100102T0300Z-100102T0600Z/",
      "POLK-MANATEE-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "...WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 10 PM FRIDAY TO 1 AM EST SATURDAY...",
      "A WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY. A WINTER WEATHER ADVISORY REMAINS IN EFFECT FROM 10 PM FRIDAY TO 1 AM EST SATURDAY.",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
#      "A WINTER WEATHER ADVISORY MEANS THAT PERIODS OF SNOW...SLEET...OR FREEZING RAIN WILL CAUSE TRAVEL DIFFICULTIES. BE PREPARED FOR SLIPPERY ROADS AND LIMITED VISIBILITIES...AND USE CAUTION WHILE DRIVING.",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
      "FLZ043-050-051-056-057-062-065-010800-",
      "/O.CON.KTBW.WC.Y.0001.000000T0000Z-100101T2300Z/",
      "SUMTER-PINELLAS-HILLSBOROUGH-HARDEE-HIGHLANDS-CHARLOTTE-LEE-",
      "700 PM EST THU DEC 31 2009",
      "...WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY...",
      "A WIND CHILL ADVISORY REMAINS IN EFFECT UNTIL 6 PM EST FRIDAY.",
#      "|* SEGMENT TEXT GOES HERE *|.",
      "PRECAUTIONARY/PREPAREDNESS ACTIONS...",
      "A WIND CHILL ADVISORY MEANS THAT VERY COLD AIR AND STRONG WINDS WILL COMBINE TO GENERATE LOW WIND CHILLS. THIS WILL RESULT IN FROST BITE AND LEAD TO HYPOTHERMIA IF PRECAUTIONS ARE NOT TAKEN. IF YOU MUST VENTURE OUTDOORS...MAKE SURE YOU WEAR A HAT AND GLOVES.",
      "&&",
      "$$",
                     ],
    },
    {
    "commentary": "Canceling out all hazards.",
    "name": "GHG_Complex3_6",
    "productType": None,
    "checkStrings": [],
    "clearHazardsTable": 1,
    }, 
    ]


import TestScript
def testScript(self, dataMgr):
    defaults = {
        "database": "<site>_GRID__Official_00000000_0000",
        "publishGrids": 1,
        "decodeVTEC": 1,
        "gridsStartTime": "20100101_0000",
        "orderStrings": 1,
        "cmdLineVars": "{('Issued By', 'issuedBy'): None}",
        "deleteGrids": [("Fcst", "Hazards", "SFC", "all", "all")],
        }
    return TestScript.generalTestScript(self, dataMgr, scripts, defaults)







