IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38307


Ignore:
Timestamp:
May 22, 2015, 8:08:37 PM (11 years ago)
Author:
eugene
Message:

better formatting for gstar flags; do not allow negative range for cdensify

Location:
branches/eam_branches/ipp-20150419/Ohana/src/opihi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150419/Ohana/src/opihi/cmd.astro/cdensify.c

    r38062 r38307  
    7373  CHECKVAL(dY);
    7474
    75   Nx = (Xmax - Xmin) / dX + 1;
    76   Ny = (Ymax - Ymin) / dY + 1;
     75  Nx = abs((Xmax - Xmin) / dX) + 1;
     76  Ny = abs((Ymax - Ymin) / dY) + 1;
    7777 
    7878  Coords newcoords = graphmode.coords;
  • branches/eam_branches/ipp-20150419/Ohana/src/opihi/dvo/gstar.c

    r37246 r38307  
    310310        gprint (GP_LOG, "%3d   ",  catalog.average[k].Nmeasure);
    311311        gprint (GP_LOG, "%4.1f ",  catalog.average[k].ChiSqAve);
    312         gprint (GP_LOG, "%5x ",    catalog.average[k].flags);
    313         gprint (GP_LOG, "%x ",    catalog.average[k].objID);
    314         gprint (GP_LOG, "%x ",    catalog.average[k].catID);
     312        gprint (GP_LOG, "0x%08x ", catalog.average[k].flags);
     313        gprint (GP_LOG, "0x%08x ", catalog.average[k].objID);
     314        gprint (GP_LOG, "0x%08x ", catalog.average[k].catID);
    315315       
    316316        if (FULL_OUTPUT) {
     
    774774    case GSTAR_SECF_FLAGS: /* secfilt flags */
    775775      if (seq == -1) {
    776         gprint (GP_LOG, "%08x ", 0);
    777       } else {
    778         gprint (GP_LOG, "%08x ", secfilt[seq].flags);
     776        gprint (GP_LOG, "0x%08x ", 0);
     777      } else {
     778        gprint (GP_LOG, "0x%08x ", secfilt[seq].flags);
    779779      }
    780780      break;
Note: See TracChangeset for help on using the changeset viewer.