# Domestic Client Test Configuration for the development of domestic products
# This file will be generated by the Domestic SCMT some day...
# For now, fill in your product attributes and set the interestlists you need!

#
dsm.set('Config.1.PlaylistOverride', 'DefaultUS', 0)
#
dsm.set('Config.1.affiliateNumber', '1023', 0)
dsm.set('Config.1.dmaCode', '100', 0)
dsm.set('Config.1.PrimaryCounty', 'PRC127', 0)
dsm.set('Config.1.stateCode', 'PR', 0)
dsm.set('Config.1.secondaryObsStation','TJPS', 0)
dsm.set('Config.1.primaryClimoStation','668812', 0)
dsm.set('Config.1.primaryIndexId','TJSJ', 0)
dsm.set('Config.1.ThemeOverride','standard', 0)
dsm.set('Config.1.expRev','175148', 0)
dsm.set('Config.1.primaryCoopId','78526000', 0)
dsm.set('Config.1.wda','SJU', 0)
dsm.set('Config.1.primaryObsStation','TJSJ', 0)
#dsm.set('Config.1.primaryLat',18.3, 0)
dsm.set('Config.1.Clock','scmt.clock', 0)
#dsm.set('Config.1.primaryLon',-66, 0)
dsm.set('Config.1.primaryZone','PRZ001', 0)
dsm.set('Config.1.climoRegion','5', 0)
dsm.set('Config.1.SevereClock','scmt_severe.clock', 0)
#
#wxdata.setTimeZone('AST')
wxdata.setTimeZone('AST4ADT')
#
# Use only for debugging
ds.commit()

# Default Config for Forecast Pane
d = twc.Data()
d.locName = 'PUERTO RICO METRO'
d.coopId = '72219000'
dsm.set('Config.1.Fcst_TextForecast', d, 0, 1)
dsm.set('Config.1.Fcst_DaypartForecast', d, 0, 1)
dsm.set('Config.1.Fcst_ExtendedForecast', d, 0, 1)

# =============================================================================
# Interest Lists
wxdata.setInterestList('lambert.us', '1', [ 'radarSatellite.us'])
wxdata.setInterestList('mercator.us', '1', [ 'radar.us',])
wxdata.setInterestList('mercator.cb.local', '1', ['radar.pr',])
#
wxdata.setInterestList('radar.pr.cuts', '1', ['Config.1.Local_MetroDopplerRadar',])
wxdata.setInterestList('radar.us.cuts', '1', [ 'Config.1.Local_RegionalDopplerRadar',])
wxdata.setInterestList('radarSatellite.us.cuts', '1', [ 'Config.1.Local_RadarSatelliteComposite',])
#wxdata.setInterestList('satellite.us.cuts', '1', [ 'Config.1.Local_Satellite',])
#
wxdata.setInterestList('mapData', '1', [ 'mercator.cb.local','mercator.us','lambert.us',])
#
wxdata.setInterestList('imageData', '1', [ 'radarSatellite.us','radar.us','radar.pr',])
#
wxdata.setInterestList('coopId', '1', [ '72315090','72410028','78514002','78526000','78526022','78535001','78543000','78547000'])
wxdata.setInterestList('airportId', '1',  ['FLL','MIA','PBI'])
wxdata.setInterestList('obsStation', '1', ['KFLL','KMIA','KPBI','TIST','TISX','TJBQ','TJMZ','TJNR','TJPS','TJSJ'])
wxdata.setInterestList('zone.cwf', '1', ['AMZ720'])
wxdata.setInterestList('skiId', '1', ['704006','804001'])
wxdata.setInterestList('zone', '1', ['PRZ001'])
wxdata.setInterestList('tideStation', '1', ['E0004751','E9755371'])
wxdata.setInterestList('aq', '1', ['zz001',])
wxdata.setInterestList('climId', '1', ['668812',])
wxdata.setInterestList('county', '1', ['PRC127','PRC021','PRC031','PRC033','PRC061','PRC135','PRC137','PRC139',])
wxdata.setInterestList('metroId', '1', [ '32','23'])
wxdata.setInterestList('indexId', '1', ['TJSJ'])
wxdata.setInterestList('keyRoute', '1', [ '32.93121','32.93148','32.93066'])
dsm.set('Config.1.countyNameList', [('PRC127','San Juan'),('PRC021','Bayamon'),('PRC031','Carolina'),('PRC033','Catano'),('PRC061','Guaynabo'),('PRC135','Toa Alta'),('PRC137','Toa Baja'),('PRC139','Trujillo Alto'),], 0)

# =============================================================================
# product override
d = twc.Data()
d.activeCue = 1
d.activeVocal = 1
dsm.set('Config.1.Override', d, 0)

