Skip to content
Snippets Groups Projects
Commit 591f9732 authored by Dario Barghini's avatar Dario Barghini
Browse files

Fix some return codes

parent 0b96732b
No related branches found
No related tags found
No related merge requests found
...@@ -191,7 +191,6 @@ endif ...@@ -191,7 +191,6 @@ endif
; no stars results to be processed, exiting ; no stars results to be processed, exiting
if ff_assoc[0] eq '' then begin if ff_assoc[0] eq '' then begin
message, 'no image associations results to be processed. return:4', /informational
cd, old_dir cd, old_dir
return return
......
...@@ -27,6 +27,7 @@ files = get_files(par, month + '??') ...@@ -27,6 +27,7 @@ files = get_files(par, month + '??')
; searching for all association and paramaters files in the month directory ; searching for all association and paramaters files in the month directory
ff_assoc = myfile_search(files.calibration.image.astrometry.assoc.name) ff_assoc = myfile_search(files.calibration.image.astrometry.assoc.name)
if ff_assoc[0] eq '' then begin if ff_assoc[0] eq '' then begin
cd, old_dir cd, old_dir
......
...@@ -80,7 +80,7 @@ if n gt 1 then begin ...@@ -80,7 +80,7 @@ if n gt 1 then begin
endif else begin ; not enough captures, exiting endif else begin ; not enough captures, exiting
message, 'not enough frames. return:5', /informational message, 'not enough frames to proceed. return:5', /informational
cd, old_dir cd, old_dir
return return
......
...@@ -67,7 +67,7 @@ try_update = (ns_solut ge par.astrometry.min_ns) and (sd_az_solut le par.astrome ...@@ -67,7 +67,7 @@ try_update = (ns_solut ge par.astrometry.min_ns) and (sd_az_solut le par.astrome
; the astrometric solution is not good enough, returning ; the astrometric solution is not good enough, returning
if ~try_update then begin if ~try_update then begin
message, 'monthly astrometric solution is not good enough. return:99', /informational message, 'monthly astrometric solution is not good enough. return:0', /informational
cd, old_dir cd, old_dir
return return
......
...@@ -126,7 +126,7 @@ while i lt n_elements(detection) do begin ...@@ -126,7 +126,7 @@ while i lt n_elements(detection) do begin
; if not enough valid points ; if not enough valid points
if nii lt 3 then begin if nii lt 3 then begin
message, 'not enough valid points in ' + detection[i] + '. Skipping this detection.', /informational message, 'not enough valid points in ' + detection[i] + '. Skipping this detection. return:5', /informational
myremove, i, detection myremove, i, detection
n = n - 1 n = n - 1
cd, '..' cd, '..'
......
...@@ -61,7 +61,7 @@ if ii[0] eq -1 then begin ...@@ -61,7 +61,7 @@ if ii[0] eq -1 then begin
cd, old_dir cd, old_dir
retv = {file:''} retv = {file:''}
message, 'cannot find ' + camera + ' configuration on date ' + strtrim(target, 2) + '. return:99', /informational message, 'cannot find ' + camera + ' configuration on date ' + strtrim(target, 2) + '. return:2', /informational
if keyword_set(return0) then return, retv else retall if keyword_set(return0) then return, retv else retall
endif endif
...@@ -88,7 +88,7 @@ if strlen(target) eq 8 and jd eq config_jd[ii[0]] then begin ...@@ -88,7 +88,7 @@ if strlen(target) eq 8 and jd eq config_jd[ii[0]] then begin
cd, old_dir cd, old_dir
retv = {file:''} retv = {file:''}
message, 'cannot find ' + camera + ' configuration on date ' + strtrim(target, 2) + '. return:99', /informational message, 'cannot find ' + camera + ' configuration on date ' + strtrim(target, 2) + '. return:2', /informational
if keyword_set(return0) then return, retv else retall if keyword_set(return0) then return, retv else retall
endif endif
......
...@@ -23,7 +23,7 @@ if ii[0] ne -1 then begin ...@@ -23,7 +23,7 @@ if ii[0] ne -1 then begin
endif else begin ; camera is not listed in the file endif else begin ; camera is not listed in the file
message, camera + ' not listed in ' + solutions + '. return:99', /informational message, camera + ' not listed in ' + solutions + '. return:2', /informational
pseudo = '' pseudo = ''
if keyword_set(return0) then return, pseudo else retall if keyword_set(return0) then return, pseudo else retall
......
...@@ -23,7 +23,7 @@ if ii[0] ne -1 then begin ...@@ -23,7 +23,7 @@ if ii[0] ne -1 then begin
endif else begin ; pseudo is not listed in the file endif else begin ; pseudo is not listed in the file
message, pseudo + ' not listed in ' + solutions + '. return:99', /informational message, pseudo + ' not listed in ' + solutions + '. return:2', /informational
camera = '' camera = ''
if keyword_set(return0) then return, camera else retall if keyword_set(return0) then return, camera else retall
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment