FORTRAN Generation
(/./ftp/cats/J/MNRAS/390/819)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/390/819 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-Mar-29
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/390/819   Combined NVSS-FIRST Galaxies (CoNFIG) sample   (Gendre+, 2008)
*================================================================================
*The Combined NVSS-FIRST Galaxies (CoNFIG) sample.
*I. Sample definition, classification and evolution.
*    Gendre M.A., Wall J.V.
*   <Mon. Not. R. Astron. Soc., 390, 819-828 (2008)>
*   =2008MNRAS.390..819G
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'config.dat'	! Data for CoNFIG sample

      integer*4 nr__
      parameter (nr__=274)	! Number of records
      character*116 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)

      integer*4     Seq        (nr__) ! Sequential number,
*                                   [GW2008] CoNFIG NNN in Simbad
      character*15  Name       (nr__) ! Name
      character*1   n_Name     (nr__) ! [*] * for 3CRR sources from Laing et al.
*                                        (1983MNRAS.204..151L)
      integer*4     RAh        (nr__) ! (h) NVSS right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) NVSS right ascension (J2000)
      real*4        RAs        (nr__) ! (s) NVSS right ascension (J2000)
      character*1   DE_        (nr__) ! NVSS declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) NVSS declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) NVSS declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) NVSS declination (J2000)
      character*2   RT         (nr__) ! Radio type (G1)
      real*4        z          (nr__) ! ? Redshift (from Simbad or NED)
      character*1   n_z        (nr__) ! [p] p: photometric redshift derived from
*                                         the R-z relation
      real*4        S178       (nr__) ! (Jy) ? Flux density at 178MHz
      real*8        S365       (nr__) ! (mJy) ? Flux density at 365MHz
      real*4        S408       (nr__) ! (Jy) ? Flux density at 408MHz
      real*8        S1400      (nr__) ! (mJy) ? Flux density at 1.4GHz
      real*8        S2700      (nr__) ! (Jy) ? Flux density at 2.7GHz
      real*4        S5000      (nr__) ! (Jy) ? Flux density at 5.0GHz
      real*4        alpha      (nr__) ! ? Low spectral index (S{prop.to}{nu}^alpha^)
      character*1   f_alpha    (nr__) ! [+] Problematic alpha (2)
      integer*4     Ref        (nr__) ! ? Reference, in refs.dat file
      character*3   Note       (nr__) ! Indidivual notes (3)
*Note (2): the '+' indicates sources for which the value is derived from a
*     non-satisfactory single-power-low fit of the logS-log{nu} relation.
*Note (3): Notes as follows:
*      N = No optical counterpart identified above the SSS limit.
*      V = One of the 52 sources with uncertain morphology from the 1.4GHz
*          FIRST contours. Contours were obtained from our VLA
*          A-configuration observations.
*      A = One of the 52 sources with uncertain morphology from the 1.4GHz
*          FIRST contours. Contours were obtained from NRAO archives.
*      S = Steep-spectrum QSO, since the source has a stellar-type optical
*          counterpart and is classified as FRII.
*      1 = Because of the very low quality of the data for this source, its
*          morphology remains uncertain.
*      2 = At first, this source looked like a steep-spectrum source with an
*          FRI morphology. However, it is actually a well known radio loud
*          QSO used as a VLBA calibrator.
*      3 = This source's contours probably show a QSO with a suggestion of a jet.

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