# =============================================================================
# Playlist configs
# a value of 1 below is active (not required - this is the default behavior)
# a value of 0 below is inactive
# just substitute "yourProduct" for the XXX below
d = twc.Data()
d.activeTides = 1
d.activeXXX = 0
dsm.set('Config.1.DefaultUS.60.0', d, 0)
dsm.set('Config.1.DefaultUS.60.1', d, 0)
dsm.set('Config.1.DefaultUS.90.0', d, 0)
dsm.set('Config.1.DefaultUS.90.1', d, 0)
dsm.set('Config.1.DefaultUS.120.0', d, 0)
dsm.set('Config.1.DefaultUS.120.1', d, 0)
dsm.set('Config.1.DefaultUS.120.2', d, 0)
dsm.set('Config.1.SouthernCalifornia.60.0', d, 0)
dsm.set('Config.1.SouthernCalifornia.60.1', d, 0)
dsm.set('Config.1.SouthernCalifornia.90.0', d, 0)
dsm.set('Config.1.SouthernCalifornia.90.1', d, 0)
dsm.set('Config.1.SouthernCalifornia.120.0', d, 0)
dsm.set('Config.1.SouthernCalifornia.120.1', d, 0)
dsm.set('Config.1.SouthernCalifornia.120.2', d, 0)
dsm.set('Config.1.WestCoastUS.60.0', d, 0)
dsm.set('Config.1.WestCoastUS.60.1', d, 0)
dsm.set('Config.1.WestCoastUS.90.0', d, 0)
dsm.set('Config.1.WestCoastUS.90.1', d, 0)
dsm.set('Config.1.WestCoastUS.120.0', d, 0)
dsm.set('Config.1.WestCoastUS.120.1', d, 0)
dsm.set('Config.1.WestCoastUS.120.2', d, 0)

# =============================================================================
# LAS Crawl
d = twc.Data()
d.serialNum = 2
d.crawls = [
    (1064928109, 1139440000, [( 0, 23)], 'text of crawl 0'),
    (1064928109, 1139440000, [( 0, 23)], 'text of crawl 1'),
    (1064928109, 1139440000, [(10, 11), (17, 19)], 'text of crawl 2'),
]
dsm.set('Config.1.Ldl_LASCrawl', d, 0)

# =============================================================================
# TextForecast
d = twc.Data(coopId='78526000',
             locName='SAN JUAN',
             minPageDuration=6,
             maxPageDuration=14,
)
dsm.set('Config.1.Local_TextForecast', d, 0)

# =============================================================================
# 7DayForecast
d = twc.Data(coopId='78526000',
             locName='SAN JUAN',
)
dsm.set('Config.1.Local_7DayForecast', d, 0)

# =============================================================================
# AirQualityForecast
# There are 2 sets of ids and loc names because of the dual nature of the
# product.  It can be configured for 1 or 3 sites.
d = twc.Data(aq=['ca017','ca029','ca031'],
             locName=['Riverside/San Bernardino','Coastal Area','Hemet/Elsinore'],
             #aq=['va001',],
             #locName=['WASHINGTON, DC',],

)
dsm.set('Config.1.Local_AirQualityForecast', d, 0)

# =============================================================================
#Almanac
d = twc.Data(longitude=-66,
             latitude=18.43,
)
dsm.set('Config.1.Local_Almanac', d, 0)

# =============================================================================
# Climatology
d = twc.Data(longitude=-66,
             latitude=18.43,
             climId=['668812'],
             locName='SAN JUAN INTL.',
             obsStation='TJSJ',
)
dsm.set('Config.1.Local_Climatology', d, 0)

# =============================================================================
# CurrentConditions
d = twc.Data(obsStation=['SENSOR','TJSJ','TJPS'],
             locName=['San Juan','SAN JUAN INTL.','PONCE'],
)
dsm.set('Config.1.Local_CurrentConditions', d, 0)
# =============================================================================
# Squeeze Back CurrentConditions
d = twc.Data(obsStation=['SENSOR','TJSJ','TJPS'],
             locName=['San Juan','SAN JUAN INTL.','PONCE'],
             elementDuration = 6,
)
dsm.set('Config.1.Cc_CurrentConditions', d, 0)

# =============================================================================
# DaypartForecast
d = twc.Data(coopId=['78526000', ],
             locName=['SAN JUAN', ]
)
dsm.set('Config.1.Local_DaypartForecast', d, 0)

