IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9606


Ignore:
Timestamp:
Oct 16, 2006, 5:36:39 PM (20 years ago)
Author:
eugene
Message:

rationalized region RA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/getstar/src/args.c

    r6968 r9606  
    6262    remove_argument (N, &argc, argv);
    6363    remove_argument (N, &argc, argv);
     64
     65    // XXX we will have issues at 0,360 boundary...
     66    // see code in dvo/pmeasure for fixes
     67    while (REGION.Rmin > 360) REGION.Rmin -= 360.0;
     68    while (REGION.Rmin <   0) REGION.Rmin += 360.0;
     69    while (REGION.Rmax > 360) REGION.Rmax -= 360.0;
     70    while (REGION.Rmax <   0) REGION.Rmax += 360.0;
     71    if (REGION.Dmax < REGION.Dmin) {
     72        SWAP (REGION.Dmax, REGION.Dmin);
     73    }
    6474  }
    6575  if ((N = get_argument (argc, argv, "-radius"))) {
Note: See TracChangeset for help on using the changeset viewer.