(or "persiste", which seems to be synonyms with "save in a file in disk", correct?)
Correct in essence, the subtlety here being that persisting something usually means doing a `butler.put()` to write it, rather than writing a file as you normally might.
1). From LinearizedSquared, what is exactly c0 (yes, it says that"c0 is linearity coefficient 0 in the AmpInfoCatalog of the detector", but how is it calculated exactly and how do you get it from the input for the PTC task?)
You know as much as I do. I can work it out, but I imagine you can too, and me working it out just to explain it to you seems inefficient. If you try, and struggle, let me know and I'm happy to help, of course.
You ask about getting that from the "input for the PTC task" though - is that really what you meant? Please confirm.
How is exactly the value table[rowInd, colInd] calculated from the input to the PTC task?
Again, is this really what you mean? Either way, again, you know as much as I do about this stuff I think.
I guess one option is just to fit the mean vs time curve to a polynomial and define the linear part as the linearity corrected value. Is that the case?
And again, I think this is up to you to solve, but that sounds about right. I guess I'd phrase it differently, but I imagine you're thinking the right things (I'd probably focus on the non-linear parts being the ones that form the correction, rather than the linear part being the corrected, because that's much more what's actually going on there, I think).
Are there perhaps examples somewhere of these tables so I can see exactly what the format is?
Not that I know of, but maybe.
Are there examples of how the values for the tables are calculated?
Again, not that I know of, but maybe.