// NextPositionInCycle.txt // Input: iCycle // Outputs: az,ze // Uses the pseudo-arrays azi and zei, i=0..9 // This ugly pgm is necessary because the script language does not yet support arrays if(iCycle<0) { ControlFileRead ("Positions.txt","nExposuresInCycle","az0","ze0","az1","ze1","az2","ze2","az3","ze3","az4","ze4","az5","ze5","az6","ze6","az7","ze7","az8","ze8","az9","ze9") RETURN } if(iCycle==0) { az=az0 ze=ze0 RETURN } if(iCycle==1) { az=az1 ze=ze1 RETURN } if(iCycle==2) { az=az2 ze=ze2 RETURN } if(iCycle==3) { az=az3 ze=ze3 RETURN } if(iCycle==4) { az=az4 ze=ze4 RETURN } if(iCycle==5) { az=az5 ze=ze5 RETURN } if(iCycle==6) { az=az6 ze=ze6 RETURN } if(iCycle==7) { az=az7 ze=ze7 RETURN } if(iCycle==8) { az=az8 ze=ze8 RETURN } if(iCycle==9) { az=az9 ze=ze9 RETURN } if(iCycle==10) { az=az10 ze=ze10 RETURN } if(iCycle==11) { az=az11 ze=ze11 RETURN } if(iCycle==12) { az=az12 ze=ze12 RETURN } if(iCycle==13) { az=az13 ze=ze13 RETURN } if(iCycle==14) { az=az14 ze=ze14 RETURN } if(iCycle==15) { az=az15 ze=ze15 RETURN } if(iCycle==16) { az=az16 ze=ze16 RETURN } if(iCycle==17) { az=az17 ze=ze17 RETURN } if(iCycle==18) { az=az18 ze=ze18 RETURN } if(iCycle==19) { az=az19 ze=ze19 RETURN } RETURN