FORTRAN Generation
(/./ftp/cats/J/MNRAS/365/454)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/365/454 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-Mar-29
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/MNRAS/365/454   Emission line analysis of HII galaxies         (Hoyos+, 2006)
*================================================================================
*The impact of the visibility of the [OIII]{lambda}4363 line on the general
*properties of HII galaxies in the Local Universe.
*    Hoyos C., Diaz A.I.
*   <Mon. Not. R. Astron. Soc., 365, 454-468 (2006)>
*   =2006MNRAS.365..454H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Complete list of galaxies included in this study

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

      character*14  Object      ! Object designation (G1)
      character*1   n_Object    ! [#] Note on Object (1)
      integer*4     r_Object    ! Reference for Object data
      real*8        cz          ! (km/s) Heliocentric redshift
      real*4        I3727       ! Reddening-corrected emission-line intensity of
*                                  [OII]3727,3729, relative to that of H{beta}
      real*4        I4363       ! ?=- Reddening-corrected emission-line intensity
*                                  of [OIII]4363, relative to that of H{beta}
      real*4        I4959       ! Reddening-corrected emission-line intensity of
*                                 [OIII]4959, relative to that of H{beta}
      real*4        I5007       ! Reddening-corrected emission-line intensity of
*                                 [OIII]5007, relative to that of H{beta}
      character*2   l_I6584     ! [~ <=] Limit flag on I6584
      real*4        I6584       ! ?=- Reddening-corrected emission-line intensity
*                                  of [NII]6584, relative to that of H{beta}
      character*2   n_I6584     ! [bl ] Blended flag for I6584
      character*2   l_I6717     ! [ <=] Limit flag on I6717
      real*4        I6717       ! ?=- Reddening-corrected emission-line intensity
*                                  of [SII]6717, relative to that of H{beta} (2)
      character*2   l_I6731     ! [ <=] Limit flag on I6731
      real*4        I6731       ! ?=- Reddening-corrected emission-line intensity
*                                  of [SII]6731, relative to that of H{beta}
      real*4        C_Hb        ! Value of the logarithmic extinction at H{beta}
      real*4        logF_Hb     ! ([mW/m2]) ?=- Reddening-corrected H{beta} flux
      real*4        EWHb        ! (0.1nm) ?=- Equivalent width of H{beta}
      integer*4     EW_OIII_    ! (0.1nm) ?=- Equivalent width of [OIII]5007
*Note (1): Objects from reference 17 with "#" were also found in refs 13 and 14
*Note (2): For objects from reference 19, I6717 contains the sum of the
*          {lambda}6716 and {lambda}6731 lines

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

C  Declarations for 'refs.dat'	! Catalogue references

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

      integer*4     Ref         ! Reference number
      character*19  BibCode     ! BibCode
      character*20  Aut         ! Author's name
      character*20  Com         ! Comments

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

C  Loading file 'table1.dat'	! Complete list of galaxies included in this study

C  Format for file interpretation

    1 format(
     +  A14,A1,I2,1X,F9.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,A2,F5.3,
     +  A2,1X,A2,F5.3,1X,A2,F5.3,1X,F4.2,1X,F6.2,1X,F5.1,1X,I4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,450
        read(1,'(A100)')ar__
        read(ar__,1)
     +  Object,n_Object,r_Object,cz,I3727,I4363,I4959,I5007,l_I6584,
     +  I6584,n_I6584,l_I6717,I6717,l_I6731,I6731,C_Hb,logF_Hb,EWHb,
     +  EW_OIII_
        if (idig(ar__(35:39)).EQ.0) I4363 =  rNULL__
        if (idig(ar__(55:59)).EQ.0) I6584 =  rNULL__
        if (idig(ar__(65:69)).EQ.0) I6717 =  rNULL__
        if (idig(ar__(73:77)).EQ.0) I6731 =  rNULL__
        if (idig(ar__(84:89)).EQ.0) logF_Hb =  rNULL__
        if (idig(ar__(91:95)).EQ.0) EWHb =  rNULL__
        if (EW_OIII_ .EQ. 45) EW_OIII_ =  iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Object,n_Object,r_Object,cz,I3727,I4363,I4959,I5007,l_I6584,
     +  I6584,n_I6584,l_I6717,I6717,l_I6731,I6731,C_Hb,logF_Hb,EWHb,
     +  EW_OIII_
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! Catalogue references

C  Format for file interpretation

    2 format(I2,1X,A19,1X,A20,3X,A20)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,19
        read(1,'(A66)')ar__1
        read(ar__1,2)Ref,BibCode,Aut,Com
c    ..............Just test output...........
        write(6,2)Ref,BibCode,Aut,Com
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