FORTRAN Generation
(/./ftp/cats/J/A_A/456/953)

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

C  Internal variables

      integer*4 i__

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

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

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

      character*9   Name       (nr__) ! Galaxy Name
      real*4        r          (nr__) ! (arcsec) Distance from center (1)
      real*4        OIIobs     (nr__) ! ?=- Observed line-ratio [OII] 3727 to Hbeta
      real*4        OIIcor     (nr__) ! ?=- Reddening-corrected line-ratio
*                                       [OIII] 3727 to Hbeta
      real*4        OIIIobs    (nr__) ! Observed line-ratio [OIII] 5007 to Hbeta
      real*4        OIIIcor    (nr__) ! Reddening-corrected line-ratio
*                                   [OIII] 5007 to Hbeta
      real*4        OIobs      (nr__) ! ?=- Observed line-ratio [OI] 6300 to Hbeta
      real*4        OIcor      (nr__) ! ?=- Reddening-corrected line-ratio
*                                       [OI] 6300 to Hbeta
      real*4        HAobs      (nr__) ! Observed line-ratio Halpha to Hbeta
      real*4        HAcor      (nr__) ! Reddening-corrected line-ratio
*                                   Halpha to Hbeta
      real*4        NIIobs     (nr__) ! Observed line-ratio [NII] 6583 to Hbeta
      real*4        NIIcor     (nr__) ! Reddening-corrected line-ratio
*                                   [NII] 6583 to Hbeta
      real*4        SII1obs    (nr__) ! ?=- Observed line-ratio [SII] 6716 to Hbeta
      real*4        SII1cor    (nr__) ! ?=- Reddening-corrected line-ratio
*                                       [SII] 6716 to Hbeta
      real*4        SII2obs    (nr__) ! ?=- Observed line-ratio [SII] 6731 to Hbeta
      real*4        SII2cor    (nr__) ! ?=- Reddening-corrected line-ratio
*                                       [SII] 6731 to Hbeta
*Note (1): Negative values correspond to spectra to the northwest of the
*           center, positive values correspond to spectra to the southeast.

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

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

C  Format for file interpretation

    1 format(
     +  A9,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,99
        read(1,'(A91)')ar__
        read(ar__,1)
     +  Name(i__),r(i__),OIIobs(i__),OIIcor(i__),OIIIobs(i__),
     +  OIIIcor(i__),OIobs(i__),OIcor(i__),HAobs(i__),HAcor(i__),
     +  NIIobs(i__),NIIcor(i__),SII1obs(i__),SII1cor(i__),
     +  SII2obs(i__),SII2cor(i__)
        if (idig(ar__(18:22)).EQ.0) OIIobs(i__) =  rNULL__
        if (idig(ar__(24:28)).EQ.0) OIIcor(i__) =  rNULL__
        if (idig(ar__(42:45)).EQ.0) OIobs(i__) =  rNULL__
        if (idig(ar__(47:50)).EQ.0) OIcor(i__) =  rNULL__
        if (idig(ar__(73:76)).EQ.0) SII1obs(i__) =  rNULL__
        if (idig(ar__(78:81)).EQ.0) SII1cor(i__) =  rNULL__
        if (idig(ar__(83:86)).EQ.0) SII2obs(i__) =  rNULL__
        if (idig(ar__(88:91)).EQ.0) SII2cor(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),r(i__),OIIobs(i__),OIIcor(i__),OIIIobs(i__),
     +  OIIIcor(i__),OIobs(i__),OIcor(i__),HAobs(i__),HAcor(i__),
     +  NIIobs(i__),NIIcor(i__),SII1obs(i__),SII1cor(i__),
     +  SII2obs(i__),SII2cor(i__)
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