Thanks Carlos, that worked...but finding the number is not so trivial to make the correct adjustments.
The problem is that I have 3 columns in the center that have strong values in the bias and darks, but not in the flats due to an electric field non linear decay and cannot be calibrated out. The electric field decay only changes the offset in these columns not the data captured. The corrective measure which is now confirmed with your help is to add a constant to the columns, thus not destroying any data or manufacturing new data with pixel repair. But how to determine that number? Well, I have an idea as I will explain:
In my case, the culprit columns are 2203, 2204 and 2205.
so I manually entered the code, iif ( XPos() == 2203 , $T+0.0002,$T) and kept on adding values until the column was indistinguishable from the good calibrated adjacent columns 2202. then moved to 2204 and 2205. Its a very cumbersome process.
The idea is to look at the average value of the adjacent good column 2202 and subtract from the average of the bad column 2203 (only using a target background values and avoiding hot pixels & stars) and add the offset to the bad column 2203. Now 2203 is corrected and should blend in with the background and become indistinguishable.
Then do similar with bad column 2205 and good column 2206, and adjust offset of 2205, then do the center column 2204 using corrected 2203 and 2205 columns.
So in short, correct the outer 2 columns with adjacent good columns and then the inner column.
For a 2 column problem just eliminate the center column.
So for now I need to test this with code that can correct say the left column, 2203.
Thanks,
Tim