* Tue May 17 13:46:01 EDT 1994 /plas1/h1/mzh/src/test armain.f FUNCTION ARMAIN(X,Y) c c 12/26/78 VMV c OBTAINS SENSITIVE AREA OF VOYAGER MAIN SENSOR (Not normalized) AS FUCTION OF c X=S*Vx/Vz=Sx/h AND Y=S*Vy/Vz=Sy/h IN CUP COORDINATES c BY LINEAR INTERPOLATION IN 2-DIMENSIONAL LOOK-UP TABLE c where S is the shift function (See thesis of A. Barnett) with c cup vector components Sx and Sy; h is the depth of the cup (4.1 cm). c The sensitive area is the overlap of the area of the collector with the area c of the image of the aperture in the plane of the collector. The maximum c sensitive area is 103.95114 cm^2 calculated from PMODEL modeling. c For details see Voyager memo #99. Note that there is a 2% uncertainty c in the Atot. S. Olbert independently calculated it to be only 102 cm^2. c VZ.GT.0 PARTICLE MOVES INTO CUP c VY.GT.0 PARTICLE MOVES TOWARD SYMMETRY AXIS c COMMON /MNTABL/TABLMN(32,32),NSTPX,NSTPY,DSTPX,DSTPY,XMAX,YMIN, * YMAX c c LOOK-UP TABLE FOR SENSITIVE AREA OF MAIN SENSOR c TABLMN(IX,IY)= SENSITIVE AREA OF MAIN SENSOR AT X=S*Vx/Vz Y=S*Vy/Vz c IX=int(X/DSTPX+1.) and IY=int((Y-Ymin)/DSTPY+1.) c The data is not normalized so it is Atot=103.95 times that given by the Barnett thesis. c NSTPX, NSTPY SIZE OF ARRAY IN X,Y (32,32) c DSTPX= STEP SIZE IN X = dSx/h, DSTPY= STEP SIZE IN Y = dSy/h (0.15806, 0.22645) c XMAX,YMIN,YMAX LIMITS BEYOND WHICH AREA IS ZERO (4.9, -4.27, 2.75) c PRESUME XMIN=0. AREA SAME FOR +X,-X c c First time around call REDART to load the common block MNTABL c logical INIT data INIT/.TRUE./ IF (INIT) CALL REDART INIT = .FALSE. XX=ABS(X)/DSTPX+1. YY=(Y-YMIN)/DSTPY+1. IX=XX IY=YY IF((IX.GE.NSTPX).OR.(IY.GE.NSTPY).OR.(IY.LT.1))GO TO 30 DX=XX-IX CX=1.-DX DY=YY-IY CY=1.-DY C ARMAIN=(TABLMN(IX,IY)*CX+TABLMN(IX+1,IY)*DX)*CY + * (TABLMN(IX,IY+1)*CX+TABLMN(IX+1,IY+1)*DX)*DY C RETURN 30 ARMAIN=0. RETURN END