FORTRAN Generation
(/./ftp/cats/J/ApJS/143/315)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/143/315 into FORTRAN code for reading data files line by line.

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/ApJS/143/315  IRAS 1Jy sample of ultraluminous galaxies. II. (Veilleux+, 2002)
*================================================================================
*Optical and near-infrared imaging of the IRAS 1Jy sample of ultraluminous
*galaxies. II. The analysis.
*    Veilleux S., Kim D.-C., Sanders D.B.
*   <Astrophys. J. Suppl. Ser. 143, 315 (2002)>
*   =2002ApJS..143..315V
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Morphological Parameters

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

      character*11  IRAS        ! IRAS FSC name
      real*4        NS          ! (kpc) ? Nuclear separation
      integer*4     TL          ! (kpc) ? Tail length
      character*4   IC          ! Interaction class
      character*3   MType       ! Spectral type (1)
*Note (1): Spectral type:
*     HII: H II region galaxy
*       L: LINER
*      S2: Seyfert 2
*      S1: Seyfert 1

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

C  Declarations for 'table2.dat'	! Parameters of Surface Brightness Profiles

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

      character*11  IRAS_1      ! IRAS name (1)
      character*2   m_IRAS      ! Component (1)
      integer*4     RPSF        ! (%) ? Percent of R band PSF relative to the galaxy
      integer*4     KPSF        ! (%) ? Percent of K' band PSF relative to the galaxy
      real*4        Rexp        ! Reduced R band {chi}^2^ value fitted to the
*                                   exponential profile
      real*4        RdeV        ! Reduced R band {chi}^2^ value fitted to the
*                                   de Vaucouleurs's r^1/4^ law profile
      real*4        Kexp        ! Reduced K' band {chi}^2^ value fitted to the
*                                   exponential profile
      real*4        KdeV        ! Reduced K' band {chi}^2^ value fitted to the
*                                   de Vaucouleurs's r^1/4^ law profile
      character*3   BFit        ! Best fitted profile (2)
      real*4        RRad        ! (kpc) ? R band seeing-deconvolved half-light
*                                    (effective) radius for E and E/D objects
      real*4        KRad        ! (kpc) ? K' band seeing-deconvolved half-light
*                                    (effective) radius for E and E/D objects
      real*4        RSB         ! (mag/arcsec2) ? R band effective surface brightness (3)
      real*4        KSB         ! (mag/arcsec2) ? K' band effective surface brightness (3)
      real*4        RMag        ! (mag) ? Absolute R band host galaxy magnitude
      real*4        KMag        ! (mag) Absolute K' band host galaxy magnitude
*Note (1): See text for details. [KVS2002] HHMMm+DDMM WW in Simbad.
*Note (2): Best fitted profile code:
*      A = ambiguous;
*      E = elliptical-like;
*      D = disk-like;
*    E/D = border-line object between E and D.
*Note (3): Not corrected for cosmological dimming.

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

C  Loading file 'table1.dat'	! Morphological Parameters

C  Format for file interpretation

    1 format(A11,1X,F4.1,1X,I2,1X,A4,2X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,118
        read(1,'(A34)')ar__
        read(ar__,1)IRAS,NS,TL,IC,MType
        if(ar__(13:16) .EQ. '') NS = rNULL__
        if(ar__(18:19) .EQ. '') TL = iNULL__
c    ..............Just test output...........
        write(6,1)IRAS,NS,TL,IC,MType
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Parameters of Surface Brightness Profiles

C  Format for file interpretation

    2 format(
     +  A11,1X,A2,1X,I2,1X,I2,1X,F4.1,1X,F5.1,1X,F5.1,1X,F5.1,1X,A3,
     +  1X,F3.1,1X,F3.1,1X,F4.1,1X,F4.1,1X,F6.2,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,127
        read(1,'(A80)')ar__1
        read(ar__1,2)
     +  IRAS_1,m_IRAS,RPSF,KPSF,Rexp,RdeV,Kexp,KdeV,BFit,RRad,KRad,
     +  RSB,KSB,RMag,KMag
        if(ar__1(16:17) .EQ. '') RPSF = iNULL__
        if(ar__1(19:20) .EQ. '') KPSF = iNULL__
        if(ar__1(49:51) .EQ. '') RRad = rNULL__
        if(ar__1(53:55) .EQ. '') KRad = rNULL__
        if(ar__1(57:60) .EQ. '') RSB = rNULL__
        if(ar__1(62:65) .EQ. '') KSB = rNULL__
        if(ar__1(67:72) .EQ. '') RMag = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  IRAS_1,m_IRAS,RPSF,KPSF,Rexp,RdeV,Kexp,KdeV,BFit,RRad,KRad,
     +  RSB,KSB,RMag,KMag
c    .......End.of.Just test output...........
      end do
      close(1)

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