FORTRAN Generation
(/./ftp/cats/J/AJ/115/1253)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/115/1253 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-16
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/AJ/115/1253       Deep X-Ray Radio Blazar Survey (DXRBS). I. (Perlman+ 1998)
*================================================================================
*The Deep X-ray Radio Blazar Survey. I. Methods and first results.
*    Perlman E.S., Padovani P., Giommi P., Sambruna R., Jones L.R.,
*    Tzioumis A., Reynolds J.
*   <Astron. J. 115, 1253 (1998)>
*   =1998AJ....115.1253P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! Positional information

      integer*4 nr__
      parameter (nr__=102)	! 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)

      character*12  v1WGA      (nr__) ! WGACAT name
      integer*4     RAh        (nr__) ! (h) WGACAT right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) WGACAT right ascension (J2000)
      real*4        RAs        (nr__) ! (s) WGACAT right ascension (J2000)
      character*1   DE_        (nr__) ! WGACAT declination sign
      integer*4     DEd        (nr__) ! (deg) WGACAT declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) WGACAT declination (J2000)
      integer*4     DEs        (nr__) ! (arcsec) WGACAT declination (J2000)
      real*4        oWGA       (nr__) ! (arcsec) Offset from field center in X-ray
      integer*4     eWGA       (nr__) ! (arcsec) WGACAT error (1)
      integer*4     RA1h       (nr__) ! (h) PMN or GB6 right ascension (J2000)
      integer*4     RA1m       (nr__) ! (min) PMN or GB6 right ascension (J2000)
      real*4        RA1s       (nr__) ! (s) PMN or GB6 right ascension (J2000)
      character*1   DE1_       (nr__) ! PMN or GB6 declination sign
      integer*4     DE1d       (nr__) ! (deg) PMN or GB6 declination (J2000)
      integer*4     DE1m       (nr__) ! (arcmin) PMN or GB6 declination (J2000)
      integer*4     DE1s       (nr__) ! (arcsec) PMN or GB6 declination (J2000)
      integer*4     RA2h       (nr__) ! (h) Optical Counterpart right ascension (J2000)
      integer*4     RA2m       (nr__) ! (min) Optical Counterpart right ascension (J2000)
      real*4        RA2s       (nr__) ! (s) Optical Counterpart right ascension (J2000)
      character*1   DE2_       (nr__) ! Optical Counterpart declination sign
      integer*4     DE2d       (nr__) ! (deg) Optical Counterpart declination (J2000)
      integer*4     DE2m       (nr__) ! (arcmin) Optical Counterpart declination (J2000)
      integer*4     DE2s       (nr__) ! (arcsec) Optical Counterpart declination (J2000)
      character*8   Source     (nr__) ! Source (2)
      real*4        Offset     (nr__) ! (arcsec) Absolute offset (X-O) value
      integer*4     eCount     (nr__) ! (arcsec) Counterpart error
      real*4        Error      (nr__) ! (arcsec) Cumulative error
      real*4        o_e        (nr__) ! Ratio of Offset to Error
*Note (1): WGACAT positional error circles. This was done as follows:
*    WGACAT was cross-correlated with the Hipparcos Input Catalogue (Cat.
*    <I/196>), and the offsets between the two databases were obtained for
*    six bins of the distance from the WGACAT field center (0'-10',
*    10'-20', etc.). These values range from 13" (for the inner 10' of the
*    PSPC field) to 53" (for the 50'-60' ring).
*Note (2): Source codes are:
*     APM: APM survey
*     GB6: Green Bank 6cm catalog, Cat. <VIII/40>
*     PMN: Parkes-MIT-NRAO catalog, Cat. <VIII/27>
*    ATCA: Austalian Telescope Compact Array, this paper
*    NVSS: NRAO VLA Sky Survey, Condon et al., 1998AJ....115.1693C
*   FIRST: FIRST project, Gregg et al., 1996AJ....112..407G;
*          Laurent-Muehleisen et al., 1998, in prep. (see <VIII/51>)

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

