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:
4 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/psModules

  • trunk/psModules/src/detrend/Makefile.am

    r28043 r42338  
    1010        pmMaskStats.c \
    1111        pmNonLinear.c \
     12        pmNewNonLinear.c \
    1213        pmBias.c \
    1314        pmOverscan.c \
     
    3031        pmMaskStats.h \
    3132        pmNonLinear.h \
     33        pmNewNonLinear.h \
    3234        pmBias.h \
    3335        pmOverscan.h \
  • trunk/psModules/src/detrend/pmDetrendDB.h

    r41892 r42338  
    3939    PM_DETREND_TYPE_VIDEODARK,
    4040    PM_DETREND_TYPE_LINEARITY,
     41    PM_DETREND_TYPE_NEWNONLIN,
    4142    PM_DETREND_TYPE_AUXMASK,
    4243    PM_DETREND_TYPE_KH_CORRECT,
  • 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.