Skip to content

Commit

Permalink
add zptmag to output and ensure format exactly matches previous
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarayan committed Sep 5, 2017
1 parent 1a724a7 commit 33c0e83
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion data/photometry/20170731/Combined/dump_apparent_mags.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def main():

d = a[0:]
out = []
out_zp = []
for i, x in enumerate(d):
this_out = []
objid = str(x['ID'])
Expand All @@ -50,11 +51,21 @@ def main():
this_out.append(mag.s)
out.append(this_out)
names = ['obj']
formats = {}
for p in pb:
z = zp[p]
dz = zp['d'+p]
out_zp.append(z)
out_zp.append(dz)
names.append(p)
names.append('d'+p)
formats[p] = '%7.5f'
formats['d'+p] = '%6.5f'
out_zp = ['zptmag'] + out_zp
out_zp = [tuple(out_zp)]
out += out_zp
out = at.Table(rows=out, names=names)
out.write('WDphot_C22_AC_AS_combined.dat',format='ascii.commented_header', overwrite=True)
out.write('WDphot_C22_AC_AS_combined.dat',format='ascii.fixed_width', delimiter=' ', bookend=False, overwrite=True, formats=formats)



Expand Down

0 comments on commit 33c0e83

Please sign in to comment.