IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26659


Ignore:
Timestamp:
Jan 21, 2010, 6:14:24 PM (16 years ago)
Author:
Paul Price
Message:

Need to exclude NAN values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091201/ippScripts/scripts/ds9_cmf_regions.pl

    r24343 r26659  
    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;
     
    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 defined $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.