IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39215


Ignore:
Timestamp:
Dec 3, 2015, 3:52:08 PM (11 years ago)
Author:
eugene
Message:

add check.region command

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20151113/Ohana/src/uniphot/doc/galmotion.sh

    r39208 r39215  
    44
    55## FEAST-HIP
    6 if (0)
     6if (1)
    77  $A_oort = +14.82; # km/sec/kpc
    88  $B_oort = -12.37; # km/sec/kpc
     
    1313
    1414## ROESSER:
    15 if (1)
     15if (0)
    1616  $A_oort = +14.50; # km/sec/kpc
    1717  $B_oort = -13.00; # km/sec/kpc
     
    302302 cplot _lgrid _bgrid -pt 100
    303303end
     304
     305
     306macro check.region
     307  if ($0 != 6)
     308    echo "USAGE: check.region (Rmin) (Rmax) (Dmin) (Dmax) (dist)"
     309    break
     310  end
     311 
     312  mkstars 10000 $5
     313
     314  set keep = (R > $1) && (R < $2) && (D > $3) && (D < $4)
     315  subset  Rs =  R if keep
     316  subset  Ds =  D if keep
     317  subset uRs = uR if keep
     318  subset uDs = uD if keep
     319  lim -0.01 0.01 -0.01 0.01; clear; box; plot uRs uDs -pt 0 -sz 0.5
     320  dot -0.003 -0.004 -pt 7 -c red -sz 4
     321end
Note: See TracChangeset for help on using the changeset viewer.