FORTRAN Generation
(/./ftp/cats/J/AJ/134/2286)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/134/2286 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 2024-Apr-20
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/AJ/134/2286    BVRI photometry of isolated spirals (Hernandez-Toledo+, 2007)
*================================================================================
*BVRI surface photometry of isolated spiral galaxies.
*    Hernandez-Toledo H.M., Zendejas-Dominguez J., Avila-Reese V.
*   <Astron. J., 134, 2286-2307 (2007)>
*   =2007AJ....134.2286H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Apparent magnitudes and color indices

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

      integer*4     CIG        (nr__) ! CIG galaxy number (Cat. VII/82)
      real*4        logA       (nr__) ! ([arcsec]) Aperture
      real*4        Bmag       (nr__) ! (mag) B magnitude
      real*4        Vmag       (nr__) ! (mag) V magnitude
      real*4        Rmag       (nr__) ! (mag) ?=- R magnitude
      real*4        Imag       (nr__) ! (mag) ?=- I magnitude
      real*4        B_V        (nr__) ! (mag) B-V colour index
      real*4        B_R        (nr__) ! (mag) ?=- B-R colour index
      real*4        B_I        (nr__) ! (mag) ?=- B-I colour index

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

C  Declarations for 'table4.dat'	! Corrected colors and absolute magnitudes

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

      integer*4     CIG_1      (nr__1) ! CIG galaxy number (Cat. VII/82)
      real*4        v_B_V_c    (nr__1) ! (mag) Corrected B-V colour index
      real*4        v_B_R_c    (nr__1) ! (mag) ?=- Corrected B-R colour index
      real*4        v_B_I_c    (nr__1) ! (mag) ?=- Corrected B-I colour index
      real*4        BMAG_1     (nr__1) ! (mag) Absolute B magnitude
      real*4        VMAG_1     (nr__1) ! (mag) Absolute V magnitude
      real*4        RMAG_1     (nr__1) ! (mag) ?=- Absolute R magnitude
      real*4        IMAG_1     (nr__1) ! (mag) ?=- Absolute I magnitude

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

C  Declarations for 'table5.dat'	! Final morphological classification

      integer*4 nr__2
      parameter (nr__2=44)	! Number of records
      character*53 ar__2  	! Full-size record

      integer*4     CIG_2      (nr__2) ! CIG galaxy number (Cat. VII/82)
      character*10  MType_N    (nr__2) ! NED morphological type
      character*11  MType      (nr__2) ! This work morphological type
      character*10  B_R_1      (nr__2) ! Bars/Rings indications
      character*5   Arms       (nr__2) ! [Multi ] Optical arms indication
      real*4        Ell        (nr__2) ! ? Bar ellipticity maximum value

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

C  Declarations for 'table6.dat'	! R-Band CAS Parameters for Isolated Spiral Galaxies

      integer*4 nr__3
      parameter (nr__3=44)	! Number of records
      character*43 ar__3  	! Full-size record

      integer*4     CIG_3      (nr__3) ! CIG galaxy number (Cat. VII/82)
      real*4        incl       (nr__3) ! (deg) ?=- Inclination (G1)
      real*4        C          (nr__3) ! ?=- Concentration parameter (G1)
      real*4        e_C        (nr__3) ! ?=- rms uncertainty on C (G1)
      real*4        A          (nr__3) ! ?=- Asymetry parameter (G1)
      real*4        e_A        (nr__3) ! ?=- rms uncertainty on A (G1)
      real*4        S          (nr__3) ! ?=- Clumpiness parameter (G1)
      real*4        e_S        (nr__3) ! ?=- rms uncertainty on S (G1)

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

C  Declarations for 'table7.dat'	! Magnitudes at different circular apertures

      integer*4 nr__4
      parameter (nr__4=44)	! Number of records
      character*74 ar__4  	! Full-size record

      integer*4     CIG_4      (nr__4) ! CIG galaxy number (Cat. VII/82)
      real*4        logA1      (nr__4) ! ([arcsec]) ?=- First aperture (G1)
      real*4        Bmag1      (nr__4) ! (mag) ?=- B magnitude at aperture A1 (G1)
      real*4        Vmag1      (nr__4) ! (mag) ?=- V magnitude at aperture A1 (G1)
      real*4        Rmag1      (nr__4) ! (mag) ?=- R magnitude at aperture A1 (G1)
      real*4        Imag1      (nr__4) ! (mag) ?=- I magnitude at aperture A1 (G1)
      real*4        logA2      (nr__4) ! ([arcsec]) ?=- Second aperture (G1)
      real*4        Bmag2      (nr__4) ! (mag) ?=- B magnitude at aperture A2 (G1)
      real*4        Vmag2      (nr__4) ! (mag) ?=- V magnitude at aperture A2 (G1)
      real*4        Rmag2      (nr__4) ! (mag) ?=- R magnitude at aperture A2 (G1)
      real*4        Imag2      (nr__4) ! (mag) ?=- I magnitude at aperture A2 (G1)

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

C  Loading file 'table3.dat'	! Apparent magnitudes and color indices

