206 - | tsdimaging( |
207 - | infiles=baseline_outputfile, |
208 - | outfile = beamimagefiles[antenna], |
209 - | field='0', |
210 - | spw='{}'.format(spwID), |
211 - | antenna='{}'.format(antenna), |
212 - | intent='OBSERVE_TARGET#ON_SOURCE', |
213 - | specmode='cube', |
214 - | mode=mode, outframe=outframe, veltype=veltype, |
215 - | nchan=nchan, start=start, width=width, |
216 - | gridfunction=gridfunction, convsupport=convsupport, |
217 - | truncate=truncate, gwidth=gwidth, jwidth=jwidth, |
218 - | imsize=imsize, |
219 - | cell=cell, |
220 - | phasecenter=phasecenter, |
221 - | restfreq=rest_frequencies[spwID], |
222 - | stokes='pseudoI', |
223 - | overwrite=Overwrite_Products, |
224 - | brightnessunit='K' |
225 - | ) |
226 - | os.rename(beamimagefiles[antenna] + '.image', beamimagefiles[antenna]) |
206 + | try: |
207 + | tsdimaging( |
208 + | infiles=baseline_outputfile, |
209 + | outfile = beamimagefiles[antenna], |
210 + | field='0', |
211 + | spw='{}'.format(spwID), |
212 + | antenna='{}'.format(antenna), |
213 + | intent='OBSERVE_TARGET#ON_SOURCE', |
214 + | specmode='cube', |
215 + | mode=mode, outframe=outframe, veltype=veltype, |
216 + | nchan=nchan, start=start, width=width, |
217 + | gridfunction=gridfunction, convsupport=convsupport, |
218 + | truncate=truncate, gwidth=gwidth, jwidth=jwidth, |
219 + | imsize=imsize, |
220 + | cell=cell, |
221 + | phasecenter=phasecenter, |
222 + | restfreq=rest_frequencies[spwID], |
223 + | stokes='pseudoI', |
224 + | overwrite=Overwrite_Products, |
225 + | brightnessunit='K' |
226 + | ) |
227 + | except Exception: |
228 + | continue |
229 + | else: |
230 + | os.rename(beamimagefiles[antenna] + '.image', beamimagefiles[antenna]) |