Drought-PET-Thornthwaite
    
    
  
  
  
view release on metacpan or search on metacpan
=cut
=head2 tei_thornthwaite
 my $tei = tei_thornthwaite($jan,$feb,$mar,$apr,$may,$jun,$jul,$aug,$sep,$oct,$nov,$dec);
Calculates and returns the temperature efficiency index (TEI, sometimes called the 
Thornthwaite heat index) based on a monthly average temperature climatology for a given 
location. Since the equation involves a summation of adjusted monthly temperatures, 12 
arguments are required, consisting of the average temperature for each calendar month of 
the year. An optional 13th argument can also be supplied to define a numeric value 
interpreted as missing data. If not supplied, the default missing value is NaN.
The missing value will be returned if any of the temperature values are missing, 
undef, or invalid (e.g., non-numeric).
=cut
=head1 INSTALLATION
lib/Drought/PET/Thornthwaite.pm view on Meta::CPAN
}
=head2 tei_thornthwaite
 my $tei = tei_thornthwaite($jan,$feb,$mar,$apr,$may,$jun,$jul,$aug,$sep,$oct,$nov,$dec);
Calculates and returns the temperature efficiency index (TEI, sometimes called the 
Thornthwaite heat index) based on a monthly average temperature climatology for a given 
location. Since the equation involves a summation of adjusted monthly temperatures, 12 
arguments are required, consisting of the average temperature for each calendar month of 
the year. An optional 13th argument can also be supplied to define a numeric value 
interpreted as missing data. If not supplied, the default missing value is NaN.
The missing value will be returned if any of the temperature values are missing, 
undef, or invalid (e.g., non-numeric).
=cut
sub tei_thornthwaite {
    # Define a NaN value for later use
( run in 1.070 second using v1.01-cache-2.11-cpan-5dc5da66d9d )