FORTRAN Generation
(/./ftp/cats/J/ApJS/194/29)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJS/194/29 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-28
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/194/29        Observations of blazars at 15GHz          (Richards+, 2011)
*================================================================================
*Blazars in the Fermi era: the OVRO 40m telescope monitoring program.
*    Richards J.L., Max-Moerbeck W., Pavlidou V., King O.G., Pearson T.J.,
*    Readhead A.C.S., Reeves R., Shepherd M.C., Stevenson M.A., Weintraub L.C.,
*    Fuhrmann L., Angelakis E., Anton Zensus J., Healey S.E., Romani R.W.,
*    Shaw M.S., Grainge K., Birkinshaw M., Lancaster K., Worrall D.M.,
*    Taylor G.B., Cotter G., Bustos R.
*   <Astrophys. J. Suppl. Ser., 194, 29 (2011)>
*   =2011ApJS..194...29R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! Program source data

      integer*4 nr__
      parameter (nr__=1163)	! Number of records
      character*85 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*10  Name       (nr__) ! Source name (<CGRaBS JHHMM+DDMM> in Simbad for
*                              the 1158 Candidate Gamma-ray Blazar Survey sample)
      integer*4     RAh        (nr__) ! (h) Hour of Right Ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Minute of Right Ascension (J2000)
      real*4        RAs        (nr__) ! (s) Second of Right Ascension (J2000)
      character*1   DE_        (nr__) ! Sign of the Declination (J2000)
      integer*4     DEd        (nr__) ! (deg) Degree of Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Arcminute of Declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) Arcsecond of Declination (J2000)
      real*4        z          (nr__) ! ? Redshift (1)
      character*6   OType      (nr__) ! Optical classification (AGN, BLL, GALAXY, FSRQ
*                              (flat-spectrum radio quasar) or NLRG (narrow-line
*                              radio galaxy))
      integer*4     Nobs       (nr__) ! Number of observations (2)
      character*1   v1LAC      (nr__) ! [Y/N] Source associated with gamma-ray source in
*                              Fermi 1LAC catalog Abdo et al. 2010,
*                              Cat. J/ApJ/715/429
      integer*4     Var        (nr__) ! [0,5] Variability analysis flag, 0=variable (3)
      character*1   V2         (nr__) ! [C/V] Result of 3-{sigma} {chi}^2^ variability
*                              test (4)
      real*4        S0         (nr__) ! (Jy) ? Intrinsic source mean flux density at 15GHz
      real*4        e_S0       (nr__) ! (Jy) ? The 1-{sigma} uncertainty in S0
      character*1   l_m        (nr__) ! Limit flag on m (5)
      real*4        m          (nr__) ! (%) ? Intrinsic modulation index
      real*4        E_m        (nr__) ! (%) ? Upper limit uncertainty in m
      real*4        e_m_1      (nr__) ! (%) ? Lower limit uncertainty in m
*Note (1): For the CGRaBS sample, redshift and optical classifications are
*          repeated here from Healey et al. (2008, Cat. J/ApJS/175/97) for
*          convenience.
*Note (2): That survived data editing and were used in our variability analysis.
*Note (3): Flag as follows:
*   0 = a non-zero intrinsic modulation is found;
*   1 = the source is non-variable;
*   2 = insufficient observations for variability analysis;
*   3 = flux density too faint for variability analysis;
*   4 = the source was a calibrator used in the spline fit to remove long-term
*       trends;
*   5 = the source was a calibrator not used in the spline fit.
*Note (4): C (V) indicates the source is (is not) consistent with a constant
*          flux density.
*Note (5): Values for non-variable sources indicate 3-{sigma} upper limits and
*          no uncertainties are quoted for S0 and m.

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

C  Declarations for 'table5.dat'	! 15 GHz flux densities

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

      character*10  Name_1     (nr__1) ! Source name (<CGRaBS JHHMM+DDMM> in Simbad for
*                              the 1158 Candidate Gamma-ray Blazar Survey sample)
      real*8        MJD        (nr__1) ! (d) Modified Julian Date of the observation
      real*4        S15GHz     (nr__1) ! (Jy) The 15GHz flux density
      real*4        e_S15GHz   (nr__1) ! (Jy) Uncertainty in S15GHz

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

C  Loading file 'table4.dat'	! Program source data

C  Format for file interpretation

    1 format(
     +  A10,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.3,1X,A6,
     +  1X,I3,1X,A1,1X,I1,1X,A1,1X,F6.3,1X,F5.3,1X,A1,F5.1,1X,F3.1,1X,
     +  F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,1163
        read(1,'(A85)')ar__
        read(ar__,1)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),z(i__),OType(i__),Nobs(i__),v1LAC(i__),
     +  Var(i__),V2(i__),S0(i__),e_S0(i__),l_m(i__),m(i__),E_m(i__),
     +  e_m_1(i__)
        if(ar__(36:40) .EQ. '') z(i__) = rNULL__
        if(ar__(59:64) .EQ. '') S0(i__) = rNULL__
        if(ar__(66:70) .EQ. '') e_S0(i__) = rNULL__
        if(ar__(73:77) .EQ. '') m(i__) = rNULL__
        if(ar__(79:81) .EQ. '') E_m(i__) = rNULL__
        if(ar__(83:85) .EQ. '') e_m_1(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)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),z(i__),OType(i__),Nobs(i__),v1LAC(i__),
     +  Var(i__),V2(i__),S0(i__),e_S0(i__),l_m(i__),m(i__),E_m(i__),
     +  e_m_1(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'	! 15 GHz flux densities

C  Format for file interpretation

    2 format(A10,1X,F12.6,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,149085
        read(1,'(A36)')ar__1
        read(ar__1,2)Name_1(i__),MJD(i__),S15GHz(i__),e_S15GHz(i__)
c    ..............Just test output...........
        write(6,2)Name_1(i__),MJD(i__),S15GHz(i__),e_S15GHz(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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