FORTRAN Generation
(/./ftp/cats/J/ApJS/166/498)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/166/498 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-16
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/166/498  Atlas of HST STIS spectra of Seyfert galaxies  (Spinelli+, 2006)
*================================================================================
*An atlas of Hubble space telescope STIS spectra of Seyfert galaxies.
*    Spinelli P.F., Storchi-Bergmann T., Brandt C.H., Calzetti D.
*   <Astrophys. J. Suppl. Ser., 166, 498-504 (2006)>
*   =2006ApJS..166..498S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Galaxy Sample

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

C  J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg       ! (deg) Right Ascension J2000.0
      real*8        DEdeg       ! (deg)     Declination J2000.0
C  ---------------------------------- ! (position vector(s) in degrees)

      character*16  Gal         ! Galaxy name
      character*1   n_Gal       ! [bcd] Note on Gal (1)
      integer*4     RAh         ! (h) Right ascension (J2000.0) (2)
      integer*4     RAm         ! (min) Right ascension (J2000.0) (2)
      real*4        RAs         ! (s) Right ascension (J2000.0) (2)
      character*1   DE_         ! Declination sign (J2000.0) (2)
      integer*4     DEd         ! (deg) Declination (J2000.0) (2)
      integer*4     DEm         ! (arcmin) Declination (J2000.0) (2)
      integer*4     DEs         ! (arcsec) Declination (J2000.0) (2)
      character*16  HType       ! Hubble Type (2)
      character*19  Activity    ! Activity type (2)
      real*4        z           ! ? Redshift (2)
      integer*4     lam1        ! (0.1nm) Spectral coverage interval value
      integer*4     lam2        ! (0.1nm) Spectral coverage interval value
      character*1   n_lam2      ! [bcd] Individual notes on the spectra (1)
      integer*4     lam3        ! (0.1nm) ? Second spectral coverage interval value
      integer*4     lam4        ! (0.1nm) ? Second spectral coverage interval value
      character*14  Refs        ! References, in refs.dat file
      character*14  FileName    ! Name of file containing the spectra at
*                                   http://www.if.ufrgs.br/~pat/atlas.htm
*Note (1): Notes as follows:
*      b = Spectra of this galaxy were not extracted due to a poor
*          signal-to-noise ratio in the continuum. Nevertheless,
*          information on the available spectra is also included in
*          the Mastertable (table2.dat).
*      c = Spectra of this galaxy were not extracted due to the presence of
*          more than one continuum source where we could not identify the
*          brightest one. Information on the available spectra is also
*          included in the Mastertable (table2.dat).
*      d = Final spectrum of this Seyfert 1 galaxy was obtained with spectra
*          observed in different dates.
*Note (2): References from NASA/IPAC Extragalactic Database.

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

C  Declarations for 'refs.dat'	! References

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

      integer*4     Ref         ! Reference code
      character*19  BibCode     ! BibCode
      character*18  Aut         ! Author's name
      character*29  Com         ! Comments

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

C  Declarations for 'table2.dat'	! The Mastertable

      integer*4 nr__2
      parameter (nr__2=782)	! Number of records
      character*111 ar__2  	! Full-size record

      character*16  Gal_1       ! Galaxy name
      character*9   HST         ! The HST/STIS root name
      character*5   f_HST       ! Notes on HST spectrum (1)
      character*8   Grate       ! Grating used in observation
      character*6   Aper        ! (arcsec2) Slit width
      integer*4     lam_c       ! (0.1nm) Central wavelength in Angstroms
      integer*4     lam1_1      ! (0.1nm) Initial wavelength in Angstroms
      integer*4     lam2_1      ! (0.1nm) Final wavelength in Angstroms
      integer*4     Res         ! Spectral resolution
      real*8        PosAng      ! (deg) Slit orientation
      real*8        Exp         ! (s) Exposure time
      character*14  ID          ! ID of extracted spectrum from each segment
      real*8        Scale       ! (arcsec/pix) Observation platescale
*Note (1): Flag on HST as follows:
*      * = the long slit spectrum has the extension '_x2d' otherwise means
*          extension '_sx2'
*   (LS) = low signal-to-noise ratio, we did not extract a nuclear spectrum
*          in this case
*      # = continuum source is absent, thus we did not extract a nuclear spectrum
*   (2S) = there are two sources, and we did not extract a nuclear spectrum
*          in this case
*    (!) = Warning: this spectrum was combined with another spectra observed
*          in different dates to compile a final Sy1-1.9 galaxy spectrum

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

C  Loading file 'table1.dat'	! Galaxy Sample

C  Format for file interpretation

    1 format(
     +  A16,A1,2X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,A16,A19,1X,
     +  F6.4,1X,I4,1X,I5,A1,1X,I4,1X,I4,1X,A14,1X,A14)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,101
        read(1,'(A134)')ar__
        read(ar__,1)
     +  Gal,n_Gal,RAh,RAm,RAs,DE_,DEd,DEm,DEs,HType,Activity,z,lam1,
     +  lam2,n_lam2,lam3,lam4,Refs,FileName
        if(ar__(77:82) .EQ. '') z = rNULL__
        if(ar__(96:99) .EQ. '') lam3 = iNULL__
        if(ar__(101:104) .EQ. '') lam4 = iNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  Gal,n_Gal,RAh,RAm,RAs,DE_,DEd,DEm,DEs,HType,Activity,z,lam1,
     +  lam2,n_lam2,lam3,lam4,Refs,FileName
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    2 format(I2,1X,A19,1X,A18,A29)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,45
        read(1,'(A70)')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=============================================================================

C  Loading file 'table2.dat'	! The Mastertable

C  Format for file interpretation

    3 format(
     +  A16,1X,A9,A5,1X,A8,1X,A6,1X,I4,1X,I4,1X,I5,1X,I5,1X,F10.5,1X,
     +  F7.2,1X,A14,1X,F7.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,782
        read(1,'(A111)')ar__2
        read(ar__2,3)
     +  Gal_1,HST,f_HST,Grate,Aper,lam_c,lam1_1,lam2_1,Res,PosAng,Exp,
     +  ID,Scale
c    ..............Just test output...........
        write(6,3)
     +  Gal_1,HST,f_HST,Grate,Aper,lam_c,lam1_1,lam2_1,Res,PosAng,Exp,
     +  ID,Scale
c    .......End.of.Just test output...........
      end do
      close(1)

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