These examples are meant to help users learn about WEST and quickly accomplish their goals. Please email me with any comments and suggestions.
As with all code which uses WEST, please run these examples from a directory outside of the repository.
Evaluating white space availability in the United States
This example demonstrates how to load and plot the white space availability
in the United States.
Evaluating white space capacity in the United States
Note that this can be easily extended to utilize a user-provided model for
Combining white space availability data with other data (population, economic, etc.)
The techniques used in this example work just as well with other types of data.
Evaluating white space availability in other regions
The examples for the United States can be easily extended to work for other regions. Below is a list of necessary modifications:
west.protected_entity.ProtectedEntityas needed to define each of the entities which is protected in the target region. Consider using
west.protected_entity_tv_station.ProtectedEntityTVStationas an example.
west.protected_entities.ProtectedEntitiesas needed to load data about the target region's protected entities and create
ProtectedEntityobjects. Users are strongly encouraged to use
west.region.Region. This class will contain region-specific data such as which TV channels are available for white space use, the width of each channel, and the set of protected entities. Users are encouraged to use
west.region.region_united_states.RegionUnitedStatesas an exmaple.
- If necessary, subclass
west.ruleset.Rulesetto specify a new ruleset.
- Use these new classes with the US-centric examples, replacing references to classes as necessary. The interfaces have been designed to allow as much flexibility as possible.
Users are encouraged to subclass from existing subclasses (e.g.
) and make only necessary changes when practical. However,
stability of code is never guaranteed.