# =============================================================================
## EventForecast
#
## Event Types:
#A_MOMENT_IN_TIME = 0
#DAY_SUMMARY = 1
#
## TODO: The valid time should come from the dataStore,
## but until it does, do this...
#import time
#vTime = int(time.time())
#d = twc.Data(coopId='72219000',
#             text='Atlanta Motor Speedway',
#             text2='Wednesday',
#             eventType = DAY_SUMMARY,
#             overlayImage = '/rsrc/images/eventRacing',
#             bkgImage = ('domestic', 'domestic'),
#             validTime = vTime
#)
#dsm.set('Config.1.Local_EventForecast', d, 0)

# =============================================================================
# ExtendedForecast
d = twc.Data(coopId='78526000',
             location='SAN JUAN',
)
dsm.set('Config.1.Local_ExtendedForecast', d, 0)

# =============================================================================
# GetawayForecast
d = twc.Data(coopId=['78535001','78526022','78514002'],
             locNameList=['Fajardo','Mayaguez','Ponce'],
)
dsm.set('Config.1.Local_GetawayForecast', d, 0)

# =============================================================================
# HeatSafetyTips
d = twc.Data(obsStation='TJSJ',
             locName='SAN JUAN INTL.',
             heatIndexThreshold=105,
)
dsm.set('Config.1.Local_HeatSafetyTips', d, 0)

# =============================================================================
# LocalObservations
d = twc.Data(obsStation=['TJBQ','TJMZ','KMIA','TJPS','TJNR','TJSJ','TIST','TISX'],
             locName=['Aquadilla','Mayaguez','Miami','Ponce','Roosevelt Roads','San Juan Intl.','St. Thomas','St. Croix'],
)
dsm.set('Config.1.Local_LocalObservations', d, 0)

#==============================================================================
# Lower Display Line
d = twc.Data(
    obsStation=['SENSOR','TJSJ','TJPS'],
    obsLocName=['San Juan','San Juan Intl.','Ponce'],
)
dsm.set('Config.1.Ldl_CurrentApparentTemp', d, 0)
dsm.set('Config.1.Ldl_CurrentCeiling', d, 0)
dsm.set('Config.1.Ldl_CurrentDewpoint', d, 0)
dsm.set('Config.1.Ldl_CurrentGusts', d, 0)
dsm.set('Config.1.Ldl_CurrentHumidity', d, 0)
dsm.set('Config.1.Ldl_CurrentMTDPrecip', d, 0)
dsm.set('Config.1.Ldl_CurrentPressure', d, 0)
dsm.set('Config.1.Ldl_CurrentSkyTemp', d, 0)
dsm.set('Config.1.Ldl_CurrentVisibility', d, 0)
dsm.set('Config.1.Ldl_CurrentWinds', d, 0)

d = twc.Data(
    airportId=['FLL','MIA','PBI'],
    displayFlag=[1,1,0],
    obsStation=['KFLL', 'KMIA', 'KPBI'],
    locName=[
        "Miami",
        "Fort Lauderdale",
        "West Palm Beach"
    ],
)
dsm.set('Config.1.Ldl_AirportDelayConditions', d, 0, 1)

d = twc.Data(
    aq='ca031',
    locName='Hemet/Elsinore',
    startDate=(10, 1),
    endDate=(12, 31),
)
dsm.set('Config.1.Ldl_AirQualityForecast', d, 0)

d = twc.Data(
    latitude = 18.43,
    longitude = -66,
)
dsm.set('Config.1.Ldl_SunriseSunset', d, 0)

d = twc.Data(
    coopId=['78535001','78526022','78514002'],
    locName=['Fajardo','Mayaguez','Ponce'],
)
dsm.set('Config.1.Ldl_TravelForecast', d, 0)

d = twc.Data(
    startDate=(1, 1),
    endDate=(12, 31),
)
dsm.set('Config.1.Ldl_PromotionalMessage', d, 0)

d = twc.Data(
    coopId='78526000',
    locName='SAN JUAN',
    startDate=(1, 1),
    endDate=(12, 31),
)
dsm.set('Config.1.Ldl_UVForecast', d, 0)

d = twc.Data(
    displayMessage = 1,
)
dsm.set('Config.1.Ldl_LocalStarIDMessage', d, 0)

d = twc.Data(
    displayMessage = 1,
)
dsm.set('Config.1.Ldl_NationalStarIDMessage', d, 0)


d = twc.Data(
    coopId='78526000',
    locName='SAN JUAN',
)
dsm.set('Config.1.Ldl_ExtendedForecast', d, 0)
dsm.set('Config.1.Ldl_HourlyForecast', d, 0)
dsm.set('Config.1.Ldl_Shortcast', d, 0)
dsm.set('Config.1.Ldl_SummaryForecast', d, 0)

d = twc.Data(obsStation=['KATL','KORD'])
dsm.set('Config.1.TimeTemp_Default', d, 0)

