IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 30, 2023, 9:53:40 AM (3 years ago)
Author:
eugene
Message:

merge from branches/eam_branches/psModules.20230123: add new non-linearity correction using new psSpline

Location:
trunk/psModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules

  • trunk/psModules/src/detrend/pmOverscan.c

    r39499 r42338  
    136136        break;
    137137      case PM_FIT_SPLINE:
    138         // XXX I don't think psSpline1D is up to scratch yet --- it has no mask, and requires an
    139         // input spline
    140         overscanOpts->spline = psVectorFitSpline1D(reduced, ordinate);
    141         fitted = psSpline1DEvalVector(overscanOpts->spline, ordinate);
     138
     139        // XXX I don't think psSpline1D is up to scratch yet --- it has no mask, and it assumes
     140        // a knot for every input point.  it needs an argument like 'number of knots' for the
     141        // output spline.  EAM: still true 2023.01.22
     142
     143        // overscanOpts->spline = psVectorFitSpline1D(reduced, ordinate);
     144        // fitted = psSpline1DEvalVector(overscanOpts->spline, ordinate);
     145        psError(PS_ERR_UNKNOWN, true, "Spline overscan fitting is broken\n");
    142146        break;
    143147      default:
     
    185189      }
    186190      case PM_FIT_SPLINE: {
     191        /*
    187192          psSpline1D *spline = overscanOpts->spline; // The spline
    188193          for (int i = 0; i < spline->n; i++) {
     
    197202              comment = NULL;
    198203          }
     204        */
    199205          // write metadata header value
    200206          psMetadataAddF32(hdu->header, PS_LIST_TAIL, "OVER_VAL", PS_META_REPLACE,
Note: See TracChangeset for help on using the changeset viewer.