HAMweather FlightRules Map 1.0 (Mar 11, 2006)
Contents:
OVERVIEW:
The Flight Rules Map plugin can be used by HWdb Update Service Subscribers to plot flight rules based on the flight rules as defined by the following grid:
- Flight category definitions:
| Category |
Ceiling |
|
Visibility |
Low Instrument Flight Rules
LIFR* (magenta sky symbol) |
below 500 feet AGL |
and/or |
less than 1 mile |
Instrument Flight Rules
IFR (red sky symbol) |
500 to below 1,000 feet AGL |
and/or |
1 mile to less than 3 miles |
Marginal Visual Flight Rules
MVFR (blue sky symbol) |
1,000 to 3,000 feet AGL |
and/or |
3 to 5 miles |
Visual Flight Rules
VFR+ (green sky symbol) |
greater than 3,000 feet AGL |
and |
greater than 5 miles |
*By definition, IFR is ceiling less than 1,000 feet AGL and/or visibility less than 3 miles while LIFR is a sub-category of IFR.
+By definition, VFR is ceiling greater than or equal to 1,000 feet AGL and visibility greater than or equal to 3 miles while MVFR is a sub-category of VFR. |
The above grid was obtained from the NOAA aviation web site.
To plot the flight rules map, the metar observations for hundreds of ICAOs are required to obtain the flight rulest. Since NOAA does not provide a single Flight Rules file an with all of the icaos and it would impractiable to query hundreds of ICAOS at one time from the NOAA servers, , the Flight Rules Plugin will query the HAMweather servers to obtain the flight rules for the US or a specific state. This HAMweather web service is open to anyone with an active HWdb Update Service subsription.*
With the data the plugin can generate maps similiar to the one below:
License:
The HW3 Flightrules Map plug-in falls under the HAMweather 3 Software suite license. You can find the latest version at:
http://www.hamweather.net/hw3/license.shtml
As part of the HAMweather 3 license, you must keep the credit phrase "HAMweather.com" on all maps unless HAMweather 3 has been properly registered.
NOTE: The Flight Rules Map plugin requires that you have an active HWdb Update Service Subscription. The flight rules maps querys an XML web service for the flight rule data so that it can quickly and easily generate the map. Access to this service is currently limited to HWdb Update Service subscribers. Visit the HWdb Update Service pages for more information.
Requirements:
The HW3 QPF plugin requires the following HAMweather products be installed and working correctly:
- HAMweather 3 (Perl, PHP or ASP version) . Note for best implementation HW3.98 or higher is recommended
- The Flight Rules Map plugin requires that you have an active HWdb Update Service Subscription. The flight rules maps querys an XML web service for the flight rule data so that it can quickly and easily generate the map. Access to this service is currently limited to HWdb Update Service subscribers. Visit the HWdb Update Service pages for more information.
- HW3 Plugin API (included in this distribution if you do not yet have it installed)
- Hw3image Plug-in
Downloading:
The HW3 Flight Rules Map plugin can be downloaded from the HAMweather Plug-in area.
Installation:
Installation of the HW3 Flight Rules Map Plugin is fairly simple, using the steps below:
- Make sure you have met the requirements stated above.
- Unzip the distribution with an unzipping utility, such as winzip, or the built in zip capabilities of Window XP.
- Open the cgi-bin/configs/fc_flightrules.ini file in a text editor. At line 5 you will see:
flightrules_prefix=/wxACCESSCODE/flightrules/%%country%%/%%state%%.xml
replace the word "ACCESSCODE" with your HWdb subscription access code. If you do not know this code, it is available online from the Members Area. Once logged into the members area, click on your active HWdb Update service Subscription. From here, click the "included Data Feeds" link, this page will include your access code.. Note that sharing your access code with others, can result in your access being terminated.
For Example. if you access code is A1B2C3D4E5F then you would adjust the above line to be:
flightrules_prefix=/wxA1B2C3D4E5F/flightrules/%%country%%/%%state%%.xml
- Upload the various files to your HAMweather 3 installation:
- Upload the "FlightRuleMap.pm" ("FlightRuleMap.php" for HW3php) to the hamlib/HW3Plugins directory
NOTE: Your FTP program may not auto recognize ".pm" files as text files and may try to upload in binary mode. You should force your FTP program to upload these files in ASCII mode as uploading in binary mode will cause errors on UNIX/LINUX servers.
The following should be installed in the paths indicated after you upload the file (Note: Unix servers are case sensitive):
HW3perl (or HW3asp):
hamlib/HW3Plugins/QPFDAY.pm
HW3php:
hamlib/HW3Plugins/QPFDAY.php
- Upload the files with-in the distribution's "configs" directory to the "configs" directory of the HAMweather 3 installation. NOTE: You are not replacing your current "configs" directory but simply uploading the ini files to the "ini" directory on the server.
NOTE: Your FTP program may not auto recognize ".ini" files as text files and may try to upload in binary mode. You should force your FTP program to upload these files in ASCII mode as uploading in binary mode will cause errors on UNIX/LINUX servers.
The following should be installed in the paths indicated after you upload the in the distributions "templates" directory:
HW3Perl (or HW3asp):
configs/fc_flightrulesmap.ini
HW3php:
configs/fc_flightrulesmap.ini.php
- Upload the files with-in the distribution's "templates" directory to the "templates" directory of the HAMweather 3 installation. NOTE: You are not replacing your current "templates" directory but simply uploading the template files to the "templates" directory on the server.
The following should be installed in the paths indicated after you upload the in the distributions "templates" directory:
templates/flightrulemap.html
- Upload the imap file from with in the distributions "hw3dbs/us/imaps" directory to the corresponding directory of your HW3 installation.
- Upload the blankmap files with-in the distributions "images/blankmaps" directory to the "images/blankmaps" directory of your HW3 installation.
- The components required to use the Plugin are installed.
Accessing:
To access the plug-in with in HAMweather and have it generate the default map use a URL similiar too: :
HW3Perl (or HW3asp):
hw3.cgi?forecast=flightrulesmap&dpp=0
HW3php:
hw3.php?forecast=flightrulesmap&dpp=0
If you would to plot the flightrules on a different map you can provide the "usemap" parameter. I.E to plot the flightrules on the included southeast regional map, use a url similair too:
HW3Perl (or HW3asp):
hw3.cgi?forecast=flightrulesmap&dpp=0&usemap=southeast_albers_640x480
HW3php:
hw3.php?forecast=flightrulesmap&dpp=0&usemap=southeast_albers_640x480
If you want to plot the flightrules for a speicific state map that you may have you can use a url similiar to: NOTE: State maps are not included in this plugin but are available via separate download from the plugins area
HW3Perl (or HW3asp):
hw3.cgi?forecast=flightrulesmap&dpp=0&usemap=ga_640x480&state=ga
HW3php:
hw3.php?forecast=flightrulesmap&dpp=0&usemap=ga_640x480&state=ga
Notice in the above we used the state parameter to limit the XML fetching to just the flight rules for aiports with in GA. Do not provide the state parameter if you want to plot the rule for surrounding states on the map.
The plugin also supports a "country " parameter which allows you to plot flight rules for other countries. While this is available, you must note that each country can have its own flight rules & creiteria for each. The flight rules plotted by this plugin are based on the US flightrules and weather criteria noted at the top of this document.
Parameters:
Here is a complete list of all the parameters that can be passed to the plugin via the query string, form post or an INI file:
Parameter |
Description |
Primary Query Settings |
| nocache |
Controls if image is cached or forced to be recreated. nocache=1 will force HW3 to recreate the image. Useful during testing, but should not be set or set to zero during production |
usemap |
Can supply the name of the map (minus extension) to plot the contours on. If not set will default to qpf_usa which will plot ont he included qpf_usa.png map. |
| state |
Can be used to request the flight rules for a specific state |
| country |
Can be used to request flight rules based on the US criteria for other countries. Not recommended for use. |
Template Variables:
Under normal use, there is no need to reveiw the template variables.
Template
Variable |
Description |
| %%map_name%% |
The name of the saved map |
FAQ
- How do I alter the colors of the Flight Rules?
In the configs/fc_flightrules.ini (fc_flightrules.ini.php for HW3php) scroll to the [flightrulesmap Colors] section. Here the colors are defined for each contour flight rule type.
- How can I display squares instead of circles on the maps:
In the configs/fc_flightrules.ini (fc_flightrules.ini.php for HW3php) scroll to the [Image Settings] section you will see the setting "ctype=circle". Change this to "ctype=square" for squares
- How can I display filled circles or squares on the maps:
In the configs/fc_flightrules.ini (fc_flightrules.ini.php for HW3php) scroll to the [Image Settings] section you will see the setting "cfilled=0". Change this to "cfilled=1" for filled circles or squares (as defined by the ctype setting)
- How can I make the circles/squares larger or smaller?:
In the configs/fc_flightrules.ini (fc_flightrules.ini.php for HW3php) scroll to the [Image Settings] section you will see the setting "cwidth=8". change the 8 to a larger number to increase the size or smaller to decrease the size.
- How do I make the credit text on the maps state my sites name?
The QPFDay plugin uses the HW3 Plugin API. The Plugin API is designed to make plugin development simpler for designers, yet add conformity to the plugins. Normally, as with this plugin you will manage the main look and feel of the title bars via the configs/imagepluginapi.ini (imagepluginapi.ini.php for HW3php). In this config file find the [Title Settings] section. Here you can adjust the title bar color, credit text and more. NOTE: If you have not registered HAMweather you are required to keep the "HAMweather.com" displayed on the images
SUPPORT
You can find support for this plug-in via the online support forums, specifically the HW3Plugins forum.
Release History:
Mar 11 , 2006 - 1.0 Release