FORTRAN Generation
(/./ftp/cats/J/A_A/368/225)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/368/225 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-19
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/368/225   HR 5341, HD 142070, HR 6967 & HR 8434 uvby phot. (Adelman, 2001)
*================================================================================
*uvby Photometry of the CP stars HR 5341, HD 142070, HR 6967, and HR 8434.
*     Adelman S.J.
*    <Astron. Astrophys. 368, 225 (2001)>
*    =2001A&A...368..225A
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Photometry of HR 5341

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

      real*8        HJD        (nr__) ! (d) Heliocentric Julian Date
      real*4        u_v_c      (nr__) ! (mag) variable-comparison (v-c) u magnitude
      real*4        u_ch_c     (nr__) ! (mag) check-comparison (ch-c) u magnitude
      real*4        v_v_c      (nr__) ! (mag) variable-comparison (v-c) v magnitude
      real*4        v_ch_c     (nr__) ! (mag) check-comparison (ch-c) v magnitude
      real*4        b_v_c      (nr__) ! (mag) variable-comparison (v-c) b magnitude
      real*4        b_ch_c     (nr__) ! (mag) check-comparison (ch-c) b magnitude
      real*4        y_v_c      (nr__) ! (mag) variable-comparison (v-c) y magnitude
      real*4        y_ch_c     (nr__) ! (mag) check-comparison (ch-c) y magnitude

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

C  Declarations for 'table3.dat'	! Photometry of HD 142070

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

      real*8        HJD_1      (nr__1) ! (d) Heliocentric Julian Date
      real*4        u_v_c_1    (nr__1) ! (mag) variable-comparison (v-c) u magnitude
      real*4        u_ch_c_1   (nr__1) ! (mag) check-comparison (ch-c) u magnitude
      real*4        v_v_c_1    (nr__1) ! (mag) variable-comparison (v-c) v magnitude
      real*4        v_ch_c_1   (nr__1) ! (mag) check-comparison (ch-c) v magnitude
      real*4        b_v_c_1    (nr__1) ! (mag) variable-comparison (v-c) b magnitude
      real*4        b_ch_c_1   (nr__1) ! (mag) check-comparison (ch-c) b magnitude
      real*4        y_v_c_1    (nr__1) ! (mag) variable-comparison (v-c) y magnitude
      real*4        y_ch_c_1   (nr__1) ! (mag) check-comparison (ch-c) y magnitude

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

C  Declarations for 'table4.dat'	! Photometry of HR 6967

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

      real*8        HJD_2      (nr__2) ! (d) Heliocentric Julian Date
      real*4        u_v_c_1    (nr__2) ! (mag) variable-comparison (v-c) u magnitude
      real*4        u_ch_c_1   (nr__2) ! (mag) check-comparison (ch-c) u magnitude
      real*4        v_v_c_1    (nr__2) ! (mag) variable-comparison (v-c) v magnitude
      real*4        v_ch_c_1   (nr__2) ! (mag) check-comparison (ch-c) v magnitude
      real*4        b_v_c_1    (nr__2) ! (mag) variable-comparison (v-c) b magnitude
      real*4        b_ch_c_1   (nr__2) ! (mag) check-comparison (ch-c) b magnitude
      real*4        y_v_c_1    (nr__2) ! (mag) variable-comparison (v-c) y magnitude
      real*4        y_ch_c_1   (nr__2) ! (mag) check-comparison (ch-c) y magnitude

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

