@@ -46,16 +46,16 @@ def calc_theta_coordinates(df):
46
46
df ['theta_deg' ] = calc_theta_camera (
47
47
df .source_x_prediction ,
48
48
df .source_y_prediction ,
49
- df . zd_source_calc ,
50
- df . az_source_calc ,
49
+ df [ 'source_position_zd' ] ,
50
+ df [ 'source_position_az' ] ,
51
51
zd_pointing = df ['pointing_position_zd' ],
52
52
az_pointing = df ['pointing_position_az' ],
53
53
)
54
54
theta_offs = calc_theta_offs_camera (
55
55
df .source_x_prediction ,
56
56
df .source_y_prediction ,
57
- df . zd_source_calc ,
58
- df . az_source_calc ,
57
+ df [ 'source_position_zd' ] ,
58
+ df [ 'source_position_az' ] ,
59
59
zd_pointing = df ['pointing_position_zd' ],
60
60
az_pointing = df ['pointing_position_az' ],
61
61
n_off = 5 ,
@@ -77,7 +77,7 @@ def calc_theta_coordinates(df):
77
77
@click .argument ('INPUTFILE' )
78
78
@click .option (
79
79
'-s' , '--source' ,
80
- help = 'Source name, if not given, take `az_source_calc `, and `zd_source_calc `'
80
+ help = 'Source name, if not given, take `source_position_az `, and `source_position_zd `'
81
81
)
82
82
@click .option ('-c' , '--chunksize' , type = int , default = 10000 )
83
83
@click .option ('-y' , '--yes' , is_flag = True , help = 'Do not ask to overwrite existing keys' )
0 commit comments