IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 6, 2011, 11:15:56 AM (15 years ago)
Author:
eugene
Message:

added concept of merging multiple objects into a single object in DVO / relastro; avoid memory-hogging duplication of the images array in relastro / relphot; enable parallax fitting; fix nan/inf bug in color points; add -no-return option to opihi/echo

Location:
trunk/Ohana/src/opihi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.basic/echo.c

    r14190 r32346  
    33int echo (int argc, char **argv) {
    44 
    5   int i;
     5  int i, N, RETURN_CHAR;
     6
     7  RETURN_CHAR = TRUE;
     8  if ((N = get_argument (argc, argv, "-no-return"))) {
     9    remove_argument (N, &argc, argv);
     10    RETURN_CHAR = FALSE;
     11  }
    612
    713  for (i = 1; i < argc - 1; i++) {
     
    915  }
    1016  if (argc >= 2) {
     17    if (RETURN_CHAR) {
    1118      gprint (GP_LOG, "%s\n", argv[argc - 1]);
     19    } else {
     20      gprint (GP_LOG, "%s", argv[argc - 1]);
     21    }
    1222  }
    1323  return (TRUE);
  • trunk/Ohana/src/opihi/cmd.data/plot.c

    r20936 r32346  
    5353    return (FALSE);
    5454  }
     55  if (dypvec && (dypvec->Nelements != xvec->Nelements)) goto mismatch;
     56  if (dymvec && (dymvec->Nelements != xvec->Nelements)) goto mismatch;
     57  if (dxpvec && (dxpvec->Nelements != xvec->Nelements)) goto mismatch;
     58  if (dxmvec && (dxmvec->Nelements != xvec->Nelements)) goto mismatch;
     59
    5560  Npts = xvec[0].Nelements;
    5661  if (Npts == 0) return (TRUE);
     
    6974  }
    7075  return (TRUE);
     76
     77mismatch:
     78  gprint (GP_ERR, "error and data vector lengths are mismatched\n");
     79  return (FALSE);
    7180}
Note: See TracChangeset for help on using the changeset viewer.