IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 5, 2018, 11:39:29 AM (8 years ago)
Author:
eugene
Message:

add option to accept motions from incoming dvo database; respect -region in avextract, mextract, avperiodogram

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/libdvo/src/dbCmdlineFields.c

    r34088 r40574  
    125125  // get the ra,dec limits...
    126126  if (selection->useDisplay) {
    127     return (TRUE);
     127    // return (TRUE);
    128128    // XXX fix this: be more careful with the projection & limits
    129129
     
    134134    }
    135135   
     136    double Radius = MAX (fabs(graphsky.xmax), fabs(graphsky.ymax));
     137    Dmin = graphsky.coords.crval2 - Radius;
     138    Dmax = graphsky.coords.crval2 + Radius;
     139   
     140    if ((Dmin <= -89) || (Dmax >= 89)) {
     141      Rmin = 0;
     142      Rmax = 360;
     143    } else {
     144      double Rmod = MAX (Radius / (cos(Dmin*RAD_DEG)), Radius / (cos(Dmax*RAD_DEG)));
     145      Rmin = graphsky.coords.crval1 - Rmod;
     146      Rmax = graphsky.coords.crval1 + Rmod;
     147    }
    136148    // XXX the ra and dec range depend on the projection.
    137149    // XXX this is wrong...
    138150    // int status;
    139     XY_to_RD (&Rmin, &Dmin, graphsky.xmin, graphsky.ymin, &graphsky.coords);
    140     XY_to_RD (&Rmax, &Dmax, graphsky.xmax, graphsky.ymax, &graphsky.coords);
     151    // XY_to_RD (&Rmin, &Dmin, graphsky.xmin, graphsky.ymin, &graphsky.coords);
     152    // XY_to_RD (&Rmax, &Dmax, graphsky.xmax, graphsky.ymax, &graphsky.coords);
    141153  }
    142154
Note: See TracChangeset for help on using the changeset viewer.