FORTRAN Generation
(/./ftp/cats/J/A_A/361/863)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/361/863 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/A+A/361/863       Galaxies morphology and IR photometry. V. (Gavazzi+, 2000)
*================================================================================
*1.65 micrometer (H-band) surface photometry of galaxies.
*V. Profile decomposition of 1157 galaxies.
*    Gavazzi G., Franzetti P., Boselli A., Pierini D., Scodeggio M.
*   <Astron. Astrophys. 361, 863 (2000)>
*   =2000A&A...361..863G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Photometric parameters of the target galaxies

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

      character*6   Name       (nr__) ! CGCG (Zwicky et al., 1961-68, <VII/190>) or
*                                      VCC (Binggeli et al., 1985AJ.....90.1681B)
      character*1   m_Name     (nr__) ! [NSWEC] Multiplicity index on Name
      character*6   MType      (nr__) ! Morphological type (Binggeli et al.,
*                                      1985AJ.....90.1681B)
      character*6   Agg        (nr__) ! Aggregation parameter - cluster membership
      real*4        Dist       (nr__) ! (Mpc) Distance
      character*1   Filter     (nr__) ! [HK] Infrared filter
      character*3   DType      (nr__) ! Decomposition type (1)
      character*2   DTypeB     (nr__) ! Decomposition type of bulge (1)
      real*4        rebf       (nr__) ! (arcsec) ? Effective radius of the bulge
      real*4        muebf      (nr__) ! (mag/arcsec+2) ? Effective surface brightness of bulge
      real*4        redf       (nr__) ! (arcsec) ? Effective radius of the disk
      real*4        muedf      (nr__) ! (mag/arcsec+2) ? Effective surface brightness of disk
      real*4        re         (nr__) ! (arcsec) Empirical effective radius
      real*4        mue        (nr__) ! (mag/arcsec+2) Empirical effective surface brightness
      real*4        HT         (nr__) ! (mag) Total magnitude integrated to infinity
      real*4        C31        (nr__) ! ? Concentration index
      real*4        B_T        (nr__) ! ? Bulge to total flux ratio
      real*4        rB_25      (nr__) ! (arcmin) Optical isophotal diameter
*                                      (at 25mag/arcsec+2)
      real*4        rH_20_5    (nr__) ! (arcsec) NIR isophotal radius (at 20.5mag/arcsec+2)
*Note (1): E = exponential, dV = de Vaucouleurs, B+D = bulge+disk, T = truncated

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

C  Loading file 'table2.dat'	! Photometric parameters of the target galaxies

C  Format for file interpretation

    1 format(
     +  A6,A1,2X,A6,2X,A6,1X,F5.1,2X,A1,2X,A3,2X,A2,2X,F5.2,2X,F5.2,
     +  2X,F6.2,2X,F5.2,2X,F6.2,2X,F5.2,2X,F5.2,2X,F5.2,2X,F4.2,4X,
     +  F5.2,3X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,1157
        read(1,'(A123)')ar__
        read(ar__,1)
     +  Name(i__),m_Name(i__),MType(i__),Agg(i__),Dist(i__),
     +  Filter(i__),DType(i__),DTypeB(i__),rebf(i__),muebf(i__),
     +  redf(i__),muedf(i__),re(i__),mue(i__),HT(i__),C31(i__),
     +  B_T(i__),rB_25(i__),rH_20_5(i__)
        if(ar__(44:48) .EQ. '') rebf(i__) = rNULL__
        if(ar__(51:55) .EQ. '') muebf(i__) = rNULL__
        if(ar__(58:63) .EQ. '') redf(i__) = rNULL__
        if(ar__(66:70) .EQ. '') muedf(i__) = rNULL__
        if(ar__(95:99) .EQ. '') C31(i__) = rNULL__
        if(ar__(102:105) .EQ. '') B_T(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),m_Name(i__),MType(i__),Agg(i__),Dist(i__),
     +  Filter(i__),DType(i__),DTypeB(i__),rebf(i__),muebf(i__),
     +  redf(i__),muedf(i__),re(i__),mue(i__),HT(i__),C31(i__),
     +  B_T(i__),rB_25(i__),rH_20_5(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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