A high level routine that uses various scriptsto assemble a cdfp file from mido (Measure IDentified Objects) data for an image.
% midophot2cdfp --help
Here is a sample calculation with a real acm image.
Image = 20180206T022042.6_acm_sci_proc.fits
X,Y = 518.1 625.7
Ra,Dec = 1:33:40.515 +30:19:14.05
Mag30 = 15.719
midophot2cdfp tells me:
ZPSEC = -3.06280
EXPTIME = 5
EXPTIME correction = 1.747425 (expC)
Usingthe PS2 webtool I find:
g,r,i = 13.990 13.631 13.503
From my cdfp_panstarrs.sh tool:
RA_hrs DEC_deg g r i B V R
1.561267614 30.320371628 13.990 13.631 13.503 14.385 13.758 13.468
To get this B: B = Mag30 + ZSPEC + expC = 15.719 - 3.063 + 1.747 = 14.403
B from PanSATRRS = 14.385 delm = 0.018