|
@@ 8359-8363 (lines=5) @@
|
| 8356 |
|
$temp_array['direction_degree'] = $direction; |
| 8357 |
|
$temp_array['direction_shortname'] = "N"; |
| 8358 |
|
$temp_array['direction_fullname'] = "North"; |
| 8359 |
|
} elseif ($direction >= 22.5 && $direction < 45){ |
| 8360 |
|
$temp_array['direction_degree'] = $direction; |
| 8361 |
|
$temp_array['direction_shortname'] = "NNE"; |
| 8362 |
|
$temp_array['direction_fullname'] = "North-Northeast"; |
| 8363 |
|
} elseif ($direction >= 45 && $direction < 67.5){ |
| 8364 |
|
$temp_array['direction_degree'] = $direction; |
| 8365 |
|
$temp_array['direction_shortname'] = "NE"; |
| 8366 |
|
$temp_array['direction_fullname'] = "Northeast"; |
|
@@ 8367-8371 (lines=5) @@
|
| 8364 |
|
$temp_array['direction_degree'] = $direction; |
| 8365 |
|
$temp_array['direction_shortname'] = "NE"; |
| 8366 |
|
$temp_array['direction_fullname'] = "Northeast"; |
| 8367 |
|
} elseif ($direction >= 67.5 && $direction < 90){ |
| 8368 |
|
$temp_array['direction_degree'] = $direction; |
| 8369 |
|
$temp_array['direction_shortname'] = "ENE"; |
| 8370 |
|
$temp_array['direction_fullname'] = "East-Northeast"; |
| 8371 |
|
} elseif ($direction >= 90 && $direction < 112.5){ |
| 8372 |
|
$temp_array['direction_degree'] = $direction; |
| 8373 |
|
$temp_array['direction_shortname'] = "E"; |
| 8374 |
|
$temp_array['direction_fullname'] = "East"; |
|
@@ 8375-8379 (lines=5) @@
|
| 8372 |
|
$temp_array['direction_degree'] = $direction; |
| 8373 |
|
$temp_array['direction_shortname'] = "E"; |
| 8374 |
|
$temp_array['direction_fullname'] = "East"; |
| 8375 |
|
} elseif ($direction >= 112.5 && $direction < 135){ |
| 8376 |
|
$temp_array['direction_degree'] = $direction; |
| 8377 |
|
$temp_array['direction_shortname'] = "ESE"; |
| 8378 |
|
$temp_array['direction_fullname'] = "East-Southeast"; |
| 8379 |
|
} elseif ($direction >= 135 && $direction < 157.5){ |
| 8380 |
|
$temp_array['direction_degree'] = $direction; |
| 8381 |
|
$temp_array['direction_shortname'] = "SE"; |
| 8382 |
|
$temp_array['direction_fullname'] = "Southeast"; |
|
@@ 8383-8387 (lines=5) @@
|
| 8380 |
|
$temp_array['direction_degree'] = $direction; |
| 8381 |
|
$temp_array['direction_shortname'] = "SE"; |
| 8382 |
|
$temp_array['direction_fullname'] = "Southeast"; |
| 8383 |
|
} elseif ($direction >= 157.5 && $direction < 180){ |
| 8384 |
|
$temp_array['direction_degree'] = $direction; |
| 8385 |
|
$temp_array['direction_shortname'] = "SSE"; |
| 8386 |
|
$temp_array['direction_fullname'] = "South-Southeast"; |
| 8387 |
|
} elseif ($direction >= 180 && $direction < 202.5){ |
| 8388 |
|
$temp_array['direction_degree'] = $direction; |
| 8389 |
|
$temp_array['direction_shortname'] = "S"; |
| 8390 |
|
$temp_array['direction_fullname'] = "South"; |
|
@@ 8391-8395 (lines=5) @@
|
| 8388 |
|
$temp_array['direction_degree'] = $direction; |
| 8389 |
|
$temp_array['direction_shortname'] = "S"; |
| 8390 |
|
$temp_array['direction_fullname'] = "South"; |
| 8391 |
|
} elseif ($direction >= 202.5 && $direction < 225){ |
| 8392 |
|
$temp_array['direction_degree'] = $direction; |
| 8393 |
|
$temp_array['direction_shortname'] = "SSW"; |
| 8394 |
|
$temp_array['direction_fullname'] = "South-Southwest"; |
| 8395 |
|
} elseif ($direction >= 225 && $direction < 247.5){ |
| 8396 |
|
$temp_array['direction_degree'] = $direction; |
| 8397 |
|
$temp_array['direction_shortname'] = "SW"; |
| 8398 |
|
$temp_array['direction_fullname'] = "Southwest"; |
|
@@ 8399-8403 (lines=5) @@
|
| 8396 |
|
$temp_array['direction_degree'] = $direction; |
| 8397 |
|
$temp_array['direction_shortname'] = "SW"; |
| 8398 |
|
$temp_array['direction_fullname'] = "Southwest"; |
| 8399 |
|
} elseif ($direction >= 247.5 && $direction < 270){ |
| 8400 |
|
$temp_array['direction_degree'] = $direction; |
| 8401 |
|
$temp_array['direction_shortname'] = "WSW"; |
| 8402 |
|
$temp_array['direction_fullname'] = "West-Southwest"; |
| 8403 |
|
} elseif ($direction >= 270 && $direction < 292.5){ |
| 8404 |
|
$temp_array['direction_degree'] = $direction; |
| 8405 |
|
$temp_array['direction_shortname'] = "W"; |
| 8406 |
|
$temp_array['direction_fullname'] = "West"; |
|
@@ 8407-8411 (lines=5) @@
|
| 8404 |
|
$temp_array['direction_degree'] = $direction; |
| 8405 |
|
$temp_array['direction_shortname'] = "W"; |
| 8406 |
|
$temp_array['direction_fullname'] = "West"; |
| 8407 |
|
} elseif ($direction >= 292.5 && $direction < 315){ |
| 8408 |
|
$temp_array['direction_degree'] = $direction; |
| 8409 |
|
$temp_array['direction_shortname'] = "WNW"; |
| 8410 |
|
$temp_array['direction_fullname'] = "West-Northwest"; |
| 8411 |
|
} elseif ($direction >= 315 && $direction < 337.5){ |
| 8412 |
|
$temp_array['direction_degree'] = $direction; |
| 8413 |
|
$temp_array['direction_shortname'] = "NW"; |
| 8414 |
|
$temp_array['direction_fullname'] = "Northwest"; |
|
@@ 8415-8419 (lines=5) @@
|
| 8412 |
|
$temp_array['direction_degree'] = $direction; |
| 8413 |
|
$temp_array['direction_shortname'] = "NW"; |
| 8414 |
|
$temp_array['direction_fullname'] = "Northwest"; |
| 8415 |
|
} elseif ($direction >= 337.5 && $direction < 360){ |
| 8416 |
|
$temp_array['direction_degree'] = $direction; |
| 8417 |
|
$temp_array['direction_shortname'] = "NNW"; |
| 8418 |
|
$temp_array['direction_fullname'] = "North-Northwest"; |
| 8419 |
|
} |
| 8420 |
|
$direction_array[] = $temp_array; |
| 8421 |
|
return $direction_array; |
| 8422 |
|
} |