C  Declarations for 'tablea1.dat'	! Optical identifications for the CoNFIG sources

      integer*4 nr__1
      parameter (nr__1=215)	! Number of records
      character*58 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)

      integer*4     Seq_1      (nr__1) ! Sequential number, [GW2008] CoNFIG NNN in Simbad
      character*1   n_Seq      (nr__1) ! [z] Source without spectroscopic redshift (1)
      character*2   MType      (nr__1) ! Morphological type (G1)
      integer*4     RAh_1      (nr__1) ! (h) NVSS right ascension (J2000)
      integer*4     RAm_1      (nr__1) ! (min) NVSS right ascension (J2000)
      real*4        RAs_1      (nr__1) ! (s) NVSS right ascension (J2000)
      character*1   DE__1      (nr__1) ! NVSS declination sign (J2000)
      integer*4     DEd_1      (nr__1) ! (deg) NVSS declination (J2000)
      integer*4     DEm_1      (nr__1) ! (arcmin) NVSS declination (J2000)
      real*4        DEs_1      (nr__1) ! (arcsec) NVSS declination (J2000)
      character*1   OType      (nr__1) ! [sg] Optical type (star or galaxy) (2)
      real*4        Bjmag      (nr__1) ! (mag) ? Bj magnitude (2)
      real*4        R1mag      (nr__1) ! (mag) ? R1 magnitude (2)
      real*4        R2mag      (nr__1) ! (mag) ? R2 magnitude (2)
      real*4        Imag       (nr__1) ! (mag) ? I magnitude (2)
*Note (1): 'z' indicates a source having an optical identification but no
*     spectroscopic redshift
*Note (2): From SuperCosmos Sky Survey (Hambly et al., 2001MNRAS.326.1279H).

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

C  Declarations for 'tableb1.dat'	! Data for CoNFIG-2 sample

      integer*4 nr__2
      parameter (nr__2=243)	! Number of records
      character*54 ar__2  	! Full-size record

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

      integer*4     RAh_2      (nr__2) ! (h) NVSS right ascension (J2000) (1)
      integer*4     RAm_2      (nr__2) ! (min) NVSS right ascension (J2000) (1)
      real*4        RAs_2      (nr__2) ! (s) NVSS right ascension (J2000) (1)
      character*1   DE__2      (nr__2) ! NVSS declination sign (J2000) (1)
      integer*4     DEd_2      (nr__2) ! (deg) NVSS declination (J2000) (1)
      integer*4     DEm_2      (nr__2) ! (arcmin) NVSS declination (J2000) (1)
      real*4        DEs_2      (nr__2) ! (arcsec) NVSS declination (J2000) (1)
      character*2   RT_1       (nr__2) ! Radio type (G1)
      real*8        S1400_1    (nr__2) ! (mJy) Flux density at 1.4GHz
      real*4        Bmag       (nr__2) ! (mag) ? B magnitude
      integer*4     OType_1    (nr__2) ! [1/2]? Optical type [unexplained in paper]
      real*4        z_1        (nr__2) ! ? Redshift (from Simbad or NED)
      integer*4     Ref_1      (nr__2) ! ? References, in refs.dat file
*Note (1): Sources identified as [GW2008] CoNFIG-2 JHHMMSS.ss+DDMMSS.ss in Simbad

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

C  Declarations for 'tableb2.dat'	! Data for CoNFIG-3 and CoNFIG-4 sample

      integer*4 nr__3
      parameter (nr__3=525)	! Number of records
      character*36 ar__3  	! Full-size record

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

      integer*4     No         (nr__3) ! Sample number, CoNFIG-3 or CoNFIG-4
      integer*4     RAh_3      (nr__3) ! (h) NVSS right ascension (J2000) (1)
      integer*4     RAm_3      (nr__3) ! (min) NVSS right ascension (J2000) (1)
      real*4        RAs_3      (nr__3) ! (s) NVSS right ascension (J2000) (1)
      character*1   DE__3      (nr__3) ! NVSS declination sign (J2000) (1)
      integer*4     DEd_3      (nr__3) ! (deg) NVSS declination (J2000) (1)
      integer*4     DEm_3      (nr__3) ! (arcmin) NVSS declination (J2000) (1)
      real*4        DEs_3      (nr__3) ! (arcsec) NVSS declination (J2000) (1)
      character*2   RT_2       (nr__3) ! Radio type (G1)
      real*4        S1400_2    (nr__3) ! (mJy) Flux density at 1.4GHz