C  Declarations for 'table4.dat'	! Newly identified objects

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

      character*12  v1WGA_1    (nr__1) ! WGACAT name
      real*4        Crate      (nr__1) ! (ct/s) ROSAT count rate
      real*4        F_0_1_2_0  (nr__1) ! (mW/m2) 0.1-2.0keV flux
      real*4        F1keV      (nr__1) ! (uJy) Flux density at 1keV
      real*4        log_FX_FR  (nr__1) ! ? X-flux to radio-flux ratio
      integer*4     F6cm       (nr__1) ! (mJy) ? Flux density at 6cm
      real*4        SI         (nr__1) ! ? Radio spectral index
      character*1   l_Bmag     (nr__1) ! Limit flag on Bmag
      real*4        Bmag       (nr__1) ! (mag) ? B magnitude
      character*1   l_Rmag     (nr__1) ! Limit flag on Rmag
      real*4        Rmag       (nr__1) ! (mag) ? R magnitude
      character*7   Class      (nr__1) ! Classification (1)
      real*4        z          (nr__1) ! ? Redsifht
      character*1   u_z        (nr__1) ! [?] Uncertainty flag on z
      character*3   Cat        (nr__1) ! Other catalogs (2)
*Note (1):  Classification is coded as follws:
*      RG: radio galaxy
*    FSRQ: flat-spectrum radio-loud quasar
*    SSRQ: steep-spectrum radio-loud quasar
*  BL Lac: BL Lac object
*Note (2): Other catalogs are numbered as follows:
*       1: RASS Bright Source Catalog, Cat. <IX/10>
*       2: HBQS, Homogeneous Bright QSO Survey, Cat. <J/A+AS/112/347>
*       3: V Zwicky Catalog of Galaxies, Cat. <VII/190>
*       4: 4C, Fourth Cambridge Survey, Cat. <VIII/4>
*       5: Einstein Slew Survey, Elvis et al., 1992ApJS...80..257E
*       6: FIRST Bright Quasar Survey, See Cat. <VIII/51>
*       7: B3, Third Bologna Survey, Cat. <VIII/37>
*       8: Las Campanas Redshift Survey, Cat. <VII/203>

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

C  Declarations for 'table6.dat'	! Previously identified blazars

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

      character*15  Name       (nr__2) ! Source name
      real*4        Crate_1    (nr__2) ! (ct/s) ROSAT count rate
      real*4        F_0_1_2_0_1(nr__2) ! (mW/m2) 0.1-2.0keV flux
      real*4        F1keV_1    (nr__2) ! (uJy) Flux density at 1keV
      real*4        log_FX_FR_1(nr__2) ! X-flux to radio-flux ratio
      integer*4     F6cm_1     (nr__2) ! (mJy) Flux density at 6cm
      real*4        SI_1       (nr__2) ! Radio spectral index
      real*4        Vmag       (nr__2) ! (mag) ? V magnitude
      character*6   Class_1    (nr__2) ! Classification (1)
      character*1   l_z        (nr__2) ! Limit flag on z
      real*4        z_1        (nr__2) ! ? Redsifht
      character*1   u_z_1      (nr__2) ! [?] Uncertainty flag on z
*Note (1): Classification is:
*      RG: radio galaxy
*    FSRQ: flat-spectrum radio-loud quasar
*  BL Lac: BL Lac object

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

C  Declarations for 'notes.dat'	! Individual notes

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

      character*12  v1WGA_2    (nr__3) ! WGACAT name (repeated of more than 1 line)
      character*63  Note       (nr__3) ! Text of the note

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

C  Loading file 'table3.dat'	! Positional information

C  Format for file interpretation

    1 format(
     +  4X,A12,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,F4.1,1X,I2,
     +  1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,1X,I2,1X,I2,1X,F4.1,
     +  1X,A1,I2,1X,I2,1X,I2,1X,A8,1X,F5.2,1X,I2,1X,F5.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,102
        read(1,'(A116)')ar__
        read(ar__,1)
     +  v1WGA(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),oWGA(i__),eWGA(i__),RA1h(i__),RA1m(i__),
     +  RA1s(i__),DE1_(i__),DE1d(i__),DE1m(i__),DE1s(i__),RA2h(i__),
     +  RA2m(i__),RA2s(i__),DE2_(i__),DE2d(i__),DE2m(i__),DE2s(i__),
     +  Source(i__),Offset(i__),eCount(i__),Error(i__),o_e(i__)
        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)
     +  v1WGA(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),oWGA(i__),eWGA(i__),RA1h(i__),RA1m(i__),
     +  RA1s(i__),DE1_(i__),DE1d(i__),DE1m(i__),DE1s(i__),RA2h(i__),
     +  RA2m(i__),RA2s(i__),DE2_(i__),DE2d(i__),DE2m(i__),DE2s(i__),
     +  Source(i__),Offset(i__),eCount(i__),Error(i__),o_e(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 'table4.dat'	! Newly identified objects

C  Format for file interpretation

    2 format(
     +  4X,A12,1X,F5.3,1X,E8.2,1X,F5.3,1X,F6.2,1X,I4,1X,F5.2,1X,A1,
     +  F4.1,1X,A1,F4.1,1X,A7,1X,F5.3,A1,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,102
        read(1,'(A90)')ar__1
        read(ar__1,2)
     +  v1WGA_1(i__),Crate(i__),F_0_1_2_0(i__),F1keV(i__),
     +  log_FX_FR(i__),F6cm(i__),SI(i__),l_Bmag(i__),Bmag(i__),
     +  l_Rmag(i__),Rmag(i__),Class(i__),z(i__),u_z(i__),Cat(i__)
        if(ar__1(39:44) .EQ. '') log_FX_FR(i__) = rNULL__
        if(ar__1(46:49) .EQ. '') F6cm(i__) = iNULL__
        if(ar__1(51:55) .EQ. '') SI(i__) = rNULL__
        if(ar__1(58:61) .EQ. '') Bmag(i__) = rNULL__
        if(ar__1(64:67) .EQ. '') Rmag(i__) = rNULL__
        if(ar__1(77:81) .EQ. '') z(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  v1WGA_1(i__),Crate(i__),F_0_1_2_0(i__),F1keV(i__),
     +  log_FX_FR(i__),F6cm(i__),SI(i__),l_Bmag(i__),Bmag(i__),
     +  l_Rmag(i__),Rmag(i__),Class(i__),z(i__),u_z(i__),Cat(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Previously identified blazars

C  Format for file interpretation

    3 format(
     +  A15,1X,F5.3,1X,E8.2,1X,F6.3,1X,F6.2,1X,I5,1X,F5.2,1X,F4.1,1X,
     +  A6,1X,A1,F5.3,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,97
        read(1,'(A76)')ar__2
        read(ar__2,3)
     +  Name(i__),Crate_1(i__),F_0_1_2_0_1(i__),F1keV_1(i__),
     +  log_FX_FR_1(i__),F6cm_1(i__),SI_1(i__),Vmag(i__),Class_1(i__),
     +  l_z(i__),z_1(i__),u_z_1(i__)
        if(ar__2(58:61) .EQ. '') Vmag(i__) = rNULL__
        if(ar__2(71:75) .EQ. '') z_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name(i__),Crate_1(i__),F_0_1_2_0_1(i__),F1keV_1(i__),
     +  log_FX_FR_1(i__),F6cm_1(i__),SI_1(i__),Vmag(i__),Class_1(i__),
     +  l_z(i__),z_1(i__),u_z_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Individual notes

C  Format for file interpretation

    4 format(4X,A12,1X,A63)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,182
        read(1,'(A80)')ar__3
        read(ar__3,4)v1WGA_2(i__),Note(i__)
c    ..............Just test output...........
        write(6,4)v1WGA_2(i__),Note(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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