FORTRAN Generation
(/./ftp/cats/J/A_A/459/55)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/459/55 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/A+A/459/55    Narrow-band imaging of 5 Seyfert-1 galaxies     (Bennert+, 2006)
*================================================================================
*Size and properties of the narrow-line region in Seyfert-1 galaxies
*from spatially-resolved optical spectroscopy.
*    Bennert N., Jungwiert B., Komossa S., Haas M., Chini R.
*   <Astron. Astrophys. 459, 55 (2006)>
*   =2006A&A...459...55B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Observed and reddening-corrected emission-line
                              ratios relative to Hbeta for 5 galaxies

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

      character*13  Name        ! Galaxy name
      real*4        r           ! (arcsec) Distance from center (1)
      real*4        OIIobs      ! ? Observed line-ratio [OII] 3727 to Hbeta
      real*4        OIIder      ! ? Reddening-corrected line-ratio
*                                   [OIII] 3727 to Hbeta
      real*4        OIIIobs     ! Observed line-ratio [OIII] 5007 to Hbeta
      real*4        OIIIder     ! Reddening-corrected line-ratio
*                                  [OIII] 5007 to Hbeta
      real*4        OIobs       ! ?=- Observed line-ratio [OI] 6300 to Hbeta
      real*4        OIder       ! ?=- Reddening-corrected line-ratio
*                                     [OI] 6300 to Hbeta
      real*4        HAobs       ! Observed line-ratio Halpha to Hbeta
      real*4        HAder       ! Reddening-corrected line-ratio
*                                  Halpha to Hbeta
      real*4        NIIobs      ! Observed line-ratio [NII] 6583 to Hbeta
      real*4        NIIder      ! Reddening-corrected line-ratio
*                                  [NII] 6583 to Hbeta
      real*4        SII1obs     ! ?=- Observed line-ratio [SII] 6716 to Hbeta
      real*4        SII1der     ! ?=- Reddening-corrected line-ratio
*                                     [SII] 6716 to Hbeta
      real*4        SII2obs     ! ?=- Observed line-ratio [SII] 6731 to Hbeta
      real*4        SII2der     ! ?=- Reddening-corrected line-ratio
*                                     [SII] 6731 to Hbeta
*Note (1): Negative values correspond to spectra to the southeast of the
*          center, positive values correspond to spectra to the northwest.

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

C  Loading file 'table1.dat'	! Observed and reddening-corrected emission-line
*                              ratios relative to Hbeta for 5 galaxies

C  Format for file interpretation

    1 format(
     +  A13,1X,F6.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F4.2,1X,F4.2,
     +  1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,
     +  F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,75
        read(1,'(A95)')ar__
        read(ar__,1)
     +  Name,r,OIIobs,OIIder,OIIIobs,OIIIder,OIobs,OIder,HAobs,HAder,
     +  NIIobs,NIIder,SII1obs,SII1der,SII2obs,SII2der
        if(ar__(22:26) .EQ. '') OIIobs = rNULL__
        if(ar__(28:32) .EQ. '') OIIder = rNULL__
        if (idig(ar__(46:49)).EQ.0) OIobs =  rNULL__
        if (idig(ar__(51:54)).EQ.0) OIder =  rNULL__
        if (idig(ar__(77:80)).EQ.0) SII1obs =  rNULL__
        if (idig(ar__(82:85)).EQ.0) SII1der =  rNULL__
        if (idig(ar__(87:90)).EQ.0) SII2obs =  rNULL__
        if (idig(ar__(92:95)).EQ.0) SII2der =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name,r,OIIobs,OIIder,OIIIobs,OIIIder,OIobs,OIder,HAobs,HAder,
     +  NIIobs,NIIder,SII1obs,SII1der,SII2obs,SII2der
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