Commit 601c0cb0 authored by Fang Yuedong's avatar Fang Yuedong
Browse files

exp_time bug fixed

parent 2c1eaa56
...@@ -43,6 +43,10 @@ def generate_pointing_list(config, pointing_filename=None, data_dir=None): ...@@ -43,6 +43,10 @@ def generate_pointing_list(config, pointing_filename=None, data_dir=None):
ipoint += 1 ipoint += 1
run_pointings = config['obs_setting']['run_pointings'] run_pointings = config['obs_setting']['run_pointings']
if config["obs_setting"]["exp_time"]:
exp_time = config["obs_setting"]["exp_time"]
else:
exp_time = 150.
if pointing_filename and data_dir: if pointing_filename and data_dir:
pointing_file = os.path.join(data_dir, pointing_filename) pointing_file = os.path.join(data_dir, pointing_filename)
...@@ -57,7 +61,7 @@ def generate_pointing_list(config, pointing_filename=None, data_dir=None): ...@@ -57,7 +61,7 @@ def generate_pointing_list(config, pointing_filename=None, data_dir=None):
continue continue
line = line.strip() line = line.strip()
columns = line.split() columns = line.split()
pointing = Pointing() pointing = Pointing(exp_time=exp_time)
pointing.read_pointing_columns(columns=columns, id=ipoint, t=t) pointing.read_pointing_columns(columns=columns, id=ipoint, t=t)
t += delta_t * 60. t += delta_t * 60.
pointing_list.append(pointing) pointing_list.append(pointing)
...@@ -71,6 +75,7 @@ def generate_pointing_list(config, pointing_filename=None, data_dir=None): ...@@ -71,6 +75,7 @@ def generate_pointing_list(config, pointing_filename=None, data_dir=None):
dec=config["obs_setting"]["dec_center"], dec=config["obs_setting"]["dec_center"],
img_pa=config["obs_setting"]["image_rot"], img_pa=config["obs_setting"]["image_rot"],
timestamp=t, timestamp=t,
exp_time=exp_time,
pointing_type='MS' pointing_type='MS'
) )
t += delta_t * 60. t += delta_t * 60.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment