FORTRAN Generation
(/./ftp/cats/J/ApJ/741/79)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/741/79 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/ApJ/741/79      The Spitzer-SDSS-GALEX Spectroscopic Survey    (O'Dowd+, 2011)
*================================================================================
*SSGSS: the Spitzer-SDSS-GALEX Spectroscopic Survey.
*    O'Dowd M.J., Schiminovich D., Johnson B.D., Treyer M.A., Martin C.D.,
*    Wyder T.K., Charlot S., Heckman T.M., Martins L.P., Seibert M.,
*    van der Hulst J.M.
*   <Astrophys. J., 741, 79 (2011)>
*   =2011ApJ...741...79O
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Properties, derived quantities, and observation
                             notes for SSGSS galaxies

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     SSGSS       ! [1/101] SSGSS catalog number
      real*8        RAdeg       ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) Declination in decimal degrees (J2000)
      real*4        z           ! SDSS redshift
      real*4        NUV         ! (mag) ? GALEX NUV AB magnitude
      real*4        rmag        ! (mag) SDSS r-band AB magnitude
      real*4        Lir         ! (Lsun) Total infrared luminosity
      real*4        M_          ! (Msun) Stellar mass (1)
      real*4        Dn          ! D_n_(4000) index (1)
      real*4        S_N         ! ? Signal-to-noise ratio of SSGSS low-resolution
*                                 spectra at 22um (see Section 5.3)
      real*4        Cor         ! ? Aperture correction of SL module (2)
      character*3   Note        ! [123 ] Notes (3)
*Note (1): From Kauffmann et al. (2003MNRAS.341...33K)
*Note (2): IRAC 7.8um mag minus synthetic 7.8um mag for aperture correction
*     of SL (short-low) module. See section 5.4  for further details.
*Note (3): Note as follows:
*  1 = Bright sample target, observed with he IRS "hi-res" Short-High (SH) 
*      module (10.0-19.5um)
*  2 = problematic calibration of the IRS "Short-Low 2nd order" (SL2) module
*      (5.2-8.7um)
*  3 = affected by solar flare.

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

C  Declarations for 'table2.dat'	! Emission line fluxes from high-resolution
                             spectroscopy of the bright sample

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

      integer*4     SSGSS_1     ! [1/101] SSGSS catalog number
      real*4        SIV         ! (aW/m2) ? [SIV] 10.5um emission line flux (1)
      real*4        e_SIV       ! (aW/m2) ? SIV uncertainty
      real*4        NeII        ! (aW/m2) ? [NeII] 12.8um emission line flux (1)
      real*4        e_NeII      ! (aW/m2) ? NeII uncertainty
      real*4        NeIII       ! (aW/m2) ? [NeIII] 15.6um emission line flux (1)
      real*4        e_NeIII     ! (aW/m2) ? NeIII uncertainty
      real*4        H29         ! (aW/m2) ? H_2_(9.7um) emission line flux (1)
      real*4        e_H29       ! (aW/m2) ? H_2_(9.7um) uncertainty
      real*4        H212        ! (aW/m2) ? H_2_(12.2um) emission line flux (1)
      real*4        e_H212      ! (aW/m2) ? H_2_(12.2um) uncertainty
*Note (1): fluxes in 10^-18^W/m^2^ (10^-15^erg/cm^2^/s)

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

C  Loading file 'table1.dat'	! Properties, derived quantities, and observation
*                             notes for SSGSS galaxies

C  Format for file interpretation

    1 format(
     +  I3,1X,F9.5,1X,F8.5,1X,F5.3,1X,F5.2,1X,F5.2,1X,E8.3,1X,E8.3,1X,
     +  F4.2,1X,F4.1,1X,F5.2,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,101
        read(1,'(A78)')ar__
        read(ar__,1)
     +  SSGSS,RAdeg,DEdeg,z,NUV,rmag,Lir,M_,Dn,S_N,Cor,Note
        if(ar__(30:34) .EQ. '') NUV = rNULL__
        if(ar__(65:68) .EQ. '') S_N = rNULL__
        if(ar__(70:74) .EQ. '') Cor = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  SSGSS,RAdeg,DEdeg,z,NUV,rmag,Lir,M_,Dn,S_N,Cor,Note
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Emission line fluxes from high-resolution
*                             spectroscopy of the bright sample

C  Format for file interpretation

    2 format(
     +  I2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F4.2,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,33
        read(1,'(A56)')ar__1
        read(ar__1,2)
     +  SSGSS_1,SIV,e_SIV,NeII,e_NeII,NeIII,e_NeIII,H29,e_H29,H212,
     +  e_H212
        if(ar__1(4:7) .EQ. '') SIV = rNULL__
        if(ar__1(9:12) .EQ. '') e_SIV = rNULL__
        if(ar__1(14:18) .EQ. '') NeII = rNULL__
        if(ar__1(20:23) .EQ. '') e_NeII = rNULL__
        if(ar__1(25:29) .EQ. '') NeIII = rNULL__
        if(ar__1(31:34) .EQ. '') e_NeIII = rNULL__
        if(ar__1(36:40) .EQ. '') H29 = rNULL__
        if(ar__1(42:45) .EQ. '') e_H29 = rNULL__
        if(ar__1(47:51) .EQ. '') H212 = rNULL__
        if(ar__1(53:56) .EQ. '') e_H212 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  SSGSS_1,SIV,e_SIV,NeII,e_NeII,NeIII,e_NeIII,H29,e_H29,H212,
     +  e_H212
c    .......End.of.Just test output...........
      end do
      close(1)

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