C  Format for file interpretation

    1 format(
     +  4X,I4,1X,F4.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F4.2,1X,F4.2,
     +  1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,44
        read(1,'(A52)')ar__
        read(ar__,1)
     +  CIG(i__),logA(i__),Bmag(i__),Vmag(i__),Rmag(i__),Imag(i__),
     +  B_V(i__),B_R(i__),B_I(i__)
        if (idig(ar__(27:31)).EQ.0) Rmag(i__) =  rNULL__
        if (idig(ar__(33:37)).EQ.0) Imag(i__) =  rNULL__
        if (idig(ar__(44:47)).EQ.0) B_R(i__) =  rNULL__
        if (idig(ar__(49:52)).EQ.0) B_I(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  CIG(i__),logA(i__),Bmag(i__),Vmag(i__),Rmag(i__),Imag(i__),
     +  B_V(i__),B_R(i__),B_I(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Corrected colors and absolute magnitudes

C  Format for file interpretation

    2 format(
     +  4X,I4,1X,F4.2,1X,F4.2,1X,F4.2,1X,F6.2,1X,F6.2,1X,F6.2,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,44
        read(1,'(A51)')ar__1
        read(ar__1,2)
     +  CIG_1(i__),v_B_V_c(i__),v_B_R_c(i__),v_B_I_c(i__),BMAG_1(i__),
     +  VMAG_1(i__),RMAG_1(i__),IMAG_1(i__)
        if (idig(ar__1(15:18)).EQ.0) v_B_R_c(i__) =  rNULL__
        if (idig(ar__1(20:23)).EQ.0) v_B_I_c(i__) =  rNULL__
        if (idig(ar__1(39:44)).EQ.0) RMAG_1(i__) =  rNULL__
        if (idig(ar__1(46:51)).EQ.0) IMAG_1(i__) =  rNULL__
c    ..............Just test output...........
        write(6,2)
     +  CIG_1(i__),v_B_V_c(i__),v_B_R_c(i__),v_B_I_c(i__),BMAG_1(i__),
     +  VMAG_1(i__),RMAG_1(i__),IMAG_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Final morphological classification

C  Format for file interpretation

    3 format(4X,I4,1X,A10,1X,A11,1X,A10,1X,A5,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,44
        read(1,'(A53)')ar__2
        read(ar__2,3)
     +  CIG_2(i__),MType_N(i__),MType(i__),B_R_1(i__),Arms(i__),
     +  Ell(i__)
        if(ar__2(50:53) .EQ. '') Ell(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  CIG_2(i__),MType_N(i__),MType(i__),B_R_1(i__),Arms(i__),
     +  Ell(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! R-Band CAS Parameters for Isolated Spiral Galaxies

C  Format for file interpretation

    4 format(
     +  4X,I4,1X,F4.1,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,44
        read(1,'(A43)')ar__3
        read(ar__3,4)
     +  CIG_3(i__),incl(i__),C(i__),e_C(i__),A(i__),e_A(i__),S(i__),
     +  e_S(i__)
        if (idig(ar__3(10:13)).EQ.0) incl(i__) =  rNULL__
        if (idig(ar__3(15:18)).EQ.0) C(i__) =  rNULL__
        if (idig(ar__3(20:23)).EQ.0) e_C(i__) =  rNULL__
        if (idig(ar__3(25:28)).EQ.0) A(i__) =  rNULL__
        if (idig(ar__3(30:33)).EQ.0) e_A(i__) =  rNULL__
        if (idig(ar__3(35:38)).EQ.0) S(i__) =  rNULL__
        if (idig(ar__3(40:43)).EQ.0) e_S(i__) =  rNULL__
c    ..............Just test output...........
        write(6,4)
     +  CIG_3(i__),incl(i__),C(i__),e_C(i__),A(i__),e_A(i__),S(i__),
     +  e_S(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Magnitudes at different circular apertures

C  Format for file interpretation

    5 format(
     +  4X,I4,1X,F4.2,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F4.2,1X,F6.3,
     +  1X,F6.3,1X,F6.3,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,44
        read(1,'(A74)')ar__4
        read(ar__4,5)
     +  CIG_4(i__),logA1(i__),Bmag1(i__),Vmag1(i__),Rmag1(i__),
     +  Imag1(i__),logA2(i__),Bmag2(i__),Vmag2(i__),Rmag2(i__),
     +  Imag2(i__)
        if (idig(ar__4(10:13)).EQ.0) logA1(i__) =  rNULL__
        if (idig(ar__4(15:20)).EQ.0) Bmag1(i__) =  rNULL__
        if (idig(ar__4(22:27)).EQ.0) Vmag1(i__) =  rNULL__
        if (idig(ar__4(29:34)).EQ.0) Rmag1(i__) =  rNULL__
        if (idig(ar__4(36:41)).EQ.0) Imag1(i__) =  rNULL__
        if (idig(ar__4(43:46)).EQ.0) logA2(i__) =  rNULL__
        if (idig(ar__4(48:53)).EQ.0) Bmag2(i__) =  rNULL__
        if (idig(ar__4(55:60)).EQ.0) Vmag2(i__) =  rNULL__
        if (idig(ar__4(62:67)).EQ.0) Rmag2(i__) =  rNULL__
        if (idig(ar__4(69:74)).EQ.0) Imag2(i__) =  rNULL__
c    ..............Just test output...........
        write(6,5)
     +  CIG_4(i__),logA1(i__),Bmag1(i__),Vmag1(i__),Rmag1(i__),
     +  Imag1(i__),logA2(i__),Bmag2(i__),Vmag2(i__),Rmag2(i__),
     +  Imag2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end