FORTRAN Generation
(/./ftp/cats/J/A_A/478/353)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/478/353 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.5, on 2013-May-22
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__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. J/A+A/478/353     Structural properties of disk galaxies   (Mendez-Abreu+, 2008)
*================================================================================
*Structural properties of disk galaxies.
*I. The intrinsic equatorial ellipticity of bulges.
*    Mendez-Abreu J., Aguerri J.A.L., Corsini E.M., Simonneau E.
*   <Astron. Astrophys., 478, 353-369 (2008)>
*   =2008A&A...478..353M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Main properties and structural bulge and disk
                              parameters of the galaxies in the sample

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

      character*13  Galaxy     (nr__) ! Galaxy name
      character*14  MType      (nr__) ! Morphological classification from RC3
*                                     (Cat. VII/155)
      real*4        Jmag       (nr__) ! (mag) Total observed J-band magnitude from 2MASS
*                                     (Cat. II/246)
      integer*4     V3K        (nr__) ! (km/s) Radial velocity with respect to the CMB
*                                     from LEDA
      real*4        Dist       (nr__) ! (Mpc) Distance (1)
      character*1   n_Dist     (nr__) ! [*] * for distance been taken from Tully
*                                          (1988, Cat. VII/145)
      integer*4     sigma0     (nr__) ! (km/s) ?=- Central velocity dispersion from LEDA
      real*4        SuBreff    (nr__) ! (mag/arcsec2) Bulge effective surface brightness
      real*4        reff       (nr__) ! (arcsec) Bulge effective radius
      real*4        n          (nr__) ! Bulge shape parameter (2)
      real*4        qb         (nr__) ! Bulge axis ratio (qb = 1-e)
      real*4        PAb        (nr__) ! (deg) Bulge position angle
      real*4        SuBr0      (nr__) ! (mag/arcsec2) Disk central surface brightness
      real*4        h          (nr__) ! (arcsec) Disk scale length
      real*4        qd         (nr__) ! Disk axis ratio
      real*4        PAd        (nr__) ! (deg) Disk position angle
*Note (1): Distance obtained as V3K/H_0_ with H_0_=75km/s/Mpc.
*Note (2): the shape parameter is given by Eq.(1) of paper:
*          log(I(x,y)/I_e_) = -b_n_((r_b_/r_e_)^1/n^ - 1)
*     where r_e_ is the effective (half-light) radius, 
*     I_e_ the surface brightness at r_e_
*     and r_b_ a 'distance' to the center (cf paper)

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

C  Loading file 'table3.dat'	! Main properties and structural bulge and disk
*                              parameters of the galaxies in the sample

C  Format for file interpretation

    1 format(
     +  A13,2X,A14,1X,F4.2,1X,I4,1X,F5.1,A1,1X,I3,1X,F5.2,1X,F4.1,1X,
     +  F4.2,1X,F4.2,1X,F5.1,1X,F5.2,1X,F5.1,1X,F4.2,1X,F5.1)

C  Effective file loading

      open(unit=1,file='table3.dat', status='old')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,148
        read(1,'(A100)')ar__
        read(ar__,1)
     +  Galaxy(i__),MType(i__),Jmag(i__),V3K(i__),Dist(i__),
     +  n_Dist(i__),sigma0(i__),SuBreff(i__),reff(i__),n(i__),qb(i__),
     +  PAb(i__),SuBr0(i__),h(i__),qd(i__),PAd(i__)
        if (sigma0(i__) .EQ. 45) sigma0(i__) =  iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Galaxy(i__),MType(i__),Jmag(i__),V3K(i__),Dist(i__),
     +  n_Dist(i__),sigma0(i__),SuBreff(i__),reff(i__),n(i__),qb(i__),
     +  PAb(i__),SuBr0(i__),h(i__),qd(i__),PAd(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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