C  Declarations for 'table5.dat'	! New Photometry of HR 8434

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

      real*8        HJD_3      (nr__3) ! (d) Heliocentric Julian Date
      real*4        u_v_c_1    (nr__3) ! (mag) variable-comparison (v-c) u magnitude
      real*4        u_ch_c_1   (nr__3) ! (mag) check-comparison (ch-c) u magnitude
      real*4        v_v_c_1    (nr__3) ! (mag) variable-comparison (v-c) v magnitude
      real*4        v_ch_c_1   (nr__3) ! (mag) check-comparison (ch-c) v magnitude
      real*4        b_v_c_1    (nr__3) ! (mag) variable-comparison (v-c) b magnitude
      real*4        b_ch_c_1   (nr__3) ! (mag) check-comparison (ch-c) b magnitude
      real*4        y_v_c_1    (nr__3) ! (mag) variable-comparison (v-c) y magnitude
      real*4        y_ch_c_1   (nr__3) ! (mag) check-comparison (ch-c) y magnitude

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

C  Declarations for 'tablea.dat'	! Average photometry

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

      integer*4     Table      (nr__4) ! [2,5] Table number with detailed photometry
      character*9   Name       (nr__4) ! Star name
      character*9   Years      (nr__4) ! (yr) Period of observation
      real*4        u_v_c_1    (nr__4) ! (mag) Variable-comparison (v-c) u magnitude
      real*4        e_u_v_c    (nr__4) ! (mag) rms uncertainty on u(v-c)
      real*4        u_ch_c_1   (nr__4) ! (mag) ? Check-comparison (ch-c) u magnitude
      real*4        e_u_ch_c   (nr__4) ! (mag) ? rms uncertainty on u(ch-c)
      real*4        v_v_c_1    (nr__4) ! (mag) Variable-comparison (v-c) v magnitude
      real*4        e_v_v_c    (nr__4) ! (mag) rms uncertainty on v(v-c)
      real*4        v_ch_c_1   (nr__4) ! (mag) ? Check-comparison (ch-c) v magnitude
      real*4        e_v_ch_c   (nr__4) ! (mag) ? rms uncertainty on (ch-c)
      real*4        b_v_c_1    (nr__4) ! (mag) Variable-comparison (v-c) b magnitude
      real*4        e_b_v_c    (nr__4) ! (mag) rms uncertainty on b(v-c)
      real*4        b_ch_c_1   (nr__4) ! (mag) ? Check-comparison (ch-c) b magnitude
      real*4        e_b_ch_c   (nr__4) ! (mag) ? rms uncertainty on b(ch-c)
      real*4        y_v_c_1    (nr__4) ! (mag) Variable-comparison (v-c) y magnitude
      real*4        e_y_v_c    (nr__4) ! (mag) rms uncertainty on y(v-c)
      real*4        y_ch_c_1   (nr__4) ! (mag) ? Check-comparison (ch-c) y magnitude
      real*4        e_y_ch_c   (nr__4) ! (mag) ? rms uncertainty on y(ch-c)

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

C  Loading file 'table2.dat'	! Photometry of HR 5341

