FORTRAN Generation
(/./ftp/cats/J/A_AS/95/87)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_AS/95/87 into FORTRAN code for loading all data files into arrays.

Note that special values are assigned to unknown or unspecified numbers (also called NULL numbers); when necessary, the coordinate components making up the right ascension and declination are converted into floating-point numbers representing these angles in degrees.



      program load_ReadMe
C=============================================================================
C  F77-compliant program generated by readme2f_1.81 (2015-09-23), on 2026-Aug-12
C=============================================================================
*  This code was generated from the ReadMe file documenting a catalogue
*  according to the "Standard for Documentation of Astronomical Catalogues"
*  currently in use by the Astronomical Data Centers (CDS, ADC, A&A)
*  (see full documentation at URL http://vizier.u-strasbg.fr/doc/catstd.htx)
*  Please report problems or questions to   
C=============================================================================

      implicit none
*  Unspecified or NULL values, generally corresponding to blank columns,
*  are assigned one of the following special values:
*     rNULL__    for unknown or NULL floating-point values
*     iNULL__    for unknown or NULL   integer      values
      real*4     rNULL__
      integer*4  iNULL__
      parameter  (rNULL__=--2147483648.)  	! NULL real number
      parameter  (iNULL__=(-2147483647-1))	! NULL int  number
      integer    idig			! testing NULL number

C=============================================================================
Cat. J/A+AS/95/87        Photometry and Spectroscopy in A2218    (Le Borgne+, 1992)
*================================================================================
*Photometric and spectroscopic survey of the cluster of galaxies Abell 2218.
*    Le Borgne J.F., Pello R., Sanahuja B.
*    <Astron. Astrophys. Suppl. Ser. 95, 87 (1992)>
*    =1992A&AS...95...87L
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table2.dat'	! Photographic catalog of A2218

      integer*4 nr__
      parameter (nr__=729)	! Number of records
      character*84 ar__   	! Full-size record

      integer*4     LPS        (nr__) ! [1/729] Sequential number
      integer*4     BO         (nr__) ! ? Butcher-Oemler (1984ApJ...285..426B) number
      real*8        Xpos       (nr__) ! (arcsec) X position (1)
      real*8        Ypos       (nr__) ! (arcsec) Y position (1)
      real*4        Bmag       (nr__) ! (mag) ? Johnson B magnitude
      real*4        gmag       (nr__) ! (mag) ? Thuan-Gunn g magnitude
      real*4        rmag       (nr__) ! (mag) ? Thuan-Gunn r magnitude
      real*4        imag       (nr__) ! (mag) ? Thuan-Gunn i magnitude
      real*4        zmag       (nr__) ! (mag) ? Thuan-Gunn z magnitude
      real*4        B_g        (nr__) ! (mag) ? Johnson-Thuan-Gunn B-g colour index
      real*4        g_r        (nr__) ! (mag) ? Thuan-Gunn g-r colour index
      real*4        B_r        (nr__) ! (mag) ? Johnson-Thuan-Gunn B-r colour index
      real*4        r_z        (nr__) ! (mag) ? Thuan-Gunn r-z colour index
      real*4        i_z        (nr__) ! (mag) ? Thuan-Gunn i-z colour index
*Note (1): x and y coordinates with respect to the central galaxy.
*          x increases southward, y increase westward.
*          Galaxy #391 (x=y=0) has position from NED LEDA 140648 of
*           16:35:49.20+66:12:43.5 (J2000.0)

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table3.dat'	! Spectroscopic data for objects in the field
                              of Abell 2218

      integer*4 nr__1
      parameter (nr__1=66)	! Number of records
      character*89 ar__1  	! Full-size record

      character*1   n_Id       (nr__1) ! [LBF] Source list (1)
      integer*4     Id         (nr__1) ! Identification in list (1)
      real*4        z          (nr__1) ! ? Redshift (spectroscopic)
      real*4        e_z        (nr__1) ! ? rms uncertainty on z
      real*4        rmag_1     (nr__1) ! (mag) ? Thuan-Gunn r magnitude
      real*4        B_r_1      (nr__1) ! (mag) ? Johnson-Thuan-Gunn B-r colour index
      integer*4     RV         (nr__1) ! (km/s) ? Radial velocity relative to the cluster
*                                    center of mass, for cluster members only
      real*4        S_N        (nr__1) ! ? Signal-to-noise ratio
      character*5   MType      (nr__1) ! Morphological type
      character*40  Lines      (nr__1) ! List of detected lines
*Note (1): Source list as follows:
*      L = this paper, star name is <LPS NNN> in Simbad
*      B = form Butcher et al. (1983ApJS...52..183B), cluster center,
*          name is <BOW ACO 2218 CCNNN> in Simbad
*      F = form Butcher et al. (1983ApJS...52..183B), blank field
*          name is <BOW ACO 2218 BFNNN> in Simbad

C=============================================================================

C  Loading file 'table2.dat'	! Photographic catalog of A2218

C  Format for file interpretation

    1 format(
     +  I3,1X,I3,1X,F7.3,1X,F8.3,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,
     +  F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,729
        read(1,'(A84)')ar__
        read(ar__,1)
     +  LPS(i__),BO(i__),Xpos(i__),Ypos(i__),Bmag(i__),gmag(i__),
     +  rmag(i__),imag(i__),zmag(i__),B_g(i__),g_r(i__),B_r(i__),
     +  r_z(i__),i_z(i__)
        if(ar__(5:7) .EQ. '') BO(i__) = iNULL__
        if(ar__(26:30) .EQ. '') Bmag(i__) = rNULL__
        if(ar__(32:36) .EQ. '') gmag(i__) = rNULL__
        if(ar__(38:42) .EQ. '') rmag(i__) = rNULL__
        if(ar__(44:48) .EQ. '') imag(i__) = rNULL__
        if(ar__(50:54) .EQ. '') zmag(i__) = rNULL__
        if(ar__(56:60) .EQ. '') B_g(i__) = rNULL__
        if(ar__(62:66) .EQ. '') g_r(i__) = rNULL__
        if(ar__(68:72) .EQ. '') B_r(i__) = rNULL__
        if(ar__(74:78) .EQ. '') r_z(i__) = rNULL__
        if(ar__(80:84) .EQ. '') i_z(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  LPS(i__),BO(i__),Xpos(i__),Ypos(i__),Bmag(i__),gmag(i__),
     +  rmag(i__),imag(i__),zmag(i__),B_g(i__),g_r(i__),B_r(i__),
     +  r_z(i__),i_z(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'table3.dat'	! Spectroscopic data for objects in the field
*                              of Abell 2218

C  Format for file interpretation

    2 format(
     +  A1,I3,1X,F6.4,1X,F6.4,1X,F5.2,1X,F4.2,1X,I5,1X,F6.3,1X,A5,1X,
     +  A40)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,66
        read(1,'(A89)')ar__1
        read(ar__1,2)
     +  n_Id(i__),Id(i__),z(i__),e_z(i__),rmag_1(i__),B_r_1(i__),
     +  RV(i__),S_N(i__),MType(i__),Lines(i__)
        if(ar__1(6:11) .EQ. '') z(i__) = rNULL__
        if(ar__1(13:18) .EQ. '') e_z(i__) = rNULL__
        if(ar__1(20:24) .EQ. '') rmag_1(i__) = rNULL__
        if(ar__1(26:29) .EQ. '') B_r_1(i__) = rNULL__
        if(ar__1(31:35) .EQ. '') RV(i__) = iNULL__
        if(ar__1(37:42) .EQ. '') S_N(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  n_Id(i__),Id(i__),z(i__),e_z(i__),rmag_1(i__),B_r_1(i__),
     +  RV(i__),S_N(i__),MType(i__),Lines(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end