How do I sort my weather element list so the temporary hazard grids are near the parent hazard grid?
• The below code, developed by Dave Metze at PUB/Matt Belk at BOX, will help keep the temporary hazard grids with the parent hazard grid. This includes convective watches and TCV products. This code does not contain the proper spacing, but when you type it into your SitegfeConfig file, the editor will help put things in the proper place. # Import the VTEC table module import VTECTable # Dynamically locate the Hazards grid index = GridManagerSortOrder.index(‘Hazards’) # Get all the keys in the VTEC table, and sort them keys = VTECTable.VTECTable.keys() keys.sort() # Look through the keys for key in keys: # If this hazard is a Tornado, Severe, Tropical or Hurricane Watch, or # a Tropical or Hurricane Warning if (key[:2] in [‘TO’, ‘SV’, ‘TR’, ‘HU’] and key[3] == ‘A’) or \ (key[:2] in [‘TR’, ‘HU’] and key[3] == ‘W’): # Cycle through all the possible event tracking numbers (ETNs) for count in range(1000): # Ensure this ETN is a 3 digit number etnNumber = ‘%03d’ % (count) # Make a name for t