IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 3, 2015, 4:16:29 PM (11 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-20151113

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/Ohana

  • trunk/Ohana/src/opihi/dvo/imlist.c

    r37807 r39225  
    2121  }
    2222
     23  int VERBOSE = TRUE;
     24  if ((N = get_argument (argc, argv, "-quiet"))) {
     25    VERBOSE = FALSE;
     26    remove_argument (N, &argc, argv);
     27  }
     28  if ((N = get_argument (argc, argv, "-q"))) {
     29    VERBOSE = FALSE;
     30    remove_argument (N, &argc, argv);
     31  }
     32
    2333  TimeSelect = FALSE;
    2434  if ((N = get_argument (argc, argv, "-time"))) {
     
    3545    remove_argument (N, &argc, argv);
    3646    TimeSelect = TRUE;
    37     gprint (GP_ERR, "plotting in range %ds - %ds (%f seconds)\n", (int)tzero, (int)(tzero + trange), trange);
     47    if (VERBOSE) gprint (GP_ERR, "plotting in range %ds - %ds (%f seconds)\n", (int)tzero, (int)(tzero + trange), trange);
    3848  }
    3949
     
    8898  GetTimeFormat (&TimeReference, &TimeFormat);
    8999
     100  int Nfound = 0;
     101
    90102  for (j = 0; j < MAX_LIST; j++) {
    91103    i = subset[j];
     
    104116      XY_to_RD (&r, &d, 0.5*image[i].NX, 0.5*image[i].NY, &image[i].coords);
    105117    }
    106     gprint (GP_LOG, "%3lld %s %8lld %8.4f %8.4f %f %5d %2d %4.2f %5.3f %5.3f\n",
    107             (long long) i, image[i].name, (long long) image[i].imageID, r, d, t, image[i].nstar, image[i].photcode, image[i].secz, image[i].Mcal, image[i].dMcal);
     118    if (VERBOSE) gprint (GP_LOG, "%3lld %s %8lld %8.4f %8.4f %f %5d %2d %4.2f %5.3f %5.3f\n",
     119                         (long long) i, image[i].name, (long long) image[i].imageID, r, d, t, image[i].nstar, image[i].photcode, image[i].secz, image[i].Mcal, image[i].dMcal);
     120
     121    char name[80];
     122    sprintf (name, "imlist:%d", Nfound);
     123    set_str_variable (name, image[i].name);
     124    Nfound ++;
    108125  }
     126  set_int_variable ("imlist:n", Nfound);
    109127
    110128  FreeImagesDVO(image);
Note: See TracChangeset for help on using the changeset viewer.