Rinchi::CIGIPP::AtmosphereControl - Perl extension for the Common Image Generator Interface - Atmosphere Control data packet. data packet. =head1 SYNOPSIS
use Rinchi::CIGIPP::AtmosphereControl; my $atmos_ctl = Rinchi::CIGIPP::AtmosphereControl->new(); $packet_type = $atmos_ctl->packet_type(); $packet_size = $atmos_ctl->packet_size(); $atmospheric_model_enable = $atmos_ctl->atmospheric_model_enable(Rinchi::CIGIPP->Disable); $humidity = $atmos_ctl->humidity(35); $air_temperature = $atmos_ctl->air_temperature(23.357); $visibility_range = $atmos_ctl->visibility_range(47.803); $horizontal_wind_speed = $atmos_ctl->horizontal_wind_speed(55.727); $vertical_wind_speed = $atmos_ctl->vertical_wind_speed(40.386); $wind_direction = $atmos_ctl->wind_direction(47.212); $barometric_pressure = $atmos_ctl->barometric_pressure(17.871);
The Atmosphere Control data packet allows the Host to control global atmospheric properties within the simulation.
Weather layers and weather entities always take precedence over the global atmospheric conditions. Once the atmospheric properties of a layer or entity are set, global atmospheric changes will not affect the weather inside the layer or entity unless that layer or entity is disabled. The global atmospheric changes will, however, affect the weather within a transition band or transition perimeter.
CIGI supports the use of FASCODE, MODTRAN, SEDRIS, or other atmospheric models for determining radiance and transmittance within a heterogeneous atmosphere for sensor simulations. The Atmospheric Model Enable attribute determines whether an atmospheric model is used. The particular model is not specified and is determined by the IG.
None by default.
#==============================================================================
Constructor for Rinchi::AtmosphereControl.
$value = $atmos_ctl->packet_type();
Data Packet Identifier.
This attribute identifies this data packet as the Atmosphere Control packet. The value of this attribute must be 10.
$value = $atmos_ctl->packet_size();
Data Packet Size.
This attribute indicates the number of bytes in this data packet. The value of this attribute must be 32.
$value = $atmos_ctl->atmospheric_model_enable($newValue);
Atmospheric Model Enable.
This attribute specifies whether the IG should use an atmospheric model to determine spectral radiances for sensor applications. If this attribute is set to Disable (0), source radiances will be calculated. If this attribute is set to Enable (1), apparent radiances will be calculated using the appropriate models.
Disable 0 Enable 1
$value = $atmos_ctl->humidity($newValue);
Global Humidity.
This attribute specifies the global humidity of the environment.
$value = $atmos_ctl->air_temperature($newValue);
Global Air Temperature.
This attribute specifies the global air temperature of the environment.
$value = $atmos_ctl->visibility_range($newValue);
Global Visibility Range.
This attribute specifies the global visibility range through the atmosphere measured in meters.
$value = $atmos_ctl->horizontal_wind_speed($newValue);
Global Horizontal Wind Speed.
This attribute specifies the global wind speed, measured in meters/second, parallel to the ellipsoid-tangential reference plane.
$value = $atmos_ctl->vertical_wind_speed($newValue);
Global Vertical Wind Speed.
This attribute specifies the global vertical wind speed measured in meters/second. A positive value produces an updraft, while a negative value produces a downdraft.
$value = $atmos_ctl->wind_direction($newValue);
Global Wind Direction.
This attribute specifies the global wind direction.
Note: This is the direction from which the wind is blowing.
$value = $atmos_ctl->barometric_pressure($newValue);
Global Barometric Pressure.
This attribute specifies the global atmospheric pressure measured in millibars (mb) or hectopascals (hPa). The units are interchangeable.
$value = $atmos_ctl->pack();
Returns the packed data packet.
$value = $atmos_ctl->unpack($buffer);
Unpacks the packed data packet.
$value = $atmos_ctl->byte_swap();
Byte swaps the packed data packet.
Refer the the Common Image Generator Interface ICD which may be had at this URL: http://cigi.sourceforge.net/specification.php
Brian M. Ames, <bmames@apk.net>
Copyright (C) 2009 by Brian M. Ames
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.6 or, at your option, any later version of Perl 5 you may have available.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Rinchi::CIGIPP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rinchi::CIGIPP
CPAN shell
perl -MCPAN -e shell install Rinchi::CIGIPP
For more information on module installation, please visit the detailed CPAN module installation guide.