FORTRAN Generation
(/./ftp/cats/J/A_A/569/A52)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/569/A52 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-Jun-10
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/569/A52       Ultra steep spectrum radio sources       (Singh+, 2014)
*================================================================================
*Multiwavelength characterization of faint ultra steep spectrum radio sources:
*A search for high-redshift radio galaxies.
*    Singh V., Beelen A., Wadadekar Y., Sirothia S., Ishwara-Chandra C.H.,
*    Basu A., Omont A., McAlpine K., Ivison R.J., Oliver S., Farrah D., Lacy M.
*   <Astron. Astrophys., 569, A52-52 (2014)>
*   =2014A&A...569A..52S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea1.dat'	! 325MHz GMRT observations of the Ultra Steep
                             Spectrum (USS) sample

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

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

      character*3   Sample      ! Sample (B03 or S06) (1)
      character*1   n_GMRT      ! [*+] low signal or double lobe source (2)
      character*13  GMRT        ! Source name as given in our 325MHz GMRT catalog
*                                 (Sirothia et al., in prep.) (HHMMSS+DDMMSS)
      integer*4     RAh         ! (h) Right ascension (J2000) (3)
      integer*4     RAm         ! (min) Right ascension (J2000) (3)
      real*4        RAs         ! (s) Right ascension (J2000) (3)
      character*1   DE_         ! Declination sign (J2000) (3)
      integer*4     DEd         ! (deg) Declination (J2000) (3)
      integer*4     DEm         ! (arcmin) Declination (J2000) (3)
      real*4        DEs         ! (arcsec) Declination (J2000) (3)
      real*8        S_325       ! (mJy) 325MHz flux density from our GMRT
*                                   observations
      real*4        e_S_325     ! (mJy) rms uncertainty on S325MHz
      real*4        S1_4        ! (mJy) 1.4GHz flux density from B03 or S06
      real*4        e_S1_4      ! (mJy) rms uncertainty on S1.4
      real*4        alpha       ! [-2.6/-1] Radio spectral index {alpha}
*                                           between 325MHz to 1.4GHz
      real*4        e_alpha     ! rms uncertainty on alpha
      real*4        zph         ! [0.03/3.5]?=- Photometric redshift estimate (4)
      real*4        zsp         ! [0.03/3.9]?=- Spectroscopic redshift (5)
      real*4        logL1_4     ! ([W/Hz]) ?=- 1.4GHz radio luminosity (6)
*Note (1): The two samples are:
*  B03 = VLA-VVDS; Bondi et al. (2003A&A...403..857B, Cat. J/A+A/403/857)
*  S06 = SXDF; Simpson et al. (2006MNRAS.372..741S, Cat. J/MNRAS/372/741)
*Note (2): Notes as follows:
*  * = indicates sources detected at <5{sigma} in 1.4GHz
*  + = indicates sources with clear double lobe radio morphology
*Note (3): Positions from 1.4GHz VLA observations presented in Bondi et al.
* (2003A&A...403..857B) and Simpson et al. (2006MNRAS.372..741S).
*Note (4): Photometric redshift estimates taken from McAlpine et al.
* (2013MNRAS.436.1084M) and Simpson et al. (2012MNRAS.421.3060S,
* Cat. J/MNRAS/421/3060) for the sources in the B03 and S06 fields, respectively.
*Note (5): Spectroscopic redshifts taken from VVDS catalog (Le Fevre et al.,
* 2013A&A...559A..14L) and Simpson et al. (2012MNRAS.421.3060S,
* Cat. J/MNRAS/421/3060).
*Note (6): Spectroscopic redshifts, when available, are given preference over
* photometric redshifts to estimate the radio luminosities.

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

C  Loading file 'tablea1.dat'	! 325MHz GMRT observations of the Ultra Steep
*                             Spectrum (USS) sample

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,161
        read(1,'(A103)')ar__
        read(ar__,1)
     +  Sample,n_GMRT,GMRT,RAh,RAm,RAs,DE_,DEd,DEm,DEs,S_325,e_S_325,
     +  S1_4,e_S1_4,alpha,e_alpha,zph,zsp,logL1_4
        if (idig(ar__(87:91)).EQ.0) zph =  rNULL__
        if (idig(ar__(93:97)).EQ.0) zsp =  rNULL__
        if (idig(ar__(99:103)).EQ.0) logL1_4 =  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.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  Sample,n_GMRT,GMRT,RAh,RAm,RAs,DE_,DEd,DEm,DEs,S_325,e_S_325,
     +  S1_4,e_S1_4,alpha,e_alpha,zph,zsp,logL1_4
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
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