Index: /branches/eam_branches/ppImage.20230123/src/Makefile.am
===================================================================
--- /branches/eam_branches/ppImage.20230123/src/Makefile.am	(revision 42330)
+++ /branches/eam_branches/ppImage.20230123/src/Makefile.am	(revision 42331)
@@ -23,4 +23,5 @@
 	ppImageDetrendRecord.c \
 	ppImageDetrendNonLinear.c \
+	ppImageDetrendNewNonLinear.c \
 	ppImageDetrendFringe.c \
 	ppImageDetrendFree.c \
Index: /branches/eam_branches/ppImage.20230123/src/ppImage.h
===================================================================
--- /branches/eam_branches/ppImage.20230123/src/ppImage.h	(revision 42330)
+++ /branches/eam_branches/ppImage.20230123/src/ppImage.h	(revision 42331)
@@ -35,4 +35,5 @@
     bool doAuxMask;                     // apply auxillary mask
     bool doNonLin;                      // Non-linearity correction
+    bool doNewNonLin;                   // Non-linearity correction
     bool doOverscan;                    // Overscan subtraction
     bool doNoiseMap;                    // Bias subtraction
@@ -175,4 +176,6 @@
 bool ppImageDetrendBias(pmReadout *inputReadout, pmReadout *bias, pmReadout *dark, ppImageOptions *options);
 
+bool ppImageDetrendNewNonLinear(pmReadout *input, pmFPAview *linearity, pmConfig *config);
+
 bool ppImageDetrendNonLinear(pmReadout *input, pmFPAview *linearity, pmConfig *config);
 bool ppImageDetrendNonLinearLookup(pmReadout *input, psMetadataItem *dataItem);
Index: /branches/eam_branches/ppImage.20230123/src/ppImageDetrendNewNonLinear.c
===================================================================
--- /branches/eam_branches/ppImage.20230123/src/ppImageDetrendNewNonLinear.c	(revision 42330)
+++ /branches/eam_branches/ppImage.20230123/src/ppImageDetrendNewNonLinear.c	(revision 42331)
@@ -5,5 +5,5 @@
     bool status;
 
-    pmFPAfile *linearity_file = psMetadataLookupPtr(&status, config->files, "PPIMAGE.LINEARITY");
+    pmFPAfile *linearity_file = psMetadataLookupPtr(&status, config->files, "PPIMAGE.NEWNONLIN");
     psFits *linearity_fits = linearity_file->fits;
 
@@ -16,7 +16,8 @@
     // if pmFPAfile has been loaded (by ppImageDefineFile in ppImageParseCamera), then
     // the file corresponding to the current chip is found and opened
+    // NOTE: if the extname is missing, we skip the correction
     if (!psFitsMoveExtName(linearity_fits, extname)) {
-	psError(PS_ERR_IO, false, "Unable to move to non-linearity (v2023) table %s", extname);
-	return(false);
+        psLogMsg ("ppImageDetrendNewNonLinear", 4, "Unable to move to non-linearity (v2023) table %s, skipping", extname);
+	return(true);
     }
   
