<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>temperatura Archives &#8212; Santiago</title>
	<atom:link href="https://santiagoacevedo.com.br/tag/temperatura/feed/" rel="self" type="application/rss+xml" />
	<link>https://santiagoacevedo.com.br/tag/temperatura/</link>
	<description>Blog</description>
	<lastBuildDate>Sun, 30 May 2021 22:17:33 +0000</lastBuildDate>
	<language>pt-BR</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
<site xmlns="com-wordpress:feed-additions:1">193839064</site>	<item>
		<title>Calcular sensação térmica e Índice de Calor com PHP</title>
		<link>https://santiagoacevedo.com.br/2021/05/30/calcular-sensacao-termica-e-indice-de-calor-com-php/</link>
					<comments>https://santiagoacevedo.com.br/2021/05/30/calcular-sensacao-termica-e-indice-de-calor-com-php/#respond</comments>
		
		<dc:creator><![CDATA[Santiago]]></dc:creator>
		<pubDate>Sun, 30 May 2021 21:25:54 +0000</pubDate>
				<category><![CDATA[Script]]></category>
		<category><![CDATA[Clima]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[temperatura]]></category>
		<guid isPermaLink="false">https://santiagoacevedo.com.br/?p=359</guid>

					<description><![CDATA[<p>Sensação térmica ou wind chill, em inglês, é a temperatura aparente sentida pela pele exposta, em virtude da combinação entre temperatura do ar e velocidade...</p>
<p>The post <a href="https://santiagoacevedo.com.br/2021/05/30/calcular-sensacao-termica-e-indice-de-calor-com-php/">Calcular sensação térmica e Índice de Calor com PHP</a> appeared first on <a href="https://santiagoacevedo.com.br">Santiago</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Sensação térmica ou wind chill, em inglês, é a temperatura aparente sentida pela pele exposta, em virtude da combinação entre temperatura do ar e velocidade do vento.</p>
<p>Para calcular precisamos de dois dados a temperatura e a velocidade do vento.</p>
<p>Função em PHP:</p>
<pre class="EnlighterJSRAW" data-enlighter-language="php" data-enlighter-theme="godzilla">function calSensacaoTermica($temperatura,$vel_vento){
    $vel_vento = $vel_vento / 3.6;
    $sensação = 33 + (10 * sqrt($vel_vento) + 10.45 - $vel_vento) * ($temperatura - 33) / 22;
    return round($sensação);
}
#Exemplo
echo calSensacaoTermica(28,15);

</pre>
<p>Calcular Índice de Calor</p>
<pre class="EnlighterJSRAW" data-enlighter-language="php" data-enlighter-theme="godzilla">&lt;?php
function calIndCalor($temp, $umR){
    $tempF = (($temp * 1.8) + 32);
    if ($umR &gt; 100) {
        return ("A umidade relativa não pode ser superior a 100%.");
        exit;
    }else if ($umR &lt; 0) {
        return ("A umidade relativa não pode ser menor do que 0%.");
        exit;
    }else if (floatval($tempF) &lt;= 32) {
        $HI = $tempF;
    }else {
        $HI = 0.5 * ($tempF + 61.0 + (($tempF - 68.0) * 1.2) + ($umR * 0.094));
        if ($HI &gt; 79) {
            $HI = -42.379 + 2.04901523 * $tempF + 10.14333127 * $umR - 0.22475541 * $tempF * $umR - 0.00683783 * $tempF * $tempF - 0.05481717 * $umR * $umR + 0.00122874 * $tempF * $tempF * $umR + 0.00085282 * $tempF * $umR * $umR - 0.00000199 * $tempF * $tempF * $umR * $umR;
            if (($umR &lt;= 13) &amp;&amp; (($tempF &gt;= 80) &amp;&amp; $tempF &lt;= 112)) {
                $HI -= ((13 - $umR) / 4) * sqrt((17 - abs($tempF - 95.)) / 17);
            }
            if (($umR &gt; 85) &amp;&amp; (($tempF &gt;= 80) &amp;&amp; $tempF &lt;= 87)) {
                $HI += (($umR - 85) / 10) * ((87 - $tempF) / 5);
            }
        }
    }
    $resultado = ($HI - 32) / 1.8;
    return round($resultado);
}

# Exemplo
echo calIndCalor('20','47')
?&gt;</pre>
<p>Fonte &#8211; <a href="https://ciram.epagri.sc.gov.br/index.php/indice-de-calor-e-sensacao-termica">https://ciram.epagri.sc.gov.br/index.php/indice-de-calor-e-sensacao-termica</a>/</p>
<p>The post <a href="https://santiagoacevedo.com.br/2021/05/30/calcular-sensacao-termica-e-indice-de-calor-com-php/">Calcular sensação térmica e Índice de Calor com PHP</a> appeared first on <a href="https://santiagoacevedo.com.br">Santiago</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://santiagoacevedo.com.br/2021/05/30/calcular-sensacao-termica-e-indice-de-calor-com-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">359</post-id>	</item>
	</channel>
</rss>
