Commit 1e2792b7 authored by Carl Schaffer's avatar Carl Schaffer
Browse files

adding check for existence of calibration file

parent 811d7aee
......@@ -3,6 +3,13 @@ pro get_calib_v7,filecal,dmod1,dmod2,data=data,lambda=lambda,zbad=zbad,$
; verify calibration file exists, exit with error code if not
fies = file_search(filecal, count = cnt)
if(cnt eq 0) then begin
print, "Calibration file "+filecal+" not found!"
if(keyword_set(plot) eq 1) then plot=1 else plot=0
if(keyword_set(cdelta) eq 0) then cdelta=0.
if(keyword_set(telcal_offset) eq 0) then telcal_offset=0.
Markdown is supported
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