Sections below include:
Original template entry |
<AREA |file=i35mm |area=wwa_counties |output_field=1 |sort_by=[0] |item_format=[2101][2701] |trail=. |lead=THIS INCLUDES INTERSTATE 35 BETWEEN MILE MARKERS~> |
New template entry (replace the original template entry with both of the following entries) | Explanation | ||
<AREA |file=i35mm |area=wwa_counties |output_field=1 |sort_by=[0] |item_format=[2101][2701] |trail=. |var=mm35range> |
Notes:
Original template entry |
<AREA |file=i44mm |area=wwa_counties |output_field=1 |sort_by=[0] |item_format=[2101][2701] |trail=. |lead=THIS INCLUDES INTERSTATE 44 BETWEEN MILE MARKERS~> |
New template entry (replace the original template entry with all of the following) | Explanation | ||||
<AREA |file=wwa_counties |item_format=[2,state] |min_count=2 |format=blank |lead=IN OKLAHOMA |var=inokla > <AREA |file=wwa_counties |item_format=[2,state] |min_count=2 |format=blank |lead=IN TEXAS |var=intex > |
1. Create an .lpi file
This file will be placed in the /awips/fxa/nationalData directory and have a similar format to other .lpi files in that directory. A sample would be:
36.1699 -95.2488 2 1 36.1767 -95.2334 2 2 36.1818 -95.2173 2 3 36.1839 -95.2000 2 4 36.1849 -95.1826 10 5The name should have an .lpi extension. The name I used was interMkrs.lpi . You will use this name in Step 7 below.
The first two numbers are the latitude and longitude. The third number is the "goodness" number to aid the progressive disclosure on the D2D display, and the fourth is the label that is displayed on D2D (in this case, the mile marker number).
It may take some trial-and-error to figure out what goodness values to use to prevent cluttering the display. The method I use is to assign a goodness value of "25" at intervals of 20 (mile markers 20, 40, 60, 80, etc.), "15" for others at intervals of 10 (mile markers 10, 30, 50, 70, etc.), "10" for others at intervals of 5 (mile markers 5, 15, 25, 35, 45, etc.), and "2" for all others.
2. Choose a product button number.
You will need to pick an unused product button number between 1000 and 1999 for the mile marker background. For this example, the product button number is 1259. Once you choose a number, you will need to check the following files to make sure that particular number is not being used for another product. Use
cat
3. Change to the /data/fxa/customFiles directory on the workstation.
4. Make backup copies of the following four files, if they exist. If they do not
exist, they will need to be created:
6. Edit localDepictKeys.txt and add the following line to the bottom of the file:
7. Edit localDataKeys.txt and add the following line to the bottom of the file:
8. Edit otherBackgroundMenus.txt and add the following line to the bottom
of the file:
9. Run mainScript with the -tables and -maps options.
10. Start D2D, change the main display window to the WFO or state scale and load the
mile marker map from the maps pull-down menu.
11. If the mile marker map appears, repeat Step 9 on each lx workstation.
In /data/fxa/nationalData/:
productButtonInfo.txt
dataInfo.manual
depictInfo.manual
backgroundMenus.txt
In /awips/fxa/data/localization/XYZ/: (if the files exist)
XYZ-localProductButtons.txt
XYZ-localDataKeys.txt
XYZ-localDepictKeys.txt
XYZ-otherBackgroundMenus.txt
In /data/fxa/customFiles/: (if the files exist)
localProductButtons.txt
localDataKeys.txt
localDepictKeys.txt
otherBackgroundMenus.txt
For the steps below, the files are assumed to exist in the /data/fxa/customFiles
directory.
localProductButtons.txt
localDepictKeys.txt
localDataKeys.txt
otherBackgroundMenus.txt
5. Edit localProductButtons.txt and add the following line to the bottom of
the file:
1259 | <3000, 1259 |Interstate Mile Mkrs |Interstate Mile Mkrs| 1
This sets the product button for the mile marker display and enables it to display on the WFO, state and
regional scales. However, depending on the goodness numbers you used in the .lpi file, you may need
to zoom in from the default regional scale before they appear.
1259 |5 |1259 | | |1 |Interstate Mile Mkrs |Interstate Mile |1 |1 |1 |
This sets the depict key for the mile marker display, using the same number as the product button (in this
case 1259).
1259 | | | | | | |NAME |filename |.lpi|Mile Markers
This defines the .lpi file that goes with the depict key defined in localDepictKeys.txt. NAME
should be the name displayed when the map is turned on in D2D. filename should be whatever you
named the file in Step #1 (in my case, interMkrs). This is the step (Step 12 in Watson) that was
referred to in my original technical attachment.
productButton: 1259 # Mile Markers
This adds the mile markers selection to the "Maps" drop-down menu.
/awips/fxa/data/localization/scripts/mainScript.csh f -tables -maps
The complete mile marker range section from my template
Incorporating all of the above, the interstate mile marker range section of my templates now is the following:
{ ^ interstate mile markers |
<AREA |file=i35mm |area=wwa_counties
|output_field=1 |sort_by=[0]
|item_format=[2101][2701] |trail=.
|var=mm35range>
<AREA |file=i35mm |area=wwa_counties |min_count=5
|output_field=1 |format=blank
|lead=THIS INCLUDES INTERSTATE 35 BETWEEN MILE MARKERS $$mm35range!>
<AREA |file=i40mm |area=wwa_counties
|output_field=1 |sort_by=[0]
|item_format=[2101][2701] |trail=.
|var=mm40range>
<AREA |file=i40mm |area=wwa_counties |min_count=5
|output_field=1 |format=blank
|lead=THIS INCLUDES INTERSTATE 40 BETWEEN MILE MARKERS $$mm40range!>
<AREA |file=wwa_counties |item_format=[2,state] |min_count=2 |format=blank
|lead=IN OKLAHOMA |var=inokla>
<AREA |file=wwa_counties |item_format=[2,state] |min_count=2 |format=blank
|lead=IN TEXAS |var=intex>
<AREA |file=i44mm |area=wwa_counties
|output_field=1 |sort_by=[0]
|item_format=[2101][2701] |trail=.
|var=mm44range>
<AREA |file=i44mm |area=wwa_counties |min_count=5
|output_field=1 |format=blank
|lead=THIS INCLUDES INTERSTATE 44 $$inokla! BETWEEN MILE MARKERS $$mm44range!>
<AREA |file=i44txmm |area=wwa_counties
|output_field=1 |sort_by=[0]
|item_format=[2101][2701] |trail=.
|var=mm44tx_range>
<AREA |file=i44txmm |area=wwa_counties |min_count=5
|output_field=1 |format=blank
|lead=THIS INCLUDES INTERSTATE 44 $$intex! BETWEEN MILE MARKERS $$mm44tx_range!>
}