* Tue May 17 13:46:01 EDT 1994 /plas1/h1/mzh/src/test redart.f SUBROUTINE REDART c c Routine to fill the MNTABL and SDTABL common blocks with the sensitive area c information of the main and side sensors of the Voyager Spacecraft. c c CMS VERSION OF SETART FOR READING IN AREA TABLES PREVIOUSLY GENERATED c WITH ARGEN. c c Cleaned up by A. Szabo at 02-23-94 c COMMON /MNTABL/TABLMN(32,32),NSTPX,NSTPY,DSTPX,DSTPY,XMAX,YMIN, * YMAX c c LOOK-UP TABLE FOR THE 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 c A. Barnett thesis. For more info see Voy Memo #99. 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 c where h is the depth of the cup (4.1 cm) (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 COMMON /SDTABL/TABLSD(25,25),NDAS,NDSC,DDAS,DDSC c c LOOK-UP TABLE FOR THE SENSITIVE AREA OF SIDE SENSOR c TABLSD(IAS,ISC) = SENSITIVE AREA OF SIDE SENSOR AT c IAS=int(DAS/DDAS+1.) and ISC=int(DSC/DDSC+1.) c where DAS is the relative displacement of aperture and c shield circle centers, and DSC is the relative displacement c of shield and collector circle centers. The sensitive area c is not normalized, and at normal incidence Atot=82.703 cm^2. c NDAS,NDSC SIZE OF ARRAY (25,25) c DDAS,DDSC RESPECTIVE STEP SIZE in DAS and DSC (0.44889, 0.478367) c c Need to load the data only first time around c logical FIRST integer ia,ib data FIRST/.TRUE./ IF (.not.FIRST) RETURN FIRST = .FALSE. c c Open unit 31 for binary read. As of Feb 94, the redart data is c located in $DATA/const/redart.data c c write(6,1298) 1298 format(" we are just about to call initio ") ia = -31 c call initio( 1, ia, ib) c write(6,1299) 1299 format(" we just called initio ") c open(31, file= c * '/nfs/plas7/d3/vgr/const/redart.data', c * form='unformatted') open(38, file= * 'redartascii', * form='formatted') c c Fill the common blocks c c READ (31) TABLMN, DSTPX,DSTPY,XMAX,YMIN,YMAX c write(38,8109) TABLMN, DSTPX,DSTPY,XMAX,YMIN,YMAX read(38,8109) TABLMN, DSTPX,DSTPY,XMAX,YMIN,YMAX 8109 format(E16.8) c 1024 1 1 1 1 1 1 1 c 1024 1 2 1 2 3 4 5 c READ (31) TABLSD, DDAS,DDSC c write(38,8109) TABLSD, DDAS,DDSC read(38,8109) TABLSD, DDAS,DDSC c 625 1 1 1 1 c 625 1 2 1 2 c READ (31) c | NDAS,NDSC c | , NSTPX,NSTPY c write(38,8108) NDAS,NDSC,NSTPX,NSTPY read(38,8108) NDAS,NDSC,NSTPX,NSTPY 8108 format(I8) RETURN END