C  Format for file interpretation

    1 format(
     +  F12.4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,89
        read(1,'(A68)')ar__
        read(ar__,1)
     +  HJD(i__),u_v_c(i__),u_ch_c(i__),v_v_c(i__),v_ch_c(i__),
     +  b_v_c(i__),b_ch_c(i__),y_v_c(i__),y_ch_c(i__)
c    ..............Just test output...........
        write(6,1)
     +  HJD(i__),u_v_c(i__),u_ch_c(i__),v_v_c(i__),v_ch_c(i__),
     +  b_v_c(i__),b_ch_c(i__),y_v_c(i__),y_ch_c(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Photometry of HD 142070

C  Format for file interpretation

    2 format(
     +  F12.4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,92
        read(1,'(A68)')ar__1
        read(ar__1,2)
     +  HJD_1(i__),u_v_c_1(i__),u_ch_c_1(i__),v_v_c_1(i__),
     +  v_ch_c_1(i__),b_v_c_1(i__),b_ch_c_1(i__),y_v_c_1(i__),
     +  y_ch_c_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  HJD_1(i__),u_v_c_1(i__),u_ch_c_1(i__),v_v_c_1(i__),
     +  v_ch_c_1(i__),b_v_c_1(i__),b_ch_c_1(i__),y_v_c_1(i__),
     +  y_ch_c_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Photometry of HR 6967

C  Format for file interpretation

    3 format(
     +  F12.4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,76
        read(1,'(A68)')ar__2
        read(ar__2,3)
     +  HJD_2(i__),u_v_c_1(i__),u_ch_c_1(i__),v_v_c_1(i__),
     +  v_ch_c_1(i__),b_v_c_1(i__),b_ch_c_1(i__),y_v_c_1(i__),
     +  y_ch_c_1(i__)
c    ..............Just test output...........
        write(6,3)
     +  HJD_2(i__),u_v_c_1(i__),u_ch_c_1(i__),v_v_c_1(i__),
     +  v_ch_c_1(i__),b_v_c_1(i__),b_ch_c_1(i__),y_v_c_1(i__),
     +  y_ch_c_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! New Photometry of HR 8434

C  Format for file interpretation

    4 format(
     +  F12.4,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,
     +  1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,84
        read(1,'(A68)')ar__3
        read(ar__3,4)
     +  HJD_3(i__),u_v_c_1(i__),u_ch_c_1(i__),v_v_c_1(i__),
     +  v_ch_c_1(i__),b_v_c_1(i__),b_ch_c_1(i__),y_v_c_1(i__),
     +  y_ch_c_1(i__)
c    ..............Just test output...........
        write(6,4)
     +  HJD_3(i__),u_v_c_1(i__),u_ch_c_1(i__),v_v_c_1(i__),
     +  v_ch_c_1(i__),b_v_c_1(i__),b_ch_c_1(i__),y_v_c_1(i__),
     +  y_ch_c_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablea.dat'	! Average photometry

C  Format for file interpretation

    5 format(
     +  I1,1X,A9,1X,A9,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,
     +  F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,1X,F5.3,1X,F6.3,
     +  1X,F5.3,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea.dat')
      write(6,*) '....Loading file: tablea.dat'
      do i__=1,11
        read(1,'(A125)')ar__4
        read(ar__4,5)
     +  Table(i__),Name(i__),Years(i__),u_v_c_1(i__),e_u_v_c(i__),
     +  u_ch_c_1(i__),e_u_ch_c(i__),v_v_c_1(i__),e_v_v_c(i__),
     +  v_ch_c_1(i__),e_v_ch_c(i__),b_v_c_1(i__),e_b_v_c(i__),
     +  b_ch_c_1(i__),e_b_ch_c(i__),y_v_c_1(i__),e_y_v_c(i__),
     +  y_ch_c_1(i__),e_y_ch_c(i__)
        if(ar__4(36:41) .EQ. '') u_ch_c_1(i__) = rNULL__
        if(ar__4(43:47) .EQ. '') e_u_ch_c(i__) = rNULL__
        if(ar__4(62:67) .EQ. '') v_ch_c_1(i__) = rNULL__
        if(ar__4(69:73) .EQ. '') e_v_ch_c(i__) = rNULL__
        if(ar__4(88:93) .EQ. '') b_ch_c_1(i__) = rNULL__
        if(ar__4(95:99) .EQ. '') e_b_ch_c(i__) = rNULL__
        if(ar__4(114:119) .EQ. '') y_ch_c_1(i__) = rNULL__
        if(ar__4(121:125) .EQ. '') e_y_ch_c(i__) = rNULL__
c    ..............Just test output...........
        write(6,5)
     +  Table(i__),Name(i__),Years(i__),u_v_c_1(i__),e_u_v_c(i__),
     +  u_ch_c_1(i__),e_u_ch_c(i__),v_v_c_1(i__),e_v_v_c(i__),
     +  v_ch_c_1(i__),e_v_ch_c(i__),b_v_c_1(i__),e_b_v_c(i__),
     +  b_ch_c_1(i__),e_b_ch_c(i__),y_v_c_1(i__),e_y_v_c(i__),
     +  y_ch_c_1(i__),e_y_ch_c(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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