Skip to content

Commit

Permalink
Fix argument in TAQL meas.position
Browse files Browse the repository at this point in the history
  • Loading branch information
olebole committed Dec 8, 2018
1 parent 1310f14 commit 30eb34c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tools/create_casacore_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,13 @@

tablerows = tbl.row()
for i, row in enumerate(obstable):
[[x, y, z ]] = tables.taql("calc meas.position('itrf',{}deg,{}deg,{}m,"
"'wgsll')".format(row['longitude'],
row['latitude'],
row['elevation']))
[[x, y, z ]] = tables.taql("calc meas.position('itrf',"
" {}deg rad '',"
" {}deg rad '',"
" {}m,"
" 'wgsll')".format(row['longitude'],
row['latitude'],
row['elevation']))
tablerows.put(i, {
'MJD': 0.0,
'Name': str(row['Id']),
Expand Down

0 comments on commit 30eb34c

Please sign in to comment.