# =============================================================================
# Bulletin Crawl
d = twc.Data(
    activeVocal=1,
)
dsm.set('Config.1.Bulletin_Default', d, 0)

# =============================================================================
# MarineForecast
d = twc.Data(zone='AMZ720',
             locName='PUERTO RICO N. SHORE COASTAL WATERS',
)
dsm.set('Config.1.Local_MarineForecast', d, 0)
# =============================================================================
# MAP: 70853
# MetroDopplerRadar (MAP DATA)
#
d = twc.Data(mapName='mercator.cb.local.tif',
             mapcutCoordinate=(2540,1044),
             mapcutSize=(1024,683),
             mapFinalSize=(720,480),
             mapMilesSize=(370,247),
             datacutType='radar.pr',
             datacutCoordinate=(396,152),
             datacutSize=(528,293),
             dataFinalSize=(720,480),
             dataOffset=(0,0),
)
wxdata.setMapData('Config.1.Local_MetroDopplerRadar', d, 0)
#
# MetroDopplerRadar (PRODUCT DATA)
#
d = twc.Data(
    textString = [
                    (
                     # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                     ( 'Interstate-Black', 22, (212,212,212,255), 1, -35, 0, (20,20,20,128), 1, 0, 0,), #Properties
                     # list of locNames with positions
                     ( ( (311,193),'Ponce',),
                       ( (365,286),'San Juan',),
                       ( (495,236),'St. Thomas',),
                       ( (523,151),'St. Croix',),
                       ( (160,251),'Mayaquez',),
                     ),
                    ),

                    (
                     # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                     ( 'Interstate-Black', 22, (212,212,212,205), 1, -35, 0, (20,20,20,128), 2, 0, 0,), #Properties
                     # list of locNames with positions
                     ( ( (311,193),'Ponce',),
                       ( (365,286),'San Juan',),
                       ( (495,236),'St. Thomas',),
                       ( (523,151),'St. Croix',),
                       ( (160,251),'Mayaquez',),
                     ),
                    ),
                  ],

    tiffImage = [
                   # the property of a tiffImage is the image name and its justification
                   ( ( 'locatorDot', 0, 1, 0),
                     ( ( (333,210),),
                       ( (404,265),),
                       ( (544,253),),
                       ( (559,168),),
                       ( (265,248),),
                     ),
                   ),

                   ( ( 'locatorDotOutline', 0, 2, 1),
                     ( ( (333,210),),
                       ( (404,265),),
                       ( (544,253),),
                       ( (559,168),),
                       ( (265,248),),
                     ),
                   ),
                 ],

    labeledTiffImage = [],
    vector = [],
)
dsm.set('Config.1.Local_MetroDopplerRadar', d, 0)
#
#
# =============================================================================
# Radar_LocalDoppler

# Put the mini-me map after the other radars. It doesn't have to cut first, but
# "soon" would be nice so we have a radar map cut when squeezeback locals run.

# Special Mini-Me Window! (NO, mini-me! We do NOT eat Mini Mr. Bigglesworth!!)
d = twc.Data(mapName           = 'mercator.us.bfg',
             mapcutCoordinate  = (25849,8526),
             mapcutSize        = (656,375),
             mapFinalSize      = (240,137),
             mapMilesSize      = (70,48),
             datacutType       = 'radar.us',
             datacutCoordinate = (2767,708),
             datacutSize       = (80,46),
             dataFinalSize     = (240,137),
             dataOffset        = (0,0),
             vectors           = [ 'mercator.us.counties.vg',
                                   'mercator.us.coastlines.vg',
                                   'mercator.us.interstates.vg',
                                   'mercator.us.states.vg',
                                   'mercator.us.ushighways.vg',
                                   'mercator.us.statehighways.vg',
                                   'mercator.us.otherroutes.vg',],
)
wxdata.setMapData('Config.1.Radar_LocalDoppler', d, 0, 0)

