FORTRAN Generation
(/./ftp/cats/J/MNRAS/385/1656)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/385/1656 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-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/MNRAS/385/1656    Extragalactic radio-sources at 95GHz      (Sadler+, 2008)
*================================================================================
*The extragalactic radio-source population at 95GHz.
*    Sadler E.M., Ricci R., Ekers R.D., Sault R.J., Jackson C.A., De Zotti G.
*   <Mon. Not. R. Astron. Soc., 385, 1656-1672 (2008)>
*   =2008MNRAS.385.1656S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! Table of 2005 observations

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

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

      character*1   n_Name     (nr__) ! [abc] Note on source (1)
      character*9   Name       (nr__) ! Name (HHMM-DDMM)
      character*1   f_Name     (nr__) ! [C*] Calibrator or low-latitude source (2)
      integer*4     RAh        (nr__) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000)
      real*4        RAs        (nr__) ! (s) Right ascension (J2000)
      character*1   DE_        (nr__) ! Declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) Declination (J2000)
      character*15  OName      (nr__) ! Alternate name
      character*1   l_Bjmag    (nr__) ! Limit flag on Bjmag
      real*4        Bjmag      (nr__) ! (mag) ? Blue (B_J_) magnitude of the optical
*                                  counterpart if any (3)
      integer*4     T          (nr__) ! [0/2]? Supercosmos classification of the
*                                       optical ID (4)
      character*1   l_S95_1    (nr__) ! Limit flag on S95GHz1
      integer*4     S95_1      (nr__) ! (mJy) ? Flux density at 95GHz, 2005 Day1 or 2006 (5)
      character*1   l_S95_2    (nr__) ! Limit flag on S95GHz2
      integer*4     S95_2      (nr__) ! (mJy) ? Flux density at 95GHz, 2005 Day2 (5)
      integer*4     S20_1      (nr__) ! (mJy) ? Flux density at 20GHz, 2005 or 2006 (5)
      integer*4     S20_2      (nr__) ! (mJy) ? Flux density at 20GHz, 2004 (6)
      integer*4     e_S20_2    (nr__) ! (mJy) ? rms uncertainty on S20GHz2
      integer*4     S8_6       (nr__) ! (mJy) ? Flux density at 8.6GHz, 2004 (6)
      integer*4     e_S8_6     (nr__) ! (mJy) ? rms uncertainty on S8.6GHz
      integer*4     S4_8       (nr__) ! (mJy) ? Flux density at 4.8GHz, 2004 (6)
      integer*4     e_S4_8     (nr__) ! (mJy) ? rms uncertainty on S4.8GHz
      real*4        S1_4       (nr__) ! (mJy) ? NVSS (Cat. VIII/65) 1.4GHz flux density
      real*4        e_S1_4     (nr__) ! (mJy) ? rms uncertainty on S1.4GHz
      character*1   l_S843     (nr__) ! Limit flag on S843MHz
      real*4        S843       (nr__) ! (mJy) ? SUMSS (Cat. VIII/81) 843MHz flux density
      real*4        e_S843     (nr__) ! (mJy) ? rms uncertainty on S843MHz
      real*4        z          (nr__) ! ? Spectroscopic redshift of optical counterpart
      character*2   ID         (nr__) ! [QG ? PN] Source class (Quasar, Galaxy, PN)
*Note (1): Flag, for table4 only, as follows:
*      a = Sources with inverted radio spectra at 5-20GHz
*      b = Other sources observed but later removed from the
*          'inverted spectrum' sample
*      c = Strong sources from the ATCA calibrator list
*Note (2): Flag as follows:
*      C = ATCA calibrator
*      * = source within 10{deg} of the Galactic plane
*Note (3): From Supercosmos catalog (Hambly et al., 2001MNRAS.326.1279H).
*Note (4): ID as follows:
*      0 = not classified
*      1 = galaxy
*      2 = stellar object (candidate QSO)
*Note (5): Simultaneous TCA 95- and 20-GHz flux densities measured in
*       2005-6 in this project.
*Note (6): Near-simultaneous ATCA 20-, 8- and 5-GHz flux densities measured
*     by the AT20G team in 2004 November. The listed values are from the
*     2007 July run of the AT20G data pipeline.

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

C  Declarations for 'table5.dat'	! Table of 2006 observations

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

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

      character*1   n_Name_1   (nr__1) ! [abc] Note on source (1)
      character*9   Name_1     (nr__1) ! Name (HHMM-DDMM)
      character*1   f_Name_1   (nr__1) ! [C*] Calibrator or low-latitude source (2)
      integer*4     RAh_1      (nr__1) ! (h) Right ascension (J2000)
      integer*4     RAm_1      (nr__1) ! (min) Right ascension (J2000)
      real*4        RAs_1      (nr__1) ! (s) Right ascension (J2000)
      character*1   DE__1      (nr__1) ! Declination sign (J2000)
      integer*4     DEd_1      (nr__1) ! (deg) Declination (J2000)
      integer*4     DEm_1      (nr__1) ! (arcmin) Declination (J2000)
      real*4        DEs_1      (nr__1) ! (arcsec) Declination (J2000)
      character*15  OName_1    (nr__1) ! Alternate name
      character*1   l_Bjmag_1  (nr__1) ! Limit flag on Bjmag
      real*4        Bjmag_1    (nr__1) ! (mag) ? Blue (B_J_) magnitude of the optical