*Note (1): Sources identified as [GW2008] CoNFIG-N JHHMMSS.ss+DDMMSS.ss in Simbad

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

C  Declarations for 'refs.dat'	! References

      integer*4 nr__4
      parameter (nr__4=97)	! Number of records
      character*74 ar__4  	! Full-size record

      integer*4     Ref_2      (nr__4) ! Reference number
      character*19  BibCode    (nr__4) ! BibCode
      character*34  Aut        (nr__4) ! Author's name
      character*15  Com        (nr__4) ! Comments

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

C  Loading file 'config.dat'	! Data for CoNFIG sample

C  Format for file interpretation

    1 format(
     +  I3,1X,A15,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,A2,
     +  1X,F6.4,A1,1X,F6.1,1X,F7.1,1X,F6.2,1X,F8.1,1X,F7.3,2X,F5.2,1X,
     +  F5.2,A1,I3,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'config.dat')
      write(6,*) '....Loading file: config.dat'
      do i__=1,274
        read(1,'(A116)')ar__
        read(ar__,1)
     +  Seq(i__),Name(i__),n_Name(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),DEs(i__),RT(i__),z(i__),n_z(i__),
     +  S178(i__),S365(i__),S408(i__),S1400(i__),S2700(i__),
     +  S5000(i__),alpha(i__),f_alpha(i__),Ref(i__),Note(i__)
        if(ar__(50:55) .EQ. '') z(i__) = rNULL__
        if(ar__(58:63) .EQ. '') S178(i__) = rNULL__
        if(ar__(65:71) .EQ. '') S365(i__) = rNULL__
        if(ar__(73:78) .EQ. '') S408(i__) = rNULL__
        if(ar__(80:87) .EQ. '') S1400(i__) = rNULL__
        if(ar__(89:95) .EQ. '') S2700(i__) = rNULL__
        if(ar__(98:102) .EQ. '') S5000(i__) = rNULL__
        if(ar__(104:108) .EQ. '') alpha(i__) = rNULL__
        if(ar__(110:112) .EQ. '') Ref(i__) = iNULL__
        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)
     +  Seq(i__),Name(i__),n_Name(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),DEs(i__),RT(i__),z(i__),n_z(i__),
     +  S178(i__),S365(i__),S408(i__),S1400(i__),S2700(i__),
     +  S5000(i__),alpha(i__),f_alpha(i__),Ref(i__),Note(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 'tablea1.dat'	! Optical identifications for the CoNFIG sources

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,215
        read(1,'(A58)')ar__1
        read(ar__1,2)
     +  Seq_1(i__),n_Seq(i__),MType(i__),RAh_1(i__),RAm_1(i__),
     +  RAs_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),
     +  OType(i__),Bjmag(i__),R1mag(i__),R2mag(i__),Imag(i__)
        if(ar__1(36:40) .EQ. '') Bjmag(i__) = rNULL__
        if(ar__1(42:46) .EQ. '') R1mag(i__) = rNULL__
        if(ar__1(48:52) .EQ. '') R2mag(i__) = rNULL__
        if(ar__1(54:58) .EQ. '') Imag(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)
     +  Seq_1(i__),n_Seq(i__),MType(i__),RAh_1(i__),RAm_1(i__),
     +  RAs_1(i__),DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),
     +  OType(i__),Bjmag(i__),R1mag(i__),R2mag(i__),Imag(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tableb1.dat'	! Data for CoNFIG-2 sample

C  Format for file interpretation

    3 format(
     +  I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,A2,1X,F8.1,1X,F5.2,
     +  1X,I1,1X,F5.3,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tableb1.dat')
      write(6,*) '....Loading file: tableb1.dat'
      do i__=1,243
        read(1,'(A54)')ar__2
        read(ar__2,3)
     +  RAh_2(i__),RAm_2(i__),RAs_2(i__),DE__2(i__),DEd_2(i__),
     +  DEm_2(i__),DEs_2(i__),RT_1(i__),S1400_1(i__),Bmag(i__),
     +  OType_1(i__),z_1(i__),Ref_1(i__)
        if(ar__2(38:42) .EQ. '') Bmag(i__) = rNULL__
        if(ar__2(44:44) .EQ. '') OType_1(i__) = iNULL__
        if(ar__2(46:50) .EQ. '') z_1(i__) = rNULL__
        if(ar__2(52:54) .EQ. '') Ref_1(i__) = iNULL__
        RAdeg_2(i__) = rNULL__
        DEdeg_2(i__) = rNULL__
c  Derive coordinates RAdeg_2 and DEdeg_2 from input data
c  (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
        if(RAh_2(i__) .GT. -180) RAdeg_2(i__)=RAh_2(i__)*15.
        if(RAm_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAm_2(i__)/4.
        if(RAs_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAs_2(i__)/240.
        if(DEd_2(i__) .GE. 0) DEdeg_2(i__)=DEd_2(i__)
        if(DEm_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEm_2(i__)/60.
        if(DEs_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEs_2(i__)/3600.
        if(DE__2(i__).EQ.'-'.AND.DEdeg_2(i__).GE.0) DEdeg_2(i__)=-DEdeg_2(i__)
c    ..............Just test output...........
        write(6,3)
     +  RAh_2(i__),RAm_2(i__),RAs_2(i__),DE__2(i__),DEd_2(i__),
     +  DEm_2(i__),DEs_2(i__),RT_1(i__),S1400_1(i__),Bmag(i__),
     +  OType_1(i__),z_1(i__),Ref_1(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_2(i__),DEdeg_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tableb2.dat'	! Data for CoNFIG-3 and CoNFIG-4 sample

C  Format for file interpretation

    4 format(
     +  I1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,A2,1X,F6.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tableb2.dat')
      write(6,*) '....Loading file: tableb2.dat'
      do i__=1,525
        read(1,'(A36)')ar__3
        read(ar__3,4)
     +  No(i__),RAh_3(i__),RAm_3(i__),RAs_3(i__),DE__3(i__),
     +  DEd_3(i__),DEm_3(i__),DEs_3(i__),RT_2(i__),S1400_2(i__)
        RAdeg_3(i__) = rNULL__
        DEdeg_3(i__) = rNULL__
c  Derive coordinates RAdeg_3 and DEdeg_3 from input data
c  (RAdeg_3 and DEdeg_3 are set to rNULL__ when unknown)
        if(RAh_3(i__) .GT. -180) RAdeg_3(i__)=RAh_3(i__)*15.
        if(RAm_3(i__) .GT. -180) RAdeg_3(i__)=RAdeg_3(i__)+RAm_3(i__)/4.
        if(RAs_3(i__) .GT. -180) RAdeg_3(i__)=RAdeg_3(i__)+RAs_3(i__)/240.
        if(DEd_3(i__) .GE. 0) DEdeg_3(i__)=DEd_3(i__)
        if(DEm_3(i__) .GE. 0) DEdeg_3(i__)=DEdeg_3(i__)+DEm_3(i__)/60.
        if(DEs_3(i__) .GE. 0) DEdeg_3(i__)=DEdeg_3(i__)+DEs_3(i__)/3600.
        if(DE__3(i__).EQ.'-'.AND.DEdeg_3(i__).GE.0) DEdeg_3(i__)=-DEdeg_3(i__)
c    ..............Just test output...........
        write(6,4)
     +  No(i__),RAh_3(i__),RAm_3(i__),RAs_3(i__),DE__3(i__),
     +  DEd_3(i__),DEm_3(i__),DEs_3(i__),RT_2(i__),S1400_2(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_3(i__),DEdeg_3(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    5 format(I3,1X,A19,1X,A34,1X,A15)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,97
        read(1,'(A74)')ar__4
        read(ar__4,5)Ref_2(i__),BibCode(i__),Aut(i__),Com(i__)
c    ..............Just test output...........
        write(6,5)Ref_2(i__),BibCode(i__),Aut(i__),Com(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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