# Radar_LocalDoppler (PRODUCT DATA for Mini Me Window)
d = twc.Data(
    textString = [
        # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask
        # list of locNames with positions
        (
            ( 'Interstate-Bold', 14, (229,229,229,205), 1, 0, 0, (20,20,20,68), 2,0,0,), #Properties
            (   #Elements
                ( (49,35), 'Villa Rica',     ),
                ( (79,85), 'Dallas',    ),
                ( (170,62), "Atlanta",   ),
            ),
        ),
        (
            ( 'Interstate-Bold', 14, (229,229,229,205), 1, 0, 0, (20,20,20,68), 2,0,0,), #Properties
            (   #Elements
                ( (49,35), 'Villa Rica',    ),
                ( (79,85),  'Dallas',   ),
                ( (170,62), "Atlanta",   ),
            ),
        ),
    ],

    tiffImage = [
                   # the property of a tiffImage is the image name, justification, layer mask, and erase bit
                   (( 'locatorDotSmall', 0, 1, 0),
                    ( ( (30,32), ),
                      ( (62,80), ),
                      ( (155,52), ),
                    ),
                   ),

                   (( 'locatorDotSmallOutline', 0, 2, 1),
                    ( ( (30,32), ),
                      ( (62,80), ),
                      ( (155,52), ),
                    ),
                   ),
                ],

    vector = [
                # This is a list of vector objects.
                # Each vector object contains a Properties tuple and an Elements tuple.
                # Each Properties tuple contains a width, color tuple, and layer number.
                # Each Elements tuple contains a list of vectorfile tuples to draw.
                # Currently, each vectorfile tuple contains only the prefix of the *.vg file
                    (   (6, (20,20,20,96), 1,), #Properties
                        (   #Elements
                            ('interstates',),
                        ),
                    ),

                    (   (1, (20,20,20,255), 2,), #Properties
                        (   #Elements
                            ('coastlines',),
                            ('counties',),
                        ),
                    ),

                    (   (2, (20,20,20,255), 3,), #Properties
                        (   #Elements
                            ('states',),
                        ),
                    ),

                    (   (3, (130,130,130,255), 3,), #Properties
                        (   #Elements
                            ('interstates',),
                        ),
                    ),
             ],
)
dsm.set('Config.1.Radar_LocalDoppler', d, 0, 0)

# =============================================================================
# MetroForecastMap (MAP DATA)
d = twc.Data(mapName          = 'mercator.us.bfg',
             mapcutCoordinate = (25739,8325),
             mapcutSize       = (1090,727),
             mapFinalSize     = (720,480),
             mapMilesSize     = (300,250),
             vectors          = [ 'mercator.us.counties.vg','mercator.us.coastlines.vg',
                                  'mercator.us.interstates.vg','mercator.us.states.vg',
                                  'mercator.us.ushighways.vg','mercator.us.statehighways.vg',
                                  'mercator.us.otherroutes.vg',],
)
wxdata.setMapData('Config.1.Local_MetroForecastMap', d, 0)

# MetroForecastMap (PRODUCT DATA)
d = twc.Data(
    textString = [
                    (
                     # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                     # NOTE: If dataLabel is set, then the elements will display only if the data is not expired.
                     ('Interstate-Bold', 24, (212,212,212,255), 1, 0, 0, (), 2, 0, 0,), #Properties
                     # list of locNames with positions
                     ( (  (214,145), 'Peachtree City') ,
                       (  (292,305), 'Atlanta'),
                       (  (157,385), 'Acworth'),
                       (  (95,245),  'Douglasville'),
                       (  (435,209), 'Conyers'),
                       (  (497,328), 'Lawrenceville'),
                       (  (310,375), 'Alpharetta'),
                     ),
                    ),
                  ],

    fcstValue = [
                  # font, fontSize, fontColor, fontShadow, tracking, obsValueType, justification,
                  # list of coopIds with positions
                  (( 'Interstate-BlackCondensed', 38, (212,212,50,255), 1, 0, 'temp', 1, (), 2,0,0,),
                   ( ( '72215002', (288,100)),
                     ( '72219000', (322,262)),
                     ( '72227016', (192,341)),
                     ( '72227025', (159,205)),
                     ( '72219020', (477,168)),
                     ( '72227037', (553,294)),
                     ( '72227024', (355,335)),
                   ),
                  ),
                ],

    fcstIcon = [
                  # fcstIcons have one property: (horizontal) justification
                  # fcstIcons have an coopId and a position
                  (
                   (0, 2, 0,), #Properties - justification and layerMask, eraseBit
                   ( ( '72215002', (295,76)),
                     ( '72219000', (325,235)),
                     ( '72227016', (195,317)),
                     ( '72227025', (163,175)),
                     ( '72219020', (480,148)),
                     ( '72227037', (560,263)),
                     ( '72227024', (355,310)),
                   ),
                  ),
                ],

    vector = [
                # vector files have a thickness and a color
                (( 2, (20,20,20,255), 1, ), ( ('counties',),),),
                (( 2, (20,20,20,255), 1, ), ( ('coastlines',),),),
                (( 4, (20,20,20,255), 1, ), ( ('states',),),),
                (( 8, (20,20,20,96), 1, ), ( ('ushighways',),),),
                (( 8, (20,20,20,96), 1, ), ( ('statehighways',),),),
                (( 8, (20,20,20,96), 1, ), ( ('otherroutes',),),),
                (( 8, (20,20,20,96), 1, ), ( ('interstates',),),),
                (( 4, (130,130,130,255), 1, ), ( ('ushighways',),),),
                (( 4, (130,130,130,255), 1, ), ( ('statehighways',),),),
                (( 4, (130,130,130,255), 1, ), ( ('otherroutes',),),),
                (( 4, (130,130,130,255), 1, ), ( ('interstates',),),),
              ],

    tiffImage = [
                   # the property of a tiffImage is the image name and its justification, layerMask, eraseBit
                   (( 'airplane', 0, 1, 0),
                    ( ( (336,199),),
                    ),
                   ),

                   (( 'airplaneOutline', 0, 1, 0), #NOTE: This is on layer 1
                    ( ( (336,199),),
                    ),
                   ),
                ],

    # just like a tiffImage, but with a text string label centered over it
    labeledTiffImage = [
                          (( ('interstateSign', 0, 1, 0), 'Interstate-BoldCondensed', 18, (212,212,212,255), 0, 0, 0,),
                           # labeledTiffImage have a position and a string to center over the image
                           ( ( (75,214),  '20'),
                             ( (432,93),  '75'),
                             ( (451,314), '85'),
                             ( (583,183), '20'),
                           ),
                          ),

                          (( ('interstateSign', 0, 1, 0), 'Interstate-BoldCondensed', 16, (212,212,212,255), 0, 0, 0,),
                           ( ( (281,171), '285'),
                           ),
                          ),

              # NOTE: The outlines are on layer1 for the forecast products
                          (( ('interstateSignOutline', 0, 1, 0), 'Interstate-BoldCondensed', 18, (212,212,212,255), 0, 0, 0,),
                           # labeledTiffImage have a position and a string to center over the image
                           ( ( (75,214),  '20'),
                             ( (432,93),  '75'),
                             ( (451,314), '85'),
                             ( (583,183), '20'),
                           ),
                          ),

                          (( ('interstateSignOutline', 0, 1, 0), 'Interstate-BoldCondensed', 16, (212,212,212,255), 0, 0, 0,),
                           ( ( (281,171), '285'),
                           ),
                          ),
                       ],
)
dsm.set('Config.1.Local_MetroForecastMap', d, 0)
#
#
# =============================================================================
# NWSHeadlines
d = twc.Data(zone = 'PRZ001',
)
dsm.set('Config.1.Local_NWSHeadlines', d, 0)