*                                  counterpart if any (3)
      integer*4     T_1        (nr__1) ! [0/2]? Supercosmos classification of the
*                                       optical ID (4)
      character*1   l_S95_1_1  (nr__1) ! Limit flag on S95GHz1
      integer*4     S95_1_1    (nr__1) ! (mJy) ? Flux density at 95GHz, 2005 Day1 or 2006 (5)
      character*1   l_S95_2_1  (nr__1) ! Limit flag on S95GHz2
      integer*4     S95_2_1    (nr__1) ! (mJy) ? Flux density at 95GHz, 2005 Day2 (5)
      integer*4     S20_1_1    (nr__1) ! (mJy) ? Flux density at 20GHz, 2005 or 2006 (5)
      integer*4     S20_2_1    (nr__1) ! (mJy) ? Flux density at 20GHz, 2004 (6)
      integer*4     e_S20_2_1  (nr__1) ! (mJy) ? rms uncertainty on S20GHz2
      integer*4     S8_6_1     (nr__1) ! (mJy) ? Flux density at 8.6GHz, 2004 (6)
      integer*4     e_S8_6_1   (nr__1) ! (mJy) ? rms uncertainty on S8.6GHz
      integer*4     S4_8_1     (nr__1) ! (mJy) ? Flux density at 4.8GHz, 2004 (6)
      integer*4     e_S4_8_1   (nr__1) ! (mJy) ? rms uncertainty on S4.8GHz
      real*4        S1_4_1     (nr__1) ! (mJy) ? NVSS (Cat. VIII/65) 1.4GHz flux density
      real*4        e_S1_4_1   (nr__1) ! (mJy) ? rms uncertainty on S1.4GHz
      character*1   l_S843_1   (nr__1) ! Limit flag on S843MHz
      real*4        S843_1     (nr__1) ! (mJy) ? SUMSS (Cat. VIII/81) 843MHz flux density
      real*4        e_S843_1   (nr__1) ! (mJy) ? rms uncertainty on S843MHz
      real*4        z_1        (nr__1) ! ? Spectroscopic redshift of optical counterpart
      character*2   ID_1       (nr__1) ! [QG ? PN] Source class (Quasar, Galaxy, PN)
*Note (1): Flag, for table4 only, as follows:
*      a = Sources with inverted radio spectra at 5-20GHz
*      b = Other sources observed but later removed from the
*          'inverted spectrum' sample
*      c = Strong sources from the ATCA calibrator list
*Note (2): Flag as follows:
*      C = ATCA calibrator
*      * = source within 10{deg} of the Galactic plane
*Note (3): From Supercosmos catalog (Hambly et al., 2001MNRAS.326.1279H).
*Note (4): ID as follows:
*      0 = not classified
*      1 = galaxy
*      2 = stellar object (candidate QSO)
*Note (5): Simultaneous TCA 95- and 20-GHz flux densities measured in
*       2005-6 in this project.
*Note (6): Near-simultaneous ATCA 20-, 8- and 5-GHz flux densities measured
*     by the AT20G team in 2004 November. The listed values are from the
*     2007 July run of the AT20G data pipeline.

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

C  Loading file 'table4.dat'	! Table of 2005 observations

