FORTRAN Generation
(/./ftp/cats/J/A_A/422/941)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/422/941 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-19
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/422/941       Gas content in 1038 interacting galaxies   (Casasola+, 2004)
*================================================================================
*The gas content of peculiar galaxies: strongly interacting systems
*    Casasola V., Bettoni D., Galletta G.
*   <Astron. Astrophys. 422, 941 (2004)>
*   =2004A&A...422..941C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Data for the gas content

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

      integer*4     PGC        (nr__) ! PGC number
      character*25  Name       (nr__) ! Other Galaxy identification
      real*4        MType      (nr__) ! Morphological type code
      real*4        Dist       (nr__) ! (Mpc) Distance (Mpc)
      real*4        logDiam    (nr__) ! ([kpc]) Logarithm of Diameter (kpc)
      real*4        logLB      (nr__) ! ([solLum]) Logaritmh of blue luminosity
      character*1   l_log_Mdust_LB(nr__) ! A symbol "<" indicates upper limit
      real*4        log_Mdust_LB(nr__) ! ([Sun]) ? Logarithm of dust content (1)
      character*1   l_log_MHI_LB(nr__) ! "<" indicates upper limit
      real*4        log_MHI_LB (nr__) ! ([Sun]) ? Logarithm of HI content
      character*1   l_log_Mmol_LB(nr__) ! "<" indicates upper limit
      real*4        log_Mmol_LB(nr__) ! ([Sun]) ? Logarithm of molecular gas content
      character*1   l_log_LX_LB(nr__) ! "<" indicates upper limit
      real*4        log_LX_LB  (nr__) ! ? Normalized X-ray Luminosity
      real*4        logLFIR    (nr__) ! ([Sun]) ? Logarithm of FIR luminosity
      character*1   Note       (nr__) ! [a] indicates active galaxy (2)
      character*44  Refs       (nr__) ! Code for the references,
*                                         in refs.dat file
*Note (1): Values of masses and X-ray luminosities are normalized to LB
*Note (2): Presence of activity from Veron & Veron (2003, Cat. <VII/235>)

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

C  Declarations for 'refs.dat'	! References

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

      character*3   Ref        (nr__1) ! Reference code
      character*5   ISM        (nr__1) ! ISM tracer (IR, HI, CO or X-ray)
      character*19  BibCode    (nr__1) ! BibCode
      character*17  Aut        (nr__1) ! Author's name
      character*65  Com        (nr__1) ! Comments

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

C  Loading file 'table1.dat'	! Data for the gas content

C  Format for file interpretation

    1 format(
     +  I5,1X,A25,1X,F5.1,1X,F6.2,1X,F5.2,1X,F5.2,1X,A1,F5.2,1X,A1,
     +  F5.2,1X,A1,F5.2,1X,A1,F5.2,1X,F5.2,1X,A1,1X,A44)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,1038
        read(1,'(A137)')ar__
        read(ar__,1)
     +  PGC(i__),Name(i__),MType(i__),Dist(i__),logDiam(i__),
     +  logLB(i__),l_log_Mdust_LB(i__),log_Mdust_LB(i__),
     +  l_log_MHI_LB(i__),log_MHI_LB(i__),l_log_Mmol_LB(i__),
     +  log_Mmol_LB(i__),l_log_LX_LB(i__),log_LX_LB(i__),logLFIR(i__),
     +  Note(i__),Refs(i__)
        if(ar__(59:63) .EQ. '') log_Mdust_LB(i__) = rNULL__
        if(ar__(66:70) .EQ. '') log_MHI_LB(i__) = rNULL__
        if(ar__(73:77) .EQ. '') log_Mmol_LB(i__) = rNULL__
        if(ar__(80:84) .EQ. '') log_LX_LB(i__) = rNULL__
        if(ar__(86:90) .EQ. '') logLFIR(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  PGC(i__),Name(i__),MType(i__),Dist(i__),logDiam(i__),
     +  logLB(i__),l_log_Mdust_LB(i__),log_Mdust_LB(i__),
     +  l_log_MHI_LB(i__),log_MHI_LB(i__),l_log_Mmol_LB(i__),
     +  log_Mmol_LB(i__),l_log_LX_LB(i__),log_LX_LB(i__),logLFIR(i__),
     +  Note(i__),Refs(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    2 format(A3,1X,A5,1X,A19,1X,A17,1X,A65)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,33
        read(1,'(A113)')ar__1
        read(ar__1,2)Ref(i__),ISM(i__),BibCode(i__),Aut(i__),Com(i__)
c    ..............Just test output...........
        write(6,2)Ref(i__),ISM(i__),BibCode(i__),Aut(i__),Com(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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