IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 31, 2019, 8:47:40 AM (7 years ago)
Author:
eugene
Message:

add vwtmean, virls, medimage wtmean & irls options, spline print

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20190329/src/opihi/cmd.data/spline_commands.c

    r39457 r40662  
    9393}
    9494
     95int spline_print (int argc, char **argv) {
     96
     97  int i;
     98
     99  if (argc != 2) {
     100    gprint (GP_ERR, "USAGE: spline print (name)\n");
     101    return FALSE;
     102  }
     103
     104  Spline *myspline = FindSpline (argv[1]);
     105  if (!myspline) {
     106    gprint (GP_ERR, "spline %s not found\n", argv[1]);
     107    return (FALSE);
     108  }
     109
     110  for (i = 0; i < myspline->Nknots; i++) {
     111    gprint (GP_LOG, "%lf : %lf : %lf\n", myspline->xk[i], myspline->yk[i], myspline->y2[i]);
     112  }   
     113
     114  return TRUE;
     115}
     116
    95117int spline_load (int argc, char **argv) {
    96118
Note: See TracChangeset for help on using the changeset viewer.