instrumental magnitudes in VPHOT
I am trying to find out, how VPhot calculates the instrumental magnitudes, but I can't.
As far as I know, the instrumental magnitude m is calculated like this: m=-2.5*log(gain*counts)
But this ist not, how VPhot does it. Maybe somebody can explain me that?