**[Installation Instructions for the Diurnal Wind Procedure and
DiurnalWindTool Smart Tool]{.underline}**

1\. Copy the DiurnalWind.tar file to the /tmp directory of the machine
where you will be installing the tools.

2\. Untar the file and verify that DiurnalWindProcedure.py and
DiurnalWindTool.py are in the /tmp directory.

cd /tmp

tar xvf DiurnalWind.tar

ls ‑l \*DiurnalWind\*

3\. Start GFE as user SITE. From the GFE menu, select *Define
Procedures*. Right‑click in the Procedures listbox and select *New*.
Enter DiurnalWindProcedure for the name and click *OK*. A Python IDE
editor (IDLE) window will open.

4\. Delete all text from this window.

5\. Select *Open* from the File menu of the IDLE window.

6\. Select the DiurnalWindProcedure.py and click *Open*. The procedure
will open in a new window. Copy the contents of the procedure and paste
into the new procedure window.

7\. Select *File‑‑\>Save,* then *File‑‑\>Exit*.

8\. From the GFE menu, select *Define Smart Tools*. Right‑click in the
listbox and select *New*. Enter DiurnalWindTool for the name. Click *OK*
and a Python IDE editor (IDLE) window will open.

9\. Delete all the text from this window.

10\. Select *Open* from the File menu of the IDLE window.

11\. Click on the DiurnalWindTool.py file and click *Open*. Copy the
contents of the tool and paste into the new tool window.

12\. Select *File‑‑\>Save,* then *File‑‑\>Exit*.

**[Local Modification Instructions]{.underline}**:

In order for the tool to work properly at your location, the diurnal
curve table must be adjusted. The diurnal curve table starts at line 109
in the DiurnalWindTool Smart Tool. To modify it for your locations
follow these steps:

1.  From the GFE menu, select *Define Smart Tools...*

2.  From the Edit Actions box, select *DiurnalWindTool*, right click and
    select *Modify...*

3.  Go to <http://www.microclimates.org/diurnal/index.html> and find the
    data for the station that best represents the wind speeds in your
    area.

4.  For each month, determine the difference between the max and min
    hourly wind speed.

5.  For each hour of the month, subtract the min hourly wind speed from
    that hour's wind speed and divide by the difference between the max
    and min hourly wind speed.

6.  Multiply that number by 100 to get the weighted percentage for that
    hour:

> Here is an example for January using a table from the above website:
>
> **JANUARY**

  ----------- ------------------ --------------- ---------- ------------- -------------------- -------------- ------------
  **Time**\   **Temperature**\   **Dewpoint**\   **Wind     **Wind\       **Wind Dir.\         **Cloud        **Precip.
  (LST)       (°F)               (°F)            Speed**\   Direction**   **\|Vector\|/Speed   Cover**\       Rate**\
                                                 (mph)                                         Opaque/Total   (in/hr/mo)

  **0:00**    25.1°              18.4°           8.7        238° \| WSW   40%                  66% / 69%      0.08\"

  **1:00**    24.7°              18.3°           8.7        237° \| WSW   41%                  67% / 69%      0.09\"

  **2:00**    24.4°              18.2°           8.5        233° \| SW    40%                  67% / 69%      0.09\"

  **3:00**    24.1°              18.0°           8.4        233° \| SW    40%                  67% / 69%      0.11\"

  **4:00**    23.8°              17.9°           8.5        229° \| SW    42%                  67% / 70%      0.09\"

  **5:00**    23.5°              17.7°           8.5        231° \| SW    41%                  68% / 71%      0.10\"

  **6:00**    23.3°              17.5°           8.5        230° \| SW    41%                  69% / 71%      0.09\"

  **7:00**    23.5°              17.5°           8.6        226° \| SW    40%                  70% / 74%      0.08\"

  **8:00**    24.2°              17.9°           9.1        226° \| SW    44%                  70% / 75%      0.08\"

  **9:00**    25.5°              18.7°           9.9        230° \| SW    45%                  71% / 75%      0.08\"

  **10:00**   27.0°              19.3°           10.9       227° \| SW    48%                  70% / 75%      0.07\"

  **11:00**   28.5°              19.8°           11.3       229° \| SW    52%                  70% / 75%      0.07\"

  **12:00**   29.7°              20.1°           11.7       234° \| SW    54%                  71% / 76%      0.06\"

  **13:00**   30.4°              20.3°           11.7       236° \| WSW   52%                  71% / 76%      0.03\"

  **14:00**   30.8°              20.4°           11.8       236° \| WSW   52%                  70% / 76%      0.05\"

  **15:00**   31.0°              20.5°           11.4       239° \| WSW   51%                  71% / 76%      0.07\"

  **16:00**   30.2°              20.3°           10.8       240° \| WSW   48%                  69% / 75%      0.09\"

  **17:00**   29.1°              20.1°           9.7        243° \| WSW   46%                  67% / 73%      0.09\"

  **18:00**   28.1°              19.8°           9.4        242° \| WSW   43%                  67% / 71%      0.06\"

  **19:00**   27.4°              19.5°           9.2        241° \| WSW   39%                  65% / 70%      0.08\"

  **20:00**   26.8°              19.2°           9.0        238° \| WSW   37%                  65% / 69%      0.07\"

  **21:00**   26.2°              19.0°           9.0        238° \| WSW   39%                  65% / 69%      0.06\"

  **22:00**   25.8°              18.8°           8.9        236° \| SW    41%                  65% / 69%      0.07\"

  **23:00**   25.4°              18.6°           8.8        236° \| SW    41%                  66% / 69%      0.08\"
  ----------- ------------------ --------------- ---------- ------------- -------------------- -------------- ------------

a.  The max hourly wind speed is 11.8 and the min hourly wind speed is
    8.4.

b.  The difference between the max and min wind speeds is 3.4 (11.8 -
    8.4).

c.  For hour 0:00, the wind speed is 8.7, so the weighted percentage
    would be 9 percent. (((8.7-8.4)/3.4)\*100).

d.  For hour 1:00, the wind speed is again 8.7, so the weighted
    percentage would be 9 percent.

e.  For hour 2:00, the wind speed is 8.5, so the weighted percentage
    would be 3 percent (((8.5-8.4)/3.4)\*100).

f.  Continue this for every hour of each month.

```{=html}
<!-- -->
```
7.  Place the newly calculated hourly weighted percentages into the
    table starting on line 109 of the DiurnalWindTool.

8.  Note that the times in the smart tool are Z times while the times in
    the above table are in local time so you will need to account for
    this.

9.  For each month, determine the diurnal max and min wind times

10. Place the diurnal max time (Z time) for each month into the table on
    line 71 of the DiurnalWindTool.

11. Place the diurnal min time (Z time) for each month into the table on
    line 72 of the DiurnalWindTool.

12. Select *File* *Save*, then *File* *Exit*

Follow these steps to set up the WindMax, WindMin and OldWind grids to
load directly under the Wind grids:

1.  From the GFE Menu, select *Define Config and ifpIMAGE files...*

2.  From the *Define Config Files* window, right click on the
    appropriate Config File and select *Modify*

3.  Add or edit the GridManagerSortOrder line so it includes 'OldWind',
    'WindMax', and 'WindMin' directly after the 'Wind' field. It should
    look something like this: GridManagerSortOrder = \['MaxT', 'MinT',
    'T', 'Td', 'RH', 'Wind', 'OldWind, 'WindMax', 'WindMin', 'Sky'\]

4.  Select *File* *Save*, then *File* *Exit*