For the USA-templates, the Settings.php item $SITE['noaazone'] is used by three scripts:
for warning zone by atom-advisory.php and atom-top-warning.php and
for forecasts (in backup mode) by advforecast2.php
The intent was that the value in $SITE['noaazone'] be the Zone (not the County) code so all three scripts could use the same value. If $SITE['noaazone'] is set to the County code, then the forecast may not be available if your point-printable forecast is not available.
I understand that some warnings may be issued by NOAA only in the County codes, and not the Zone codes, and that leads folks to want to use the County code in $SITE['noaazone']. In a future release, I'll add a provision to have $SITE['noaazone'] use the Zone for forecast backup and an optional new setting to specify the County code for warning information.
If you need to use the County code for warnings, I suggest you do the following:
1) set $SITE['noaazone'] to your forecast Zone (not County)
2) edit the atom-advisory.php to:
a) change the lines
if (isset ($SITE['noaazone'])) {
$myDefaultZone = $SITE['noaazone'];
}
to
if (isset ($SITE['noaazone'])) {
// $myDefaultZone = $SITE['noaazone'];
}
and
b) change the line
$myDefaultZone = 'CAZ513'; // <== change this to your zone
to have your County code instead.
3) edit atom-top-warning.php to:
a) change
if (isset($SITE['noaazone'])) {$DefaultZone = $SITE['noaazone'];}
to
// if (isset($SITE['noaazone'])) {$DefaultZone = $SITE['noaazone'];}
b) change the line
$myDefaultZone = 'CAZ513'; // <== change this to your zone
to have your County code instead.
Then your advisories will come from your County code, and your backup forecasts from the Zone code.
Best regards,
Ken
BTW.. it is a shame that the NWS doesn't replicate all the applicable warnings from the County codes into the affected Zones .. they must have a good reason for it.
