Issue #3493 Grouped common VTECs together

Change-Id: Ia72150a4782e95ea075f42979c489f7ef5d69fb9

Former-commit-id: 0302efdc77 [formerly 47de8da4cadd899ae9aa0ffe6c89a109491966bc]
Former-commit-id: 31c3135496
This commit is contained in:
Jonathan Sanchez 2014-08-06 17:40:44 -05:00
parent 6cecfcd9dc
commit f5abf465e2

View file

@ -189,14 +189,25 @@ ${drainage.name}##
########END MACRO ########END MACRO
#macro(inserttorwatches $watches $list $secondtimezone $dateUtil $timeFormat) #macro(inserttorwatches $watches $list $secondtimezone $dateUtil $timeFormat)
#set($tornadoWatches = []) #set($keys = [])
#set($mymap = {})
#foreach(${watch} in ${watches}) #foreach(${watch} in ${watches})
#if(${watch.getPhenSig()} == 'TO.A') #if(${watch.getPhenSig()} == 'TO.A')
#set($success = $tornadoWatches.add($watch)) #set($key = ${watch.action} + ${watch.etn} + ${watch.startTime} + ${watch.endTime})
#if (${list.contains(${keys}, $key)})
#set($value = ${mymap.get($key)})
#else
#set($value = [])
#set($success = $keys.add($key))
#end
#set($success = $value.add($watch))
#set($success = ${mymap.put($key,$value)})
#end #end
#end #end
#set($torWatchAlso = "") #set($torWatchAlso = "")
#foreach(${tornadoWatch} in ${tornadoWatches}) #foreach(${key} in ${keys})
#set($tornadoWatches = ${mymap.get($key)})
#set($tornadoWatch = ${tornadoWatches.get(0)})
A TORNADO WATCH ${torWatchAlso}REMAINS IN EFFECT UNTIL ${dateUtil.format(${tornadoWatch.endTime}, ${timeFormat.plain}, 15, ${localtimezone})}## A TORNADO WATCH ${torWatchAlso}REMAINS IN EFFECT UNTIL ${dateUtil.format(${tornadoWatch.endTime}, ${timeFormat.plain}, 15, ${localtimezone})}##
${dateUtil.period(${tornadoWatch.endTime},${timeFormat.plain}, 15, ${localtimezone})}## ${dateUtil.period(${tornadoWatch.endTime},${timeFormat.plain}, 15, ${localtimezone})}##
#if(${secondtimezone}) #if(${secondtimezone})
@ -223,14 +234,25 @@ ${dateUtil.period(${tornadoWatch.endTime},${timeFormat.plain}, 15, ${localtimezo
########END MACRO ########END MACRO
#macro(insertsvrwatches $watches $list $secondtimezone $dateUtil $timeFormat) #macro(insertsvrwatches $watches $list $secondtimezone $dateUtil $timeFormat)
#set($severeWatches = []) #set($keys = [])
#set($mymap = {})
#foreach(${watch} in ${watches}) #foreach(${watch} in ${watches})
#if(${watch.getPhenSig()} == 'SV.A') #if(${watch.getPhenSig()} == 'SV.A')
#set($success = $severeWatches.add($watch)) #set($key = ${watch.action} + ${watch.etn} + ${watch.startTime} + ${watch.endTime})
#if (${list.contains(${keys}, $key)})
#set($value = ${mymap.get($key)})
#else
#set($value = [])
#set($success = $keys.add($key))
#end
#set($success = $value.add($watch))
#set($success = ${mymap.put($key,$value)})
#end #end
#end #end
#set($svrWatchAlso = "") #set($svrWatchAlso = "")
#foreach(${svrWatch} in ${severeWatches}) #foreach(${key} in ${keys})
#set($severeWatches = ${mymap.get($key)})
#set($svrWatch = ${severeWatches.get(0)})
A SEVERE THUNDERSTORM WATCH ${svrWatchAlso}REMAINS IN EFFECT UNTIL ${dateUtil.format(${svrWatch.endTime}, ${timeFormat.plain}, 15, ${localtimezone})}## A SEVERE THUNDERSTORM WATCH ${svrWatchAlso}REMAINS IN EFFECT UNTIL ${dateUtil.format(${svrWatch.endTime}, ${timeFormat.plain}, 15, ${localtimezone})}##
${dateUtil.period(${svrWatch.endTime},${timeFormat.plain}, 15, ${localtimezone})}## ${dateUtil.period(${svrWatch.endTime},${timeFormat.plain}, 15, ${localtimezone})}##
#if(${secondtimezone}) #if(${secondtimezone})
@ -251,10 +273,10 @@ ${dateUtil.period(${svrWatch.endTime},${timeFormat.plain}, 15, ${localtimezone})
#set($svrWatchAlso = "ALSO ") #set($svrWatchAlso = "ALSO ")
. ## . ##
#end #end
#end #end
########END ########END
#macro(printcoords $coordinates $list) #macro(printcoords $coordinates $list)
#set($count = 0) #set($count = 0)