# =============================================================================
# MAP: 454
# RadarSatelliteComposite (MAP DATA)
#
d = twc.Data(mapName='lambert.us.tif',
             mapcutCoordinate=(2441,1801),
             mapcutSize=(1725,1150),
             mapFinalSize=(720,480),
             mapMilesSize=(1652,1116),
             datacutType='radarSatellite.us',
             datacutCoordinate=(361,584),
             datacutSize=(887,594),
             dataFinalSize=(720,480),
             dataOffset=(0,0),
             vectors=['lambert.us.coastlines.vg','lambert.us.states.vg',],
)
wxdata.setMapData('Config.1.Local_RadarSatelliteComposite', d, 0)
#
#
#
#
# RadarSatelliteComposite (PRODUCT DATA)
#
d = twc.Data(
    vector = [
                # vector files have a thickness and a color and a layerMask
                (( 2, (20,20,20,255), 2, ), ( ('states',),),),
                (( 2, (20,20,20,255), 2, ), ( ('coastlines',),),),
              ],
)
dsm.set('Config.1.Local_RadarSatelliteComposite', d, 0)
#
# =============================================================================
# RecordHighLow
d = twc.Data(coopId=['78526000', ],
             climId=['668812', ],
             obsStation=['TJSJ', ],
             locName=['San Juan Intl.', ],
             fcstLowOffset=0,
             fcstHighOffset=0,
)
dsm.set('Config.1.Local_RecordHighLow', d, 0)

# =============================================================================
# SchoolDayWeather
d = twc.Data(coopId='72219000',
             obsStation=['KATL', 'KORD', ],
             schedule=[((11,24,16,0,0),(11,26,16,0,0)),
                       ((12,17,16,0,0),( 1, 7,16,0,0)),],
)
dsm.set('Config.1.Local_SchoolDayWeather', d, 0)

# =============================================================================
# OutdoorActivityForecast
d = twc.Data(coopId='72219000',
)
dsm.set('Config.1.Local_OutdoorActivityForecast', d, 0)

