Weather::NWS::NDFDgenByDay - Object interface to the NWS NDFDgenByDay Web Service.
Version 0.02
use Weather::NWS::NDFDgenByDay; my $NDFDgenByDay = Weather::NWS::NDFDgenByDay->new(); my $NDFDgenByDay = Weather::NWS::NDFDgenByDay->new( 'Format' => 'Day', 'Latitude' => 42, 'Longitude' => -88, ); my $latitude = 42; $NDFDgenByDay->set_latitude($latitude); $latitude = $NDFDgenByDay->get_latitude(); my $longitude = -88; $NDFDgenByDay->set_longitude($longitude); $longitude = $NDFDgenByDay->get_longitude(); my $format = 'Day'; $NDFDgenByDay->set_format($format); $format = $NDFDgenByDay->get_format(); my $start_date = scalar localtime; $NDFDgenByDay->set_start_date($start_date); $start_date = $NDFDgenByDay->get_start_date(); my $num_days = 3; $NDFDgenByDay->set_set_number_of_days($num_days); $num_days = $NDFDgenByDay->get_number_of_days(); my $xml = $NDFDgenByDay->get_forecast_xml(); my $xml = $NDFDgenByDay->get_forecast_xml( 'Format' => 'Day', 'Latitude' => 42, 'Longitude' => -88, ); my @formats = $NDFDgen->get_available_formats();
Constructor for new NDFDgenByDay objects. If called with no parameters, it will return a new object initialized with the 'Day' format, the current date as the start date, and the default number of days equal to one. All other parameters are left unintialized. Values can be provided for 'Latitude', 'Longitude', 'Format', 'Start Time', and 'Number of Days'.
Sets the latitude for the object. This is a decimal value.
Returns the latitude stored in the object.
Sets the longitude for the object. This is a decimal value.
Returns the longitude stored in the object.
Sets the format for the object. This is either 'Day' or 'Half-Day'.
Returns the format stored in the object.
Sets the start date for the object.
Gets the start date stored in the object.
Sets the number of days for the object. This is an integer value between 1 and 7.
Returns the number_of_days stored in the object.
Return a list of all formats available through this service.
Return the NWS NDFD XML as described in http://products.weather.gov/PDD/Extensible_Markup_Language.pdf. The data returned depends on the state of the NDFDgenByDay object at the date of the call to this method. Any parameters can be overridden by being passed in as arguments to this method.
Josh McAdams, <josh dot mcadams at gmail dot com>
<josh dot mcadams at gmail dot com>
Please report any bugs or feature requests to bug-weather-nws-ndfdgenbyday at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Weather-NWS-NDFDgenByDay. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-weather-nws-ndfdgenbyday at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Weather::NWS::NDFDgenByDay
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Weather-NWS-NDFDgenByDay
CPAN Ratings
http://cpanratings.perl.org/d/Weather-NWS-NDFDgenByDay
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Weather-NWS-NDFDgenByDay
Search CPAN
http://search.cpan.org/dist/Weather-NWS-NDFDgenByDay
Copyright 2006 Josh McAdams, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Weather::NWS::NDFDgen, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Weather::NWS::NDFDgen
CPAN shell
perl -MCPAN -e shell install Weather::NWS::NDFDgen
For more information on module installation, please visit the detailed CPAN module installation guide.