[daip] capturing failure
Eric Greisen
egreisen at nrao.edu
Fri Jun 17 10:38:38 EDT 2011
Dale A. Frail wrote:
> First question, should I go through the helpdesk now instead of daip?
>
> Real question.
> I have a list of 744 positions and 8 images (5120**2 pixels) at 6 slightly
> different pointings. I need to create light curves for these 744 sources
> and 48 epochs.
>
> I have written a RUN file to read the flux at each epoch and each position.
> However, some of the sources lie outside a given pointing and the RUN file
> fails. "AIPS 1: PIXXY=************** 1. 1. 1. 1. 1. OUT
> OF RANGE"
> This is fine but then AIPS does not advance to the next line and the RUN
> file
> ends.
>
> Is there a simple way to bypass this failure or test that PIXXY lies in
> the image?
>
> RUN file is enclosed.
>
> thanks,
>
> Dale
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Daip mailing list
> Daip at listmgr.cv.nrao.edu
> http://listmgr.cv.nrao.edu/mailman/listinfo/daip
coordina 3,31,10.81,-27,55,52.8;copixel;imval;maxfit;
We are ahead of you on this one anyway:
The outputs of COPIXEL include the adverb ERROR.
proc doit
copixel
if (^error) then; qimval; maxfit; end
FINISH
You could do a lot more here with looping over the images
and all that too, building up an array of answers and then printing it
all at once. MAXFIT has pRTLEV = -1 to make it silent and QIMVAL is a
quiet version of IMVAL.
Cheers
eric
BTW - Claire would like you to use the helpdesk and it will still come
to daip - so suit your self.
More information about the Daip
mailing list