SUBROUTINE NGRIDS (NODATA,dsel) * This subroutine opens the NADCON grids which contain datum shifts. * A total of two files are necessary for each area; 1 for each latitude * and longitude shift table (gridded data set) expressed in arc seconds. * If a file named AREA.PAR exists it will be read for the names and * locations of the gridded data. The format of the data in * the AREA.PAR file is given in the GRIDS subroutine. * If the AREA.PAR file does not exist, or there is still room in the * arrays in the GDINFO common then the default area names used. IMPLICIT DOUBLE PRECISION (A-H, O-Z) IMPLICIT INTEGER (I-N) * IMPLICIT UNDEFINED (A-Z) INTEGER MXAREA,MXSAREA PARAMETER (MXAREA = 8, MXSAREA = 3) CHARACTER*1 ANS LOGICAL NODATA,dsel DOUBLE PRECISION DX, DY, XMAX, XMIN, YMAX, YMIN INTEGER NC, NAREA COMMON /GDINFO/ DX(MXAREA), DY(MXAREA), XMAX(MXAREA), + XMIN(MXAREA), YMAX(MXAREA), YMIN(MXAREA), + NC(MXAREA), NAREA INTEGER LUIN, LUOUT, NOUT, NIN, NAPAR, LUAREA COMMON /INOUT/ LUIN, LUOUT, NOUT, NIN, NAPAR, LUAREA(2*MXAREA) * Initialize NODATA = .FALSE. NAREA = 0 WRITE (LUOUT,100) 100 FORMAT (' NADCON is now opening the files containing the', + ' gridded data.', /, + ' The areas listed below may be used for datum', + ' conversions.') * Try to open the 'AREA.PAR' file in the subroutine GRIDS CALL GRIDS(dsel) * If NAREA>=MXAREA, then skip the section that opens the default files. * If NAREA