View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
James Lee Carpenter > Storm-Tracker_0.01 > Geo::Storm_Tracker::Advisory



Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  


Geo::Storm_Tracker::Advisory - The weather advisory object of the perl Storm-Tracker bundle.


        use Geo::Storm_Tracker::Advisory;

        #Create a new advisory object for holding
        #all the various elements of an advisory.
        #Return the entire advisory as a string.
        #Internally calls stringify_header and
        #stringify_body and joins the result.  

All of the following methods can be used as both access and as assignment methods. The use and functionality of the methods should be obvious.

It is important to realize that changes to a given attribute do not affect other attributes. It is the role of the caller to keep the content self consistent.

        #Obtain the header as a string.
        #Change the contents of the header string.
        #Returns new header contents. 

        #Obtain the body as a string. 

        #Change the contents of the body string.
        #Returns new body contents.

        #Obtain the name string.
        #Change the name string.
        #Returns new name string.
        #Obtain the wmo header string.
        #Change the wmo header string.
        #Returns new wmo header string.

        #Obtain the advisory number value.
        #Change the advisory number value.
        #Returns the new advisory number.
        #Obtain the release time string. 

        #Change the release time string.
        #Returns the new release time string.

        #Obtain the weather service string.

        #Change the weather service string.
        #Returns the new weather service string.

        #Obtain the position array or array reference.

        #Change the position array.
        #Returns the new position array or array reference. 

        #Obtain the maximum wind value.
        #Change the maximum wind value.
        #Returns the new maximum wind value.

        #Obtain the minimum central pressure value.

        #Change the minimum central pressure value.
        #Returns the new minimum central pressure value. 

        #Determine whether or not the advisory says it is the last one.

        #Change the is_final value.
        #Returns the new is_final value. 


The Geo::Storm_Tracker::Advisory module is a component of the Storm-Tracker perl bundle. The Storm-Tracker perl bundle is designed to track weather events using the national weather advisories. The original intent is to track tropical depressions, storms and hurricanes. A Geo::Storm_Tracker::Advisory object is designed to contain everything about a single advisory. The Geo::Storm_Tracker::Advisory objects are typically created and populated by the read methods of a Geo::Storm_Tracker::Parser object.



Creates a Geo::Storm_Tracker::Advisory object and returns a blessed reference to it.



Returns the entire advisory. Internally calls stringify_header and stringify_body and joins the result.

The remaining methods function as both assignment and access methods. When called with an argument, they act as assignment methods and when called without an argument they act as access methods.

When successfully called as assignment methods the return value is that of the newly assigned value. If the assignment is unsuccessful the return value will be undefined.

The attribute set/retrieved is identical to the method name.

stringify_header ([STRING])

Returns a string value.

stringify_body ([STRING])

Returns a string value.

name ([STRING])

Returns a string value.

wmo_header ([STRING])

Returns a string value.

advisory_number ([VALUE])

Returns a string value.

release_time ([STRING])

Returns a string value.

weather_service ([STRING])

Returns a string value.

position ([ARRAY_REF])

Returns an array value when called in array context and an array reference when called in a scalar context.

max_winds ([VALUE])

Returns a string value.

min_central_pressure ([VALUE])

Returns a string value.

is_final ([BOOLEAN])

Returns a boolean value.


James Lee Carpenter,

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

Thanks to Dr. Paul Ruscher for his assistance in helping me to understand the weather advisory formats.


syntax highlighting: