IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 10, 2010, 7:44:33 PM (16 years ago)
Author:
eugene
Message:

updates from eam_branches/20091201

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/ds9_cmf_regions.pl

    r24343 r26901  
    8181if ($mag_radius) {
    8282    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";
    8484        unless (defined $mag_min and defined $mag_max) {
    8585            $mag_min = $m;
     
    9999for (my $i = 0; $i < $numRows; $i++) {
    100100    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") {
    102102        $numBad++;
    103103        $col = $flag_colour;
     
    107107    }
    108108    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");
    110110    $r -= ($$mag[$i] - $mag_min) * $radius_scale if defined $mag_radius;
    111111    print $coordFile "image; circle(" . ($$x[$i] + 1) . ',' . ($$y[$i] + 1) . ",$r) \# color = $col\n";
Note: See TracChangeset for help on using the changeset viewer.