# =============================================================================
## MAP: 52810
## RegionalDopplerRadar (MAP DATA)
##
d = twc.Data(mapName='mercator.us.bfg',
             mapcutCoordinate=(29327,12474),
             mapcutSize=(3124,2083),
             mapFinalSize=(720,480),
             mapMilesSize=(295,236),
             datacutType='radar.us',
             datacutCoordinate=(3193,1191),
             datacutSize=(383,255),
             dataFinalSize=(720,480),
             dataOffset=(0,0),
             vectors=['mercator.us.ushighways.vg','mercator.us.counties.vg','mercator.us.states.vg','mercator.us.coastlines.vg','mercator.us.statehighways.vg','mercator.us.otherroutes.vg','mercator.us.interstates.vg',],
)
wxdata.setMapData('Config.1.Local_RegionalDopplerRadar', d, 0)
#
## RegionalDopplerRadar (PRODUCT DATA)
d = twc.Data(
    textString = [
                    (
                     # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                     ( 'Interstate-Black', 22, (212,212,212,255), 1, -35, 0, (20,20,20,128), 1, 0, 0,), #Properties
                     # list of locNames with positions
                     ( ( (341,116),'Scranton',),
                       ( (162,228),'Elmira',),
                       ( (247,301),'Ithaca',),
                       ( (370,233),'Binghamton',),
                       ( (341,365),'Syracuse',),
                       ( (540,311),'Albany',),
                       ( (538,157),'Poughkeepsie',),
                       ( (149,132),'Williamsport',),
                     ),
                    ),

                    (
                     # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                     ( 'Interstate-Black', 22, (212,212,212,205), 1, -35, 0, (20,20,20,128), 2, 0, 0,), #Properties
                     # list of locNames with positions
                     ( ( (341,116),'Scranton',),
                       ( (162,228),'Elmira',),
                       ( (247,301),'Ithaca',),
                       ( (370,233),'Binghamton',),
                       ( (341,365),'Syracuse',),
                       ( (540,311),'Albany',),
                       ( (538,157),'Poughkeepsie',),
                       ( (149,132),'Williamsport',),
                     ),
                    ),
                  ],

    tiffImage = [
                   # the property of a tiffImage is the image name and its justification, layer mask, and erase bit
                   (( 'locatorDot', 0, 1, 0),
                    ( ( (379,133),),
                      ( (232,225),),
                      ( (271,280),),
                      ( (350,230),),
                      ( (321,362),),
                      ( (614,308),),
                      ( (598,174),),
                      ( (205,111),),
                    ),
                   ),

                   (( 'locatorDotOutline', 0, 2, 1),
                    ( ( (379,133),),
                      ( (232,225),),
                      ( (271,280),),
                      ( (350,230),),
                      ( (321,362),),
                      ( (614,308),),
                      ( (598,174),),
                      ( (205,111),),
                    ),
                   ),
                 ],

    # just like a tiffImage, but with a text string label centered over it
    labeledTiffImage = [
                          (( ('interstateSign', 0, 1, 0), 'Interstate-BoldCondensed', 18, (212,212,212,255), 0, 0, 0,),
                           ( ( (83,248),'86',),
                             ( (313,313),'81',),
                             ( (470,114),'84',),
                             ( (588,243),'87',),
                             ( (171,346),'90',),
                           ),
                          ),

                          (( ('interstateSignOutline', 0, 2, 1), 'Interstate-BoldCondensed', 18, (212,212,212,255), 0, 0, 0,),
                           ( ( (83,248),'86',),
                             ( (313,313),'81',),
                             ( (470,114),'84',),
                             ( (588,243),'87',),
                             ( (171,346),'90',),
                           ),
                          ),

                          (( ('stateHwySign', 0, 1, 0), 'Interstate-BoldCondensed', 18, (212,212,212,255), 0, 0, 0,),
                           ( ( (280,211),'17',),
                           ),
                          ),

                          (( ('stateHwySignOutline', 0, 2, 1), 'Interstate-BoldCondensed', 18, (212,212,212,255), 0, 0, 0,),
                           ( ( (280,211),'17',),
                           ),
                          ),
                        ],

    vector = [
                # vector files have a thickness and a color and a layerMask
                (( 4, (20,20,20,96), 1, ), ( ('ushighways',),),),
                (( 4, (20,20,20,96), 1, ), ( ('statehighways',),),),
                (( 4, (20,20,20,96), 1, ), ( ('otherroutes',),),),
                (( 4, (20,20,20,96), 1, ), ( ('interstates',),),),
                (( 2, (20,20,20,255), 2, ), ( ('counties',),),),
                (( 2, (20,20,20,255), 2, ), ( ('coastlines',),),),
                (( 4, (20,20,20,255), 2, ), ( ('states',),),),
                (( 2, (130,130,130,255), 2, ), ( ('ushighways',),),),
                (( 2, (130,130,130,255), 2, ), ( ('statehighways',),),),
                (( 2, (130,130,130,255), 2, ), ( ('otherroutes',),),),
                (( 2, (130,130,130,255), 2, ), ( ('interstates',),),),
              ],
)
dsm.set('Config.1.Local_RegionalDopplerRadar', d, 0)
#
#
# =============================================================================
# MAP: 70856
# RegionalForecastMap (MAP DATA)
#
d = twc.Data(mapName='mercator.cb.local.tif',
             mapcutCoordinate=(2654,1080),
             mapcutSize=(888,592),
             mapFinalSize=(720,480),
             mapMilesSize=(321,214),
)
wxdata.setMapData('Config.1.Local_RegionalForecastMap', d, 0)
#
## RegionalForecastMap (PRODUCT DATA)
d = twc.Data(
    textString = [
                    (
                     # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                     # NOTE: If dataLabel is set, then the elements will display only if the data is not expired.
                     ('Interstate-Bold', 24, (212,212,212,255), 1, 0, 0, (), 2, 0, 1,), #Properties
                     # list of locNames with positions
                     ( ( (266,242),'Ponce',),
                       ( (329,305),'San Juan',),
                       ( (471,291),'St. Thomas',),
                       ( (510,192),'St. Croix',),
                     ),
                    ),
                 ],

    fcstValue = [
                  # font, fontSize, fontColor, fontShadow, tracking, obsValueType, justification,
                  # list of coopIds with positions
                  (( 'Interstate-BlackCondensed', 38, (212,212,50,255), 1, 0, 'temp', 1, (), 2,0,0,),
                   ( ( '78514002',(293,206),),
                     ( '78526000',(375,269),),
                     ( '78543000',(528,255),),
                     ( '78547000',(553,156),),
                   ),
                  ),
                ],

    fcstIcon = [
                  # fcstIcons have one property: justification
                  # fcstIcons have an coopId and a position
                  (
                   (0, 2, 0,), #Properties - justification and layerMask, eraseBit
                   ( ( '78514002',(296,170),),
                     ( '78526000',(378,233),),
                     ( '78543000',(531,219),),
                     ( '78547000',(556,120),),
                   ),
                  ),
               ],

    vector = [],
)
dsm.set('Config.1.Local_RegionalForecastMap', d, 0)

