FORTRAN Generation
(/./ftp/cats/III/157)

Conversion of standardized ReadMe file for file /./ftp/cats/III/157 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. III/157    An Ultraviolet Atlas of Quasar and Blazar Spectra   (Kinney+, 1991)
*================================================================================
*An Ultraviolet atlas of Quasar and Blazar Spectra
*    Kinney A.L., Bohlin R.C., Blades J.C., York D.G.
*   <Astrophys. J. Suppl. Ser. 75, 645 (1991)>
*   =1991ApJS...75..645K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'objects.dat'	! Details on objects included

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

C  Position composed of: GLON GLAT
      integer*4     Seq        (nr__) ! Sequence number
      character*8   QSO        (nr__) ! IAU designation
      character*9   Name       (nr__) ! Alternate designation
      real*4        z          (nr__) ! (km/s) ? Redshift z
      character*1   n_z        (nr__) ! [a:] Redshift from Veron+Veron
      real*4        Vmag       (nr__) ! (mag) V magnitude
      character*3   Type       (nr__) ! Type QSO (quasar)  SY1 (Seyfert type I)
*                                   or BLZ (blazar)
      real*4        E_B_V      (nr__) ! (mag) Color excess
      real*8        GLON       (nr__) ! (deg) Galactic longitude
      real*4        GLAT       (nr__) ! (deg) Galactic latitude
      integer*4     Ns         (nr__) ! Number of spectra used for the Atlas.

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

C  Declarations for 'sp/*'	! Co-added spectra

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

      character*8   QSO_1      (nr__1) ! Identification
      real*4        lambda     (nr__1) ! (0.1nm) Wavelength
      real*4        Qual       (nr__1) ! Quality flag
      real*8        gFlux      (nr__1) ! Gross flux
      real*8        bFlux      (nr__1) ! Background flux
      real*4        net_s      (nr__1) ! Gross-background divided by time
      real*4        Flux       (nr__1) ! (10mW/m2/nm) Absolute calibrated net flux
      real*8        ExpTime    (nr__1) ! (s) Exposure time
      real*8        sigma      (nr__1) ! *(Example: 2.1 = 210 percent)
*Note on sigma:
*   The SIGMA is the RMS scatter among the co-added spectra at each wavelength.
*   In qso70.dat, a zero has been added to byte 80 to permit reading this
*   file with the same format as that for the other files. This zero should be
*   ignored.

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

C  Loading file 'objects.dat'	! Details on objects included

C  Format for file interpretation

    1 format(
     +  I2,2X,A8,1X,A9,1X,F5.3,A1,1X,F5.2,1X,A3,1X,F4.2,F7.2,F6.2,1X,
     +  I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'objects.dat')
      write(6,*) '....Loading file: objects.dat'
      do i__=1,70
        read(1,'(A60)')ar__
        read(ar__,1)
     +  Seq(i__),QSO(i__),Name(i__),z(i__),n_z(i__),Vmag(i__),
     +  Type(i__),E_B_V(i__),GLON(i__),GLAT(i__),Ns(i__)
        if(ar__(24:28) .EQ. '') z(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Seq(i__),QSO(i__),Name(i__),z(i__),n_z(i__),Vmag(i__),
     +  Type(i__),E_B_V(i__),GLON(i__),GLAT(i__),Ns(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'sp/*'	! Co-added spectra

C  Format for file interpretation

    2 format(
     +  A8,1X,F6.1,1X,F6.0,F9.0,2X,F7.0,4X,F6.2,E10.3,1X,F9.2,3X,F7.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sp/*')
      write(6,*) '....Loading file: sp/*'
      do i__=1,70
        read(1,'(A80)')ar__1
        read(ar__1,2)
     +  QSO_1(i__),lambda(i__),Qual(i__),gFlux(i__),bFlux(i__),
     +  net_s(i__),Flux(i__),ExpTime(i__),sigma(i__)
c    ..............Just test output...........
        write(6,2)
     +  QSO_1(i__),lambda(i__),Qual(i__),gFlux(i__),bFlux(i__),
     +  net_s(i__),Flux(i__),ExpTime(i__),sigma(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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