<commit_before><?php 
include("../../config/settings.inc.php");
include("../../include/database.inc.php");
include("setup.php");

include("../../include/myview.php");
$t = new MyView();
$t->thispage="iem-sites";
$t->title = "Site Wind Roses";
$t->sites_current="windrose"; 

$content = <<<EOF
<h3 class="page-header">Wind Roses</h4>

<div class="alert alert-warning">Scroll down this page for monthly climatologies!</div>

<p>Wind roses are an information packed plot providing frequencies of 
wind direction and wind speed.  A wind rose can quickly indicate the dominant
wind directions and the direction of strongest wind speeds.  The IEM has generated
these wind roses based on our archive.  The archive does contain errors and
non representative data, so please use care when using these plots.  In 
general, data from the airports is of good quality and representative of the 
local surrounding area.
EOF;

$rosedata_uri = "/cgi-bin/windrose.py?nsector=36&station=$station&network=$network"
		."&day1=1&day2=1&month2=1&minute1=0&minute2=0&units=mph&justdata=true";


if (file_exists("/mesonet/share/windrose/climate/yearly/${station}_yearly.png"))
{
  $content .= "<p><h4>Yearly Climatology:</h4>
  <div class='row'><div class='col-md-12'><a href='{$rosedata_uri}&month1=1' class='btn btn-primary' role='button' rel='nofollow'><i class='glyphicon glyphicon-list'></i> View raw data</a>
  <br /><br /><img src=\"/onsite/windrose/climate/yearly/${station}_yearly.png\" class='img-responsive'>
  </div></div>";
<commit_msg>fix how we call the raw data script<commit_after><?php 
include("../../config/settings.inc.php");
include("../../include/database.inc.php");
include("setup.php");

include("../../include/myview.php");
$t = new MyView();
$t->thispage="iem-sites";
$t->title = "Site Wind Roses";
$t->sites_current="windrose"; 

$content = <<<EOF
<h3 class="page-header">Wind Roses</h4>

<div class="alert alert-warning">Scroll down this page for monthly climatologies!</div>

<p>Wind roses are an information packed plot providing frequencies of 
wind direction and wind speed.  A wind rose can quickly indicate the dominant
wind directions and the direction of strongest wind speeds.  The IEM has generated
these wind roses based on our archive.  The archive does contain errors and
non representative data, so please use care when using these plots.  In 
general, data from the airports is of good quality and representative of the 
local surrounding area.
EOF;

$rosedata_uri = "/cgi-bin/windrose.py?nsector=36&station=$station&network=$network"
		."&year1=1970&day1=1&day2=1&month2=1&minute1=0&minute2=0&units=mph&"
		."justdata=true&hour1=0&hour2=0&year2=". (intval(date("Y"))+1);


if (file_exists("/mesonet/share/windrose/climate/yearly/${station}_yearly.png"))
{
  $content .= "<p><h4>Yearly Climatology:</h4>
  <div class='row'><div class='col-md-12'><a href='{$rosedata_uri}&month1=1' class='btn btn-primary' role='button' rel='nofollow'><i class='glyphicon glyphicon-list'></i> View raw data</a>
  <br /><br /><img src=\"/onsite/windrose/climate/yearly/${station}_yearly.png\" class='img-responsive'>
  </div></div>";

{'fraction_non_alphanumeric': 0.16874003189792663, 'fraction_numerical': 0.016267942583732056, 'mean_word_length': 5.4, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5689125', 'n_tokens_mistral': 1064, 'n_tokens_neox': 1020, 'n_words': 275}