# =============================================================================
# MAP: 70855
# RegionalObservationMap (MAP DATA)
#
d = twc.Data(mapName='mercator.cb.local.tif',
             mapcutCoordinate=(2654,1080),
             mapcutSize=(888,592),
             mapFinalSize=(720,480),
             mapMilesSize=(321,214),
)
wxdata.setMapData('Config.1.Local_RegionalObservationMap', d, 0)
wxdata.setMapData('Config.1.Local_MetroObservationMap', d, 0)
#
#
# RegionalObservationMap (PRODUCT DATA)
#
d = twc.Data(
  obsValue = [
                 # font, fontSize, fontColor, fontShadow, tracking, obsValueType, justification,
                 # list of obsStations with positions
                 (( 'Interstate-BlackCondensed', 38, (212,212,50,255), 1, 0, 'temp', 1, (), 1,0,0,),
                  ( ( 'TIST',(528,255),),
                    ( 'TISX',(553,156),),
                    ( 'TJPS',(293,206),),
                    ( 'TJSJ',(375,269),),
                  ),
                 ),
            ],
  obsIcon = [
                 (
                  (0, 2, 0,), #Properties - justification and layerMask, eraseBit
                  ( ( 'TIST',(531,219),),
                    ( 'TISX',(556,120),),
                    ( 'TJPS',(296,170),),
                    ( 'TJSJ',(378,233),),
                  ),
                 ),
            ],
  textString = [
                    # font, fontSize, fontColor, fontShadow, tracking, justification, fontOutlineColor, layerMask, eraseBit, dataLabel
                    # NOTE: If dataLabel is set, then the elements will display only if the data is not expired.
                    (
                     ('Interstate-Bold', 24, (212,212,212,255), 1, 0, 0, (), 1, 0, 0,), #Properties
                     ( ( (471,291),'St. Thomas',),
                       ( (510,192),'St. Croix',),
                       ( (266,242),'Ponce',),
                       ( (329,305),'San Juan',),
                     ),
                    ),
               ],
)
dsm.set('Config.1.Local_RegionalObservationMap', d, 0)
dsm.set('Config.1.Local_MetroObservationMap', d, 0)

# =============================================================================
# Tides
d = twc.Data(tideStation=['E9755371','E0004751'],
             locName=['San Juan','Playa de Fajardo'],
)
dsm.set('Config.1.Local_Tides', d, 0)

# =============================================================================
# no commit needed - loadSCMTconfig.py does it for us now
