The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Temperature::Windchill - calculate effective temperature as

SYNOPSIS

    use Temperature::Windchill qw/ windchill_us windchill_si /;

    # calculate windchill in American units (Fahrenheit, MPH)
    my $wc = windchill_us($temp, $windspeed);

    # calculate windchill in International units (Celsius, KPH)
    my $wc = windchill_si($temp, $windspeed);

DESCRIPTION

From the US National Oceanic and Atmospheric Administration ("NOAA") website:

    The windchill temperature is how cold people and animals feel when outside. Windchill is based on the rate of heat loss from exposed skin caused by wind and cold. As the wind increases, it draws heat from the body, driving down skin temperature and eventually the internal body temperature. Therefore, the wind makes it feel much colder. If the temperature is 0 degrees Fahrenheit and the wind is blowing at 15 mph, the windchill is -19 degrees Fahrenheit. At this windchill temperature, exposed skin can freeze in 30 minutes.

Limitations

Windchill Temperature is only defined for:

  • temperatures above -50 °F (-45.5 °C) and below 50 °F (10 °C)

  • wind speeds above 3 MPH (4.8 KPH) and below 110 MPH (177 KPH).

Bright sunshine may increase the windchill temperature by 10 to 18 °F.

FUNCTIONS

windchill_us( $temperature, $windspeed )

Calculates the windchill in United States ("US") units, i.e. temperature in degrees Fahrenheit and windspeed in miles per hour.

Example:

    # what's the windchill at 10 °F and 15 MPH?
    my $chill = windchill_us( 10, 15 );
    print "the windchill is: $chill °F";

windchill_si( $temperature, $windspeed )

Calculates the windchill in International ("SI") units, i.e. temperature in degrees Celsius and windspeed in kilometers per hour.

Example:

    # what's the windchill at -5 °C and 20 KPH?
    my $chill = windchill_si( -5, 20 );
    print "the windchill is: $chill °C";

ADDITIONAL RESOURCES

AUTHOR

John Trammell, <johntrammell at gmail.com>

BUGS

Please report any bugs or feature requests to bug-temperature-windchill at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Temperature-Windchill. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Temperature::Windchill

You can also look for information at:

ACKNOWLEDGEMENTS

I would like to thank all the attendees of the Frozen Perl 2008 conference, who inspired me to write this module.

COPYRIGHT & LICENSE

Copyright 2008 John Trammell, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 48:

Non-ASCII character seen before =encoding in '°F'. Assuming CP1252