| 1 | package Astro::Catalog::Item::Morphology; | ||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||
| 3 | =head1 NAME | ||||||||||||||||||||||||||||
| 4 | |||||||||||||||||||||||||||||
| 5 | Astro::Catalog::Item::Morphology - Information about a star's morphology | ||||||||||||||||||||||||||||
| 6 | |||||||||||||||||||||||||||||
| 7 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||
| 8 | |||||||||||||||||||||||||||||
| 9 | $morphology = new Astro::Catalog::Item::Morphology(); | ||||||||||||||||||||||||||||
| 10 | |||||||||||||||||||||||||||||
| 11 | =head1 DESCRIPTION | ||||||||||||||||||||||||||||
| 12 | |||||||||||||||||||||||||||||
| 13 | Stores information about an astronomical object's morphology. | ||||||||||||||||||||||||||||
| 14 | |||||||||||||||||||||||||||||
| 15 | =cut | ||||||||||||||||||||||||||||
| 16 | |||||||||||||||||||||||||||||
| 17 | 63 | ▶ | use strict; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 18 | 63 | ▶ | use warnings; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 19 | 63 | ▶ | use Carp; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||
| 21 | 63 | ▶ | use Number::Uncertainty; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 22 | |||||||||||||||||||||||||||||
| 23 | 63 | ▶ | use warnings::register; | ||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||
| 25 | 63 | our $VERSION = '4.38'; | |||||||||||||||||||||||||||
| 26 | |||||||||||||||||||||||||||||
| 27 | =head1 METHODS | ||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||
| 29 | =head2 Constructor | ||||||||||||||||||||||||||||
| 30 | |||||||||||||||||||||||||||||
| 31 | =over 4 | ||||||||||||||||||||||||||||
| 32 | |||||||||||||||||||||||||||||
| 33 | =item B<new> | ||||||||||||||||||||||||||||
| 34 | |||||||||||||||||||||||||||||
| 35 | Create a new instance of an C<Astro::Catalog::Item::Morphology> object. | ||||||||||||||||||||||||||||
| 36 | |||||||||||||||||||||||||||||
| 37 | $morphology = new Astro::Catalog::Item::Morphology(); | ||||||||||||||||||||||||||||
| 38 | |||||||||||||||||||||||||||||
| 39 | This method returns a reference to an C<Astro::Catalog::Item::Morphology> | ||||||||||||||||||||||||||||
| 40 | object. | ||||||||||||||||||||||||||||
| 41 | |||||||||||||||||||||||||||||
| 42 | =cut | ||||||||||||||||||||||||||||
| 43 | |||||||||||||||||||||||||||||
| 44 | 12 | ▶ | sub new { | ||||||||||||||||||||||||||
|
Subroutine
new: called CC=2 SCAR=7.1
Pod
documented
| |||||||||||||||||||||||||||||
| 45 | 12 | my $proto = shift; | |||||||||||||||||||||||||||
| 46 | 12 | ▶ | my $class = ref($proto) || $proto; | ||||||||||||||||||||||||||
|
Condition33%1/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||||||||||
| 47 | |||||||||||||||||||||||||||||
| 48 | # Retrieve the arguments. | ||||||||||||||||||||||||||||
| 49 | 12 | my %args = @_; | |||||||||||||||||||||||||||
| 50 | |||||||||||||||||||||||||||||
| 51 | # Create the object. | ||||||||||||||||||||||||||||
| 52 | 12 | my $obj = bless {}, $class; | |||||||||||||||||||||||||||
| 53 | |||||||||||||||||||||||||||||
| 54 | # Configure the object. | ||||||||||||||||||||||||||||
| 55 | 12 | $obj->_configure(%args); | |||||||||||||||||||||||||||
| 56 | |||||||||||||||||||||||||||||
| 57 | # And return it. | ||||||||||||||||||||||||||||
| 58 | 12 | return $obj; | |||||||||||||||||||||||||||
| 59 | } | ||||||||||||||||||||||||||||
| 60 | |||||||||||||||||||||||||||||
| 61 | =back | ||||||||||||||||||||||||||||
| 62 | |||||||||||||||||||||||||||||
| 63 | =head2 Accessor Methods | ||||||||||||||||||||||||||||
| 64 | |||||||||||||||||||||||||||||
| 65 | =over 4 | ||||||||||||||||||||||||||||
| 66 | |||||||||||||||||||||||||||||
| 67 | =item B<ellipticity> | ||||||||||||||||||||||||||||
| 68 | |||||||||||||||||||||||||||||
| 69 | The ellipticity of the object. | ||||||||||||||||||||||||||||
| 70 | |||||||||||||||||||||||||||||
| 71 | =cut | ||||||||||||||||||||||||||||
| 72 | |||||||||||||||||||||||||||||
| 73 | 9 | ▶ | sub ellipticity { | ||||||||||||||||||||||||||
|
Subroutine
ellipticity: called CC=4 SCAR=14.0
Pod
documented
| |||||||||||||||||||||||||||||
| 74 | 9 | my $self = shift; | |||||||||||||||||||||||||||
| 75 | 9 | ▶ | if (@_) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 76 | 9 | my $ell = shift; | |||||||||||||||||||||||||||
| 77 | 9 | ▶ | if (defined($ell) && | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $ell and not UNIVERSAL::isa($ell, "Number::Uncertainty")
MC/DC50%1/2
defined $ell and not UNIVERSAL::isa($ell, "Number::Uncertainty")
defined $ell
not UNIVERSAL::isa($ell, "Number::Uncertainty")
Truth table66%2/3
A and not(B)
A= defined $ellB= not UNIVERSAL::isa($ell, "Number::Uncertainty")
| |||||||||||||||||||||||||||||
| 78 | ! UNIVERSAL::isa($ell, "Number::Uncertainty")) { | ||||||||||||||||||||||||||||
| 79 | 1 | $ell = new Number::Uncertainty(Value => $ell); | |||||||||||||||||||||||||||
| 80 | } | ||||||||||||||||||||||||||||
| 81 | 9 | $self->{ELLIPTICITY} = $ell; | |||||||||||||||||||||||||||
| 82 | } | ||||||||||||||||||||||||||||
| 83 | 9 | return $self->{ELLIPTICITY}; | |||||||||||||||||||||||||||
| 84 | } | ||||||||||||||||||||||||||||
| 85 | |||||||||||||||||||||||||||||
| 86 | =item B<position_angle_pixel> | ||||||||||||||||||||||||||||
| 87 | |||||||||||||||||||||||||||||
| 88 | Position angle using the pixel frame as a reference. Measured counter- | ||||||||||||||||||||||||||||
| 89 | clockwise from the positive x axis. | ||||||||||||||||||||||||||||
| 90 | |||||||||||||||||||||||||||||
| 91 | =cut | ||||||||||||||||||||||||||||
| 92 | |||||||||||||||||||||||||||||
| 93 | 9 | ▶ | sub position_angle_pixel { | ||||||||||||||||||||||||||
|
Subroutine
position_angle_pixel: called CC=4 SCAR=14.8
Pod
documented
| |||||||||||||||||||||||||||||
| 94 | 9 | my $self = shift; | |||||||||||||||||||||||||||
| 95 | 9 | ▶ | if (@_) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 96 | 9 | my $ang = shift; | |||||||||||||||||||||||||||
| 97 | 9 | ▶ | if (defined($ang) && | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition66%2/3
defined $ang and not UNIVERSAL::isa($ang, "Number::Uncertainty")
MC/DC0%0/2
defined $ang and not UNIVERSAL::isa($ang, "Number::Uncertainty")
defined $ang
not UNIVERSAL::isa($ang, "Number::Uncertainty")
Truth table66%2/3
A and not(B)
A= defined $angB= not UNIVERSAL::isa($ang, "Number::Uncertainty")
| |||||||||||||||||||||||||||||
| 98 | ! UNIVERSAL::isa($ang, "Number::Uncertainty")) { | ||||||||||||||||||||||||||||
| 99 | 0 | $ang = new Number::Uncertainty(Value => $ang); | |||||||||||||||||||||||||||
| 100 | } | ||||||||||||||||||||||||||||
| 101 | 9 | $self->{POSITION_ANGLE_PIXEL} = $ang; | |||||||||||||||||||||||||||
| 102 | } | ||||||||||||||||||||||||||||
| 103 | 9 | return $self->{POSITION_ANGLE_PIXEL}; | |||||||||||||||||||||||||||
| 104 | } | ||||||||||||||||||||||||||||
| 105 | |||||||||||||||||||||||||||||
| 106 | =item B<position_angle_world> | ||||||||||||||||||||||||||||
| 107 | |||||||||||||||||||||||||||||
| 108 | Position angle using the world coordinate system as a reference. Measured | ||||||||||||||||||||||||||||
| 109 | east of north. | ||||||||||||||||||||||||||||
| 110 | |||||||||||||||||||||||||||||
| 111 | =cut | ||||||||||||||||||||||||||||
| 112 | |||||||||||||||||||||||||||||
| 113 | 8 | ▶ | sub position_angle_world { | ||||||||||||||||||||||||||
|
Subroutine
position_angle_world: called CC=4 SCAR=15.5
Pod
documented
| |||||||||||||||||||||||||||||
| 114 | 8 | my $self = shift; | |||||||||||||||||||||||||||
| 115 | 8 | ▶ | if (@_) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 116 | 8 | my $ang = shift; | |||||||||||||||||||||||||||
| 117 | 8 | ▶ | if (defined($ang) && | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $ang and not UNIVERSAL::isa($ang, "Number::Uncertainty")
MC/DC0%0/2
defined $ang and not UNIVERSAL::isa($ang, "Number::Uncertainty")
defined $ang
not UNIVERSAL::isa($ang, "Number::Uncertainty")
Truth table33%1/3
A and not(B)
A= defined $angB= not UNIVERSAL::isa($ang, "Number::Uncertainty")
| |||||||||||||||||||||||||||||
| 118 | ! UNIVERSAL::isa( $ang, "Number::Uncertainty")) { | ||||||||||||||||||||||||||||
| 119 | 0 | $ang = new Number::Uncertainty(Value => $ang); | |||||||||||||||||||||||||||
| 120 | } | ||||||||||||||||||||||||||||
| 121 | 8 | $self->{POSITION_ANGLE_WORLD} = $ang; | |||||||||||||||||||||||||||
| 122 | } | ||||||||||||||||||||||||||||
| 123 | 8 | return $self->{POSITION_ANGLE_WORLD}; | |||||||||||||||||||||||||||
| 124 | } | ||||||||||||||||||||||||||||
| 125 | |||||||||||||||||||||||||||||
| 126 | =item B<major_axis_pixel> | ||||||||||||||||||||||||||||
| 127 | |||||||||||||||||||||||||||||
| 128 | Length of the semi-major axis in units of pixels. | ||||||||||||||||||||||||||||
| 129 | |||||||||||||||||||||||||||||
| 130 | =cut | ||||||||||||||||||||||||||||
| 131 | |||||||||||||||||||||||||||||
| 132 | 8 | ▶ | sub major_axis_pixel { | ||||||||||||||||||||||||||
|
Subroutine
major_axis_pixel: called CC=4 SCAR=15.5
Pod
documented
| |||||||||||||||||||||||||||||
| 133 | 8 | my $self = shift; | |||||||||||||||||||||||||||
| 134 | 8 | ▶ | if (@_) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 135 | 8 | my $axis = shift; | |||||||||||||||||||||||||||
| 136 | 8 | ▶ | if (defined($axis) && | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $axis and not UNIVERSAL::isa($axis, "Number::Uncertainty")
MC/DC0%0/2
defined $axis and not UNIVERSAL::isa($axis, "Number::Uncertainty")
defined $axis
not UNIVERSAL::isa($axis, "Number::Uncertainty")
Truth table33%1/3
A and not(B)
A= defined $axisB= not UNIVERSAL::isa($axis, "Number::Uncertainty")
| |||||||||||||||||||||||||||||
| 137 | ! UNIVERSAL::isa($axis, "Number::Uncertainty")) { | ||||||||||||||||||||||||||||
| 138 | 0 | $axis = new Number::Uncertainty(Value => $axis); | |||||||||||||||||||||||||||
| 139 | } | ||||||||||||||||||||||||||||
| 140 | 8 | $self->{MAJOR_AXIS_PIXEL} = $axis; | |||||||||||||||||||||||||||
| 141 | } | ||||||||||||||||||||||||||||
| 142 | 8 | return $self->{MAJOR_AXIS_PIXEL}; | |||||||||||||||||||||||||||
| 143 | } | ||||||||||||||||||||||||||||
| 144 | |||||||||||||||||||||||||||||
| 145 | =item B<minor_axis_pixel> | ||||||||||||||||||||||||||||
| 146 | |||||||||||||||||||||||||||||
| 147 | Length of the semi-minor axis in units of pixels. | ||||||||||||||||||||||||||||
| 148 | |||||||||||||||||||||||||||||
| 149 | =cut | ||||||||||||||||||||||||||||
| 150 | |||||||||||||||||||||||||||||
| 151 | 8 | ▶ | sub minor_axis_pixel { | ||||||||||||||||||||||||||
|
Subroutine
minor_axis_pixel: called CC=4 SCAR=15.5
Pod
documented
| |||||||||||||||||||||||||||||
| 152 | 8 | my $self = shift; | |||||||||||||||||||||||||||
| 153 | 8 | ▶ | if (@_) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 154 | 8 | my $axis = shift; | |||||||||||||||||||||||||||
| 155 | 8 | ▶ | if (defined($axis) && | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $axis and not UNIVERSAL::isa($axis, "Number::Uncertainty")
MC/DC0%0/2
defined $axis and not UNIVERSAL::isa($axis, "Number::Uncertainty")
defined $axis
not UNIVERSAL::isa($axis, "Number::Uncertainty")
Truth table33%1/3
A and not(B)
A= defined $axisB= not UNIVERSAL::isa($axis, "Number::Uncertainty")
| |||||||||||||||||||||||||||||
| 156 | ! UNIVERSAL::isa( $axis, "Number::Uncertainty")) { | ||||||||||||||||||||||||||||
| 157 | 0 | $axis = new Number::Uncertainty(Value => $axis); | |||||||||||||||||||||||||||
| 158 | } | ||||||||||||||||||||||||||||
| 159 | 8 | $self->{MINOR_AXIS_PIXEL} = $axis; | |||||||||||||||||||||||||||
| 160 | } | ||||||||||||||||||||||||||||
| 161 | 8 | return $self->{MINOR_AXIS_PIXEL}; | |||||||||||||||||||||||||||
| 162 | } | ||||||||||||||||||||||||||||
| 163 | |||||||||||||||||||||||||||||
| 164 | =item B<major_axis_world> | ||||||||||||||||||||||||||||
| 165 | |||||||||||||||||||||||||||||
| 166 | Length of the semi-major axis in units of degrees. | ||||||||||||||||||||||||||||
| 167 | |||||||||||||||||||||||||||||
| 168 | =cut | ||||||||||||||||||||||||||||
| 169 | |||||||||||||||||||||||||||||
| 170 | 8 | ▶ | sub major_axis_world { | ||||||||||||||||||||||||||
|
Subroutine
major_axis_world: called CC=4 SCAR=15.5
Pod
documented
| |||||||||||||||||||||||||||||
| 171 | 8 | my $self = shift; | |||||||||||||||||||||||||||
| 172 | 8 | ▶ | if (@_) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 173 | 8 | my $axis = shift; | |||||||||||||||||||||||||||
| 174 | 8 | ▶ | if (defined($axis) && | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $axis and not UNIVERSAL::isa($axis, "Number::Uncertainty")
MC/DC0%0/2
defined $axis and not UNIVERSAL::isa($axis, "Number::Uncertainty")
defined $axis
not UNIVERSAL::isa($axis, "Number::Uncertainty")
Truth table33%1/3
A and not(B)
A= defined $axisB= not UNIVERSAL::isa($axis, "Number::Uncertainty")
| |||||||||||||||||||||||||||||
| 175 | ! UNIVERSAL::isa($axis, "Number::Uncertainty")) { | ||||||||||||||||||||||||||||
| 176 | 0 | $axis = new Number::Uncertainty(Value => $axis); | |||||||||||||||||||||||||||
| 177 | } | ||||||||||||||||||||||||||||
| 178 | 8 | $self->{MAJOR_AXIS_WORLD} = $axis; | |||||||||||||||||||||||||||
| 179 | } | ||||||||||||||||||||||||||||
| 180 | 8 | return $self->{MAJOR_AXIS_WORLD}; | |||||||||||||||||||||||||||
| 181 | } | ||||||||||||||||||||||||||||
| 182 | |||||||||||||||||||||||||||||
| 183 | =item B<minor_axis_world> | ||||||||||||||||||||||||||||
| 184 | |||||||||||||||||||||||||||||
| 185 | Length of the semi-minor axis in units of degrees. | ||||||||||||||||||||||||||||
| 186 | |||||||||||||||||||||||||||||
| 187 | =cut | ||||||||||||||||||||||||||||
| 188 | |||||||||||||||||||||||||||||
| 189 | 8 | ▶ | sub minor_axis_world { | ||||||||||||||||||||||||||
|
Subroutine
minor_axis_world: called CC=4 SCAR=15.5
Pod
documented
| |||||||||||||||||||||||||||||
| 190 | 8 | my $self = shift; | |||||||||||||||||||||||||||
| 191 | 8 | ▶ | if (@_) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 192 | 8 | my $axis = shift; | |||||||||||||||||||||||||||
| 193 | 8 | ▶ | if (defined($axis) && | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $axis and not UNIVERSAL::isa($axis, "Number::Uncertainty")
MC/DC0%0/2
defined $axis and not UNIVERSAL::isa($axis, "Number::Uncertainty")
defined $axis
not UNIVERSAL::isa($axis, "Number::Uncertainty")
Truth table33%1/3
A and not(B)
A= defined $axisB= not UNIVERSAL::isa($axis, "Number::Uncertainty")
| |||||||||||||||||||||||||||||
| 194 | ! UNIVERSAL::isa( $axis, "Number::Uncertainty")) { | ||||||||||||||||||||||||||||
| 195 | 0 | $axis = new Number::Uncertainty(Value => $axis); | |||||||||||||||||||||||||||
| 196 | } | ||||||||||||||||||||||||||||
| 197 | 8 | $self->{MINOR_AXIS_WORLD} = $axis; | |||||||||||||||||||||||||||
| 198 | } | ||||||||||||||||||||||||||||
| 199 | 8 | return $self->{MINOR_AXIS_WORLD}; | |||||||||||||||||||||||||||
| 200 | } | ||||||||||||||||||||||||||||
| 201 | |||||||||||||||||||||||||||||
| 202 | =item B<area> | ||||||||||||||||||||||||||||
| 203 | |||||||||||||||||||||||||||||
| 204 | Area of the object, usually by using isophotal techniques, in square | ||||||||||||||||||||||||||||
| 205 | pixels. | ||||||||||||||||||||||||||||
| 206 | |||||||||||||||||||||||||||||
| 207 | =cut | ||||||||||||||||||||||||||||
| 208 | |||||||||||||||||||||||||||||
| 209 | 16 | ▶ | sub area { | ||||||||||||||||||||||||||
|
Subroutine
area: called CC=4 SCAR=13.9
Pod
documented
| |||||||||||||||||||||||||||||
| 210 | 16 | my $self = shift; | |||||||||||||||||||||||||||
| 211 | 16 | ▶ | if (@_) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 212 | 11 | my $area = shift; | |||||||||||||||||||||||||||
| 213 | 11 | ▶ | if (defined($area) && | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition100%3/3
defined $area and not UNIVERSAL::isa($area, "Number::Uncertainty")
MC/DC100%2/2
defined $area and not UNIVERSAL::isa($area, "Number::Uncertainty")
defined $area
not UNIVERSAL::isa($area, "Number::Uncertainty")
Truth table100%3/3
A and not(B)
A= defined $areaB= not UNIVERSAL::isa($area, "Number::Uncertainty")
| |||||||||||||||||||||||||||||
| 214 | ! UNIVERSAL::isa($area, "Number::Uncertainty")) { | ||||||||||||||||||||||||||||
| 215 | 1 | $area = new Number::Uncertainty(Value => $area); | |||||||||||||||||||||||||||
| 216 | } | ||||||||||||||||||||||||||||
| 217 | 11 | $self->{AREA} = $area; | |||||||||||||||||||||||||||
| 218 | } | ||||||||||||||||||||||||||||
| 219 | 16 | return $self->{AREA}; | |||||||||||||||||||||||||||
| 220 | } | ||||||||||||||||||||||||||||
| 221 | |||||||||||||||||||||||||||||
| 222 | =item B<fwhm_pixel> | ||||||||||||||||||||||||||||
| 223 | |||||||||||||||||||||||||||||
| 224 | FWHM of the object in pixels. | ||||||||||||||||||||||||||||
| 225 | |||||||||||||||||||||||||||||
| 226 | =cut | ||||||||||||||||||||||||||||
| 227 | |||||||||||||||||||||||||||||
| 228 | 8 | ▶ | sub fwhm_pixel { | ||||||||||||||||||||||||||
|
Subroutine
fwhm_pixel: called CC=4 SCAR=15.5
Pod
documented
| |||||||||||||||||||||||||||||
| 229 | 8 | my $self = shift; | |||||||||||||||||||||||||||
| 230 | 8 | ▶ | if (@_) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 231 | 8 | my $fwhm = shift; | |||||||||||||||||||||||||||
| 232 | 8 | ▶ | if (defined($fwhm) && | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $fwhm and not UNIVERSAL::isa($fwhm, "Number::Uncertainty")
MC/DC0%0/2
defined $fwhm and not UNIVERSAL::isa($fwhm, "Number::Uncertainty")
defined $fwhm
not UNIVERSAL::isa($fwhm, "Number::Uncertainty")
Truth table33%1/3
A and not(B)
A= defined $fwhmB= not UNIVERSAL::isa($fwhm, "Number::Uncertainty")
| |||||||||||||||||||||||||||||
| 233 | ! UNIVERSAL::isa($fwhm, "Number::Uncertainty")) { | ||||||||||||||||||||||||||||
| 234 | 0 | $fwhm = new Number::Uncertainty(Value => $fwhm); | |||||||||||||||||||||||||||
| 235 | } | ||||||||||||||||||||||||||||
| 236 | 8 | $self->{FWHM_PIXEL} = $fwhm; | |||||||||||||||||||||||||||
| 237 | } | ||||||||||||||||||||||||||||
| 238 | 8 | return $self->{FWHM_PIXEL}; | |||||||||||||||||||||||||||
| 239 | } | ||||||||||||||||||||||||||||
| 240 | |||||||||||||||||||||||||||||
| 241 | =item B<fwhm_world> | ||||||||||||||||||||||||||||
| 242 | |||||||||||||||||||||||||||||
| 243 | FWHM of the object in arcseconds. | ||||||||||||||||||||||||||||
| 244 | |||||||||||||||||||||||||||||
| 245 | =cut | ||||||||||||||||||||||||||||
| 246 | |||||||||||||||||||||||||||||
| 247 | 8 | ▶ | sub fwhm_world { | ||||||||||||||||||||||||||
|
Subroutine
fwhm_world: called CC=4 SCAR=15.5
Pod
documented
| |||||||||||||||||||||||||||||
| 248 | 8 | my $self = shift; | |||||||||||||||||||||||||||
| 249 | 8 | ▶ | if (@_) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 250 | 8 | my $fwhm = shift; | |||||||||||||||||||||||||||
| 251 | 8 | ▶ | if (defined($fwhm) && | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition33%1/3
defined $fwhm and not UNIVERSAL::isa($fwhm, "Number::Uncertainty")
MC/DC0%0/2
defined $fwhm and not UNIVERSAL::isa($fwhm, "Number::Uncertainty")
defined $fwhm
not UNIVERSAL::isa($fwhm, "Number::Uncertainty")
Truth table33%1/3
A and not(B)
A= defined $fwhmB= not UNIVERSAL::isa($fwhm, "Number::Uncertainty")
| |||||||||||||||||||||||||||||
| 252 | ! UNIVERSAL::isa($fwhm, "Number::Uncertainty")) { | ||||||||||||||||||||||||||||
| 253 | 0 | $fwhm = new Number::Uncertainty(Value => $fwhm); | |||||||||||||||||||||||||||
| 254 | } | ||||||||||||||||||||||||||||
| 255 | 8 | $self->{FWHM_WORLD} = $fwhm; | |||||||||||||||||||||||||||
| 256 | } | ||||||||||||||||||||||||||||
| 257 | 8 | return $self->{FWHM_WORLD}; | |||||||||||||||||||||||||||
| 258 | } | ||||||||||||||||||||||||||||
| 259 | |||||||||||||||||||||||||||||
| 260 | =back | ||||||||||||||||||||||||||||
| 261 | |||||||||||||||||||||||||||||
| 262 | =head1 PRIVATE METHODS | ||||||||||||||||||||||||||||
| 263 | |||||||||||||||||||||||||||||
| 264 | =over 4 | ||||||||||||||||||||||||||||
| 265 | |||||||||||||||||||||||||||||
| 266 | =item B<_configure> | ||||||||||||||||||||||||||||
| 267 | |||||||||||||||||||||||||||||
| 268 | Configure the object. | ||||||||||||||||||||||||||||
| 269 | |||||||||||||||||||||||||||||
| 270 | =cut | ||||||||||||||||||||||||||||
| 271 | |||||||||||||||||||||||||||||
| 272 | 12 | ▶ | sub _configure { | ||||||||||||||||||||||||||
|
Subroutine
_configure: called CC=3 SCAR=11.0
| |||||||||||||||||||||||||||||
| 273 | 12 | my $self = shift; | |||||||||||||||||||||||||||
| 274 | |||||||||||||||||||||||||||||
| 275 | 12 | my %args = @_; | |||||||||||||||||||||||||||
| 276 | 12 | foreach my $key (keys %args) { | |||||||||||||||||||||||||||
| 277 | 85 | ▶ | if ($self->can(lc($key))) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 278 | 85 | my $method = lc $key; | |||||||||||||||||||||||||||
| 279 | 85 | $self->$method($args{$key}); | |||||||||||||||||||||||||||
| 280 | } | ||||||||||||||||||||||||||||
| 281 | } | ||||||||||||||||||||||||||||
| 282 | } | ||||||||||||||||||||||||||||
| 283 | |||||||||||||||||||||||||||||
| 284 | 63 | 1; | |||||||||||||||||||||||||||
| 285 | |||||||||||||||||||||||||||||
| 286 | __END__ | ||||||||||||||||||||||||||||