FORTRAN Generation
(/./ftp/cats/J/ApJS/109/367)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/109/367 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 2026-Oct-07
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/109/367      4C 23.56 field deep imaging (Knopp+ 1997)
*================================================================================
*Deep imaging of the field of the high-redshift radio source 4C 23.56
*       Knopp G.P., Chambers K.C.
*      <Astrophys. J. Suppl. Ser. 109, 367 (1997)>
*      =1997ApJS..109..367K      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4'	! Photometry of 4C 23.56 field sources

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

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

      integer*4     Seq         ! [1/117]+ Source sequential number
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      real*4        RAs         ! (s) Right ascension (J2000)
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      real*4        DEs         ! (arcsec) Declination (J2000)
      character*1   l_U_mag     ! Limit flag on U'mag
      real*4        U_mag       ! (mag) U' magnitude (3402{AA})
      real*4        e_U_mag     ! (mag) ? rms uncertainty on U'mag
      character*1   n_U_mag     ! [sof] Note on U'mag (1)
      character*1   l_NB        ! Limit flag on NB
      real*4        NB          ! (mag) Narrow band magnitude (4229{AA}) in
*                                   AB magnitude (2)
      real*4        e_NB        ! (mag) ? rms uncertainty on NB in AB magnitude (2)
      character*1   n_NB        ! [sof] Note on NB (1)
      character*1   l_Vmag      ! Limit flag on Vmag
      real*4        Vmag        ! (mag) V magnitude (5457{AA})
      real*4        e_Vmag      ! (mag) ? rms uncertainty on Vmag
      character*1   n_Vmag      ! [sof] Note on Vmag (1)
      character*1   l_Imag      ! Limit flag on Imag
      real*4        Imag        ! (mag) I magnitude (8300{AA})
      real*4        e_Imag      ! (mag) ? rms uncertainty on Imag
      character*1   n_Imag      ! [sof] Note on Imag (1)
      character*1   l_K_mag     ! Limit flag on K'mag
      real*4        K_mag       ! (mag) K' magnitude (21100{AA})
      real*4        e_K_mag     ! (mag) ? rms uncertainty on K'mag
      character*1   n_K_mag     ! [sof] Note on K'mag (1)
      character*2   Class       ! Classification (3)
*Note (1): We abbreviate the notes to waveband measurements as
*           s = saturated
*           o = obscured in the wings of a bright source and thus not identified
*           f = failed to meet selection criteria
*Note (2): In the AB-magnitude system, any object with a flat spectrum
*            (F_{nu} prop. to {nu}^0^) has the same magnitude,
*            independent of passband: m_AB_=-2.5log(f_{nu}_) - 48.59
*Note (3): Our tentative object classifications are abbreviated as follows:
*           FS = field star
*           UG = unidentified galaxy
*           E  = elliptical
*           S  = spiral
*           Im = irregular
*           RG = 4C 23.56

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

C  Loading file 'table4'	! Photometry of 4C 23.56 field sources

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4')
      write(6,*) '....Loading file: table4'
      do i__=1,116
        read(1,'(A100)')ar__
        read(ar__,1)
     +  Seq,RAh,RAm,RAs,DEd,DEm,DEs,l_U_mag,U_mag,e_U_mag,n_U_mag,
     +  l_NB,NB,e_NB,n_NB,l_Vmag,Vmag,e_Vmag,n_Vmag,l_Imag,Imag,
     +  e_Imag,n_Imag,l_K_mag,K_mag,e_K_mag,n_K_mag,Class
        if(ar__(36:39) .EQ. '') e_U_mag = rNULL__
        if(ar__(50:53) .EQ. '') e_NB = rNULL__
        if(ar__(64:67) .EQ. '') e_Vmag = rNULL__
        if(ar__(78:81) .EQ. '') e_Imag = rNULL__
        if(ar__(92:95) .EQ. '') e_K_mag = rNULL__
        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.
c    ..............Just test output...........
        write(6,1)
     +  Seq,RAh,RAm,RAs,DEd,DEm,DEs,l_U_mag,U_mag,e_U_mag,n_U_mag,
     +  l_NB,NB,e_NB,n_NB,l_Vmag,Vmag,e_Vmag,n_Vmag,l_Imag,Imag,
     +  e_Imag,n_Imag,l_K_mag,K_mag,e_K_mag,n_K_mag,Class
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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