<?php
require_once "../../config/settings.inc.php";
require_once "../../include/myview.php";
$t = new MyView();
$t->title = "AWOS Archive | Sky Coverages";
$t->content = <<<EOM
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
    <li class="breadcrumb-item"><a href="/AWOS/">AWOS</a></li>
    <li class="breadcrumb-item active" aria-current="page">AWOS Sky Coverage Codes</li>
</ol>
</nav>

<header class="mb-4">
    <h1 class="h3 mb-3">AWOS Sky Coverage Codes</h1>
    <p class="mb-2">The Iowa DOT provides the IEM with an <a href="/request/awos/1min.php">archive of 1 minute observations</a> from their AWOS network. This archive contains numerically coded values for sky coverage.</p>
    <p class="mb-0">There does not appear to be a definitive published cross reference for these values, so the table below reflects an educated best-effort interpretation by Harry Hillaker and Daryl Herzmann.</p>
</header>

<div class="alert alert-info" role="status">
    Use this page as a lookup reference when working with the archived AWOS one-minute dataset. Code meanings should be treated as interpreted guidance, not an official vendor specification.
</div>

<section class="card shadow-sm">
    <div class="card-body">
        <div class="d-flex flex-wrap justify-content-between align-items-center gap-2 mb-3">
            <h2 class="h5 mb-0">Sky Coverage Lookup Table</h2>
            <span class="badge text-bg-light border">Archive reference</span>
        </div>
        <div class="table-responsive">
            <table class="table table-bordered table-striped table-hover align-middle mb-0">
                <caption class="text-start">Interpretive lookup for sky coverage codes stored in the Iowa AWOS one-minute archive.</caption>
                <thead class="table-light">
                    <tr>
                      <th scope="col">Code</th>
                      <th scope="col">Translated Code</th>
                      <th scope="col">Meaning</th>
                    </tr>
                </thead>
                <tbody>
                    <tr><th scope="row">0</th><td><code>NOREPORT</code></td>
                      <td>No report, since lower cloud layers are obstructing.</td></tr>

                    <tr><th scope="row">1</th><td><code>SCATTERED</code></td>
                      <td>Scattered (10% to 50% coverage)</td></tr>

                    <tr><th scope="row">2</th><td><code>BROKEN</code></td>
                      <td>Broken (60% to 90% coverage)</td></tr>

                    <tr><th scope="row">4</th><td><code>OVERCAST</code></td>
                      <td>Overcast (more than 90% coverage)</td></tr>

                    <tr><th scope="row">8</th><td><code>OBSCURATION</code></td>
                      <td>Full obscuration (no ceiling or cloud amount available)</td></tr>

                    <tr><th scope="row">17</th><td><code>OBSCURATION</code></td>
                      <td>Partial obscuration, lowest cloud layer is scattered.</td></tr>

                    <tr><th scope="row">18</th><td><code>OBSCURATION</code></td>
                      <td>Partial obscuration, lowest cloud layer is broken.</td></tr>

                    <tr><th scope="row">20</th><td><code>OBSCURATION</code></td>
                      <td>Partial obscuration, lowest cloud layer is overcast.</td></tr>

                    <tr><th scope="row">32</th><td><code>INDEFINITE</code></td>
                      <td>Indefinite ceiling (no cloud cover amount available?)</td></tr>

                    <tr><th scope="row">64</th><td><code>CLEAR</code></td>
                      <td>No clouds below 12000 feet</td></tr>

                    <tr><th scope="row">128</th><td><code>FEW</code></td>
                      <td>Few (less than 10% coverage)</td></tr>

                    <tr><th scope="row">255</th><td><code>MISSING</code></td>
                      <td>Missing (sky condition not measured).</td></tr>

                    <tr><th scope="row">*</th><td><code>UNKNOWNCODE</code></td>
                      <td>All other values that may appear in the database.</td></tr>
                </tbody>
            </table>
        </div>
    </div>
</section>
EOM;
$t->render('single.phtml');
