Navigation Menu

Airport Weather Warnings

Purpose:

This jobsheet will walk the Focal Point through setting up the Airport Weather Warning Tool.

Tasks:

AT-A-GLANCE:

  • What? The Airport Weather Warning Tool can be configured using a class-based override of airportLocationDictionary within AirportWeatherWarningTool.py.

  • Required airport geometries. The Airport Weather Warning Tool must be configured with your local airports’ geometries before you can use it. This jobsheet will show you how to find the lat/lon coordinates for your airport vertices in the WarnGenLoc map.  

Follow the steps below for more detailed guidance.

  1. In the Localization perspective, navigate to Hazard Services –> Recommenders –> AirportWeatherWarningTool.py and double click on BASE to load.

  2. If a USER override for AirportWeatherWarningTool.py does not already exist, create one by right-clicking BASE –> Create Override File and selecting User. Open the USER override file.

  3. In the BASE file, use Ctrl+F to launch the Find/Replace tool and search for the function airportLocationDictionary. The names and airport vertex coordinates are contained within that function. Some examples from OAX appear in the BASE file. Copy the entire function definition into the USER override file.

  4. In the USER file, remove the unwanted airport names and vertex coordinates from airportPolyDict and enter the names and airport vertex coordinates of your desired airports into the dictionary using the same syntax.

  5. If you do not know the lat/lon coordinates for your airport vertices, you can find them using the following steps:

    1. In the D2D perspective, load the WarnGen Locations map by selecting Maps –> WarnGenLoc from the menu bar at the top of the screen.

    2. Open the Hazard Services Hydro Console.

    3. Zoom in on one of your airports on the map.

    4. In the Hazard Services menu bar, click on the Maps icon and select WarnGenLoc from the dropdown.

    5. Left-click to highlight your airport in the map, then right-click to open the HID.

    6. In the Type dropdown in the HID, select Flood Watch (FA.A)

    7. Click the Propose button at the bottom of the HID.

    8. Right-click on your Proposed FA.A hazard in the Hazard Services Console and select View Details for Selected Events. This will open the Event Details Viewer pop-up window.

    9. Scroll down in the Event Details Viewer until you reach the polygon geometry, labeled Geometry: POLYGON

    10. Copy the field of vertices, then right-click the Proposed FA.A in the Hazard Services Console and select Delete to remove the hazard from the list.

    11. Return to the Localization perspective and paste the coordinates into the airportPolyDict dictionary in your USER override. You will need to reformat the vertices with brackets [ ] around each pair of coordinates and commas between latitude and longitude to match the correct syntax.

  6. Save the override file using Ctrl+S. Merge if it asks you to.

  7. Add additional airports to the airportPolyDict dictionary until all desired airports in your CWA have been included.

  8. Test the Airport Weather Warning Tool in the D2D perspective. You need to use the Hazard Services Console: Short Fuse configuration for the tool to appear in the Tools dropdown. Make sure all of your desired airports appear in the dropdown and that the geometry is correct on the map for each one.

  9. When you are comfortable that the USER override is working as you want, return to the Localization perspective. Promote the USER override to a SITE override by right-clicking USER under AirportWeatherWarningTool.py in the File Browser and selecting Copy To –> Site.

Congratulations, you've configured the Airport Weather Warning Tool.