- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ippScripts/scripts/ds9_cmf_regions.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ippScripts/scripts/ds9_cmf_regions.pl
r24343 r27840 81 81 if ($mag_radius) { 82 82 foreach my $m (@$mag) { 83 next unless defined $m and $m < "inf" and $m > "-inf";83 next unless defined $m and $m != "nan" and $m < "inf" and $m > "-inf"; 84 84 unless (defined $mag_min and defined $mag_max) { 85 85 $mag_min = $m; … … 99 99 for (my $i = 0; $i < $numRows; $i++) { 100 100 my $col; # Colour to use 101 if ($$flags[$i] & $flag ) {101 if ($$flags[$i] & $flag or not defined $$mag[$i] or $$mag[$i] eq "nan" or $$mag[$i] == "inf" or $$mag[$i] == "-inf") { 102 102 $numBad++; 103 103 $col = $flag_colour; … … 107 107 } 108 108 my $r = $radius; # Radius of circle 109 next if defined $mag_radius and (not defined $$mag[$i]or $$mag[$i] == "inf" or $$mag[$i] == "-inf");109 next if $mag_radius and (not defined $$mag[$i] or $$mag[$i] eq "nan" or $$mag[$i] == "inf" or $$mag[$i] == "-inf"); 110 110 $r -= ($$mag[$i] - $mag_min) * $radius_scale if defined $mag_radius; 111 111 print $coordFile "image; circle(" . ($$x[$i] + 1) . ',' . ($$y[$i] + 1) . ",$r) \# color = $col\n";
Note:
See TracChangeset
for help on using the changeset viewer.
