Commits
99 99 | print(f"start_time={start_time}, stop_time={stop_time}, step_size={step_size}") |
100 100 | print(f"quantities={quantities}, ang_format={ang_format}") |
101 101 | ephemdata = queryhorizons(target, start_time, stop_time, step_size, quantities, ang_format, rawdatafile) |
102 102 | # return ephemdata |
103 103 | if ephemdata and 'result' in ephemdata: |
104 104 | casalog.post('converting ephemeris data to a CASA table') |
105 105 | tocasatb(ephemdata, outtable) |
106 106 | if not os.path.exists(outtable): |
107 107 | casalog.post('Failed to produce the CASA ephemeris table', 'WARN') |
108 108 | if rawdatafile=='': |
109 - | casalog.post('To find the detailed reason of the error, re-run it with specifying rawdatafile'+\ |
109 + | casalog.post('To find the detailed reason of the error, you may want to re-run the task by specifying rawdatafile'+\ |
110 110 | ' parameter and check the content of the output raw data file for the information.','WARN') |
111 111 | else: |
112 112 | casalog.post(f'Please check the content of {rawdatafile} for the further information of the error','WARN') |
113 113 | |
114 114 | |
115 115 | def queryhorizons(target, starttime, stoptime, stepsize, quantities, ang_format, rawdatafile=''): |
116 116 | """ |
117 117 | Submit a query to the JPL-Horizons API |
118 118 | |
119 119 | arguments: |