IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 1, 2012, 3:24:39 PM (14 years ago)
Author:
eugene
Message:

support for parallel dvo in mextract, avextract, avmerge, gstar, gcat; remove some if-def-ed out code already moved to libdvo; list -vectors and -buffers options (store names of vectors and buffers in lists); list -copy give error if missing source; catlist, hosts & remote functions to support parallel dvos; skyregion -save option; new skycoverage modes (-min-ubercal; -min-dmag-sys; -min-mcal; -max-mcal); gstar output formatting cleanups; add more average info to gstar output; functions for spectral similarity analysis; coords returns nans for projections off the sphere; fix cumulative function; add name:type option to opihi/read function (eg read a:float 2 b:time 3 c:int 4); line -frac option; vtype function to get vector types; threshold function; write -fits option; code for unfinished mtype function (matching vtype)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.astro/coords.c

    r29540 r33662  
    8383    }
    8484    if (mode == PIXEL) {
     85      Xin = ohana_normalize_angle_to_midpoint (Xin, coords.crval1);
    8586      RD_to_XY (&Xout, &Yout, Xin, Yin, &coords);
    8687      if (!Quiet) gprint (GP_LOG, "%7.2f %7.2f\n", Xout, Yout);
     
    9293  if (mode == SKY) {
    9394    for (i = 0; i < xvec[0].Nelements; i++) {
    94       XY_to_RD (&xvec[0].elements.Flt[i], &yvec[0].elements.Flt[i], xvec[0].elements.Flt[i], yvec[0].elements.Flt[i], &coords);
     95      double Xin = xvec[0].elements.Flt[i];
     96      double Yin = yvec[0].elements.Flt[i];
     97      xvec[0].elements.Flt[i] = NAN;
     98      yvec[0].elements.Flt[i] = NAN;
     99      XY_to_RD (&xvec[0].elements.Flt[i], &yvec[0].elements.Flt[i], Xin, Yin, &coords);
    95100    }
    96101    return (TRUE);
     
    98103  if (mode == PIXEL) {
    99104    for (i = 0; i < xvec[0].Nelements; i++) {
    100       RD_to_XY (&xvec[0].elements.Flt[i], &yvec[0].elements.Flt[i], xvec[0].elements.Flt[i], yvec[0].elements.Flt[i], &coords);
     105      double Xin = xvec[0].elements.Flt[i];
     106      double Yin = yvec[0].elements.Flt[i];
     107      xvec[0].elements.Flt[i] = NAN;
     108      yvec[0].elements.Flt[i] = NAN;
     109      Xin = ohana_normalize_angle_to_midpoint (Xin, coords.crval1);
     110      RD_to_XY (&xvec[0].elements.Flt[i], &yvec[0].elements.Flt[i], Xin, Yin, &coords);
    101111    }
    102112    return (TRUE);
Note: See TracChangeset for help on using the changeset viewer.