C  Format for file interpretation

    1 format(
     +  A1,1X,A9,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,A15,
     +  A1,F5.2,1X,I1,1X,A1,I4,1X,A1,I4,1X,I4,1X,I4,1X,I3,1X,I4,1X,I3,
     +  1X,I4,1X,I3,1X,F6.1,1X,F4.1,1X,A1,F6.1,1X,F5.1,1X,F6.4,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,68
        read(1,'(A140)')ar__
        read(ar__,1)
     +  n_Name(i__),Name(i__),f_Name(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),DEs(i__),OName(i__),l_Bjmag(i__),
     +  Bjmag(i__),T(i__),l_S95_1(i__),S95_1(i__),l_S95_2(i__),
     +  S95_2(i__),S20_1(i__),S20_2(i__),e_S20_2(i__),S8_6(i__),
     +  e_S8_6(i__),S4_8(i__),e_S4_8(i__),S1_4(i__),e_S1_4(i__),
     +  l_S843(i__),S843(i__),e_S843(i__),z(i__),ID(i__)
        if(ar__(54:58) .EQ. '') Bjmag(i__) = rNULL__
        if(ar__(60:60) .EQ. '') T(i__) = iNULL__
        if(ar__(63:66) .EQ. '') S95_1(i__) = iNULL__
        if(ar__(69:72) .EQ. '') S95_2(i__) = iNULL__
        if(ar__(74:77) .EQ. '') S20_1(i__) = iNULL__
        if(ar__(79:82) .EQ. '') S20_2(i__) = iNULL__
        if(ar__(84:86) .EQ. '') e_S20_2(i__) = iNULL__
        if(ar__(88:91) .EQ. '') S8_6(i__) = iNULL__
        if(ar__(93:95) .EQ. '') e_S8_6(i__) = iNULL__
        if(ar__(97:100) .EQ. '') S4_8(i__) = iNULL__
        if(ar__(102:104) .EQ. '') e_S4_8(i__) = iNULL__
        if(ar__(106:111) .EQ. '') S1_4(i__) = rNULL__
        if(ar__(113:116) .EQ. '') e_S1_4(i__) = rNULL__
        if(ar__(119:124) .EQ. '') S843(i__) = rNULL__
        if(ar__(126:130) .EQ. '') e_S843(i__) = rNULL__
        if(ar__(132:137) .EQ. '') z(i__) = rNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  n_Name(i__),Name(i__),f_Name(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),DEs(i__),OName(i__),l_Bjmag(i__),
     +  Bjmag(i__),T(i__),l_S95_1(i__),S95_1(i__),l_S95_2(i__),
     +  S95_2(i__),S20_1(i__),S20_2(i__),e_S20_2(i__),S8_6(i__),
     +  e_S8_6(i__),S4_8(i__),e_S4_8(i__),S1_4(i__),e_S1_4(i__),
     +  l_S843(i__),S843(i__),e_S843(i__),z(i__),ID(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Table of 2006 observations

C  Format for file interpretation

    2 format(
     +  A1,1X,A9,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,A15,
     +  A1,F5.2,1X,I1,1X,A1,I4,1X,A1,I4,1X,I4,1X,I4,1X,I3,1X,I4,1X,I3,
     +  1X,I4,1X,I3,1X,F6.1,1X,F4.1,1X,A1,F6.1,1X,F5.1,1X,F6.4,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,70
        read(1,'(A140)')ar__1
        read(ar__1,2)
     +  n_Name_1(i__),Name_1(i__),f_Name_1(i__),RAh_1(i__),RAm_1(i__),
     +  RAs_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),
     +  OName_1(i__),l_Bjmag_1(i__),Bjmag_1(i__),T_1(i__),
     +  l_S95_1_1(i__),S95_1_1(i__),l_S95_2_1(i__),S95_2_1(i__),
     +  S20_1_1(i__),S20_2_1(i__),e_S20_2_1(i__),S8_6_1(i__),
     +  e_S8_6_1(i__),S4_8_1(i__),e_S4_8_1(i__),S1_4_1(i__),
     +  e_S1_4_1(i__),l_S843_1(i__),S843_1(i__),e_S843_1(i__),
     +  z_1(i__),ID_1(i__)
        if(ar__1(54:58) .EQ. '') Bjmag_1(i__) = rNULL__
        if(ar__1(60:60) .EQ. '') T_1(i__) = iNULL__
        if(ar__1(63:66) .EQ. '') S95_1_1(i__) = iNULL__
        if(ar__1(69:72) .EQ. '') S95_2_1(i__) = iNULL__
        if(ar__1(74:77) .EQ. '') S20_1_1(i__) = iNULL__
        if(ar__1(79:82) .EQ. '') S20_2_1(i__) = iNULL__
        if(ar__1(84:86) .EQ. '') e_S20_2_1(i__) = iNULL__
        if(ar__1(88:91) .EQ. '') S8_6_1(i__) = iNULL__
        if(ar__1(93:95) .EQ. '') e_S8_6_1(i__) = iNULL__
        if(ar__1(97:100) .EQ. '') S4_8_1(i__) = iNULL__
        if(ar__1(102:104) .EQ. '') e_S4_8_1(i__) = iNULL__
        if(ar__1(106:111) .EQ. '') S1_4_1(i__) = rNULL__
        if(ar__1(113:116) .EQ. '') e_S1_4_1(i__) = rNULL__
        if(ar__1(119:124) .EQ. '') S843_1(i__) = rNULL__
        if(ar__1(126:130) .EQ. '') e_S843_1(i__) = rNULL__
        if(ar__1(132:137) .EQ. '') z_1(i__) = rNULL__
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  n_Name_1(i__),Name_1(i__),f_Name_1(i__),RAh_1(i__),RAm_1(i__),
     +  RAs_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),
     +  OName_1(i__),l_Bjmag_1(i__),Bjmag_1(i__),T_1(i__),
     +  l_S95_1_1(i__),S95_1_1(i__),l_S95_2_1(i__),S95_2_1(i__),
     +  S20_1_1(i__),S20_2_1(i__),e_S20_2_1(i__),S8_6_1(i__),
     +  e_S8_6_1(i__),S4_8_1(i__),e_S4_8_1(i__),S1_4_1(i__),
     +  e_S1_4_1(i__),l_S843_1(i__),S843_1(i__),e_S843_1(i__),
     +  z_1(i__),ID_1(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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