FORTRAN Generation
(/./ftp/cats/J/BaltA/14/41)

Conversion of standardized ReadMe file for file /./ftp/cats/J/BaltA/14/41 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/BaltA/14/41     BV(RI)C photometry of 4 S-type AGB      (Adelman+, 2005)
*================================================================================
*BVRI photometry of the S-type asymptotic branch giant stars
*RS Cnc, ST Her, OP Her, and HR Peg.
*    Adelman S.J., Dennis J.W.III
*   <Baltic Astron., 14, 41 (2005)>
*   =2005BaltA..14...41A
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Photometry of RS Cnc

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

      real*8        HJD        (nr__) ! (d) Heliocentric Julian Date
      real*4        B_v_c      (nr__) ! (mag) variable-comparison (v-c) Johnson B magnitude
      real*4        B_ch_c     (nr__) ! (mag) check-comparison (ch-c) Johnson B magnitude
      real*4        V_v_c      (nr__) ! (mag) variable-comparison (v-c) Johnson V magnitude
      real*4        V_ch_c     (nr__) ! (mag) check-comparison (ch-c) Johnson V magnitude
      real*4        Rc_v_c     (nr__) ! (mag) variable-comparison (v-c) Cousins R magnitude
      real*4        Rc_ch_c    (nr__) ! (mag) check-comparison (ch-c) Cousins R magnitude
      real*4        Ic_v_c     (nr__) ! (mag) variable-comparison (v-c) Cousins I magnitude
      real*4        Ic_ch_c    (nr__) ! (mag) check-comparison (ch-c) Cousins I magnitude

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

C  Declarations for 'table4.dat'	! Photometry of OP Her

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

      real*8        HJD_1      (nr__1) ! (d) Heliocentric Julian Date
      real*4        B_v_c_1    (nr__1) ! (mag) variable-comparison (v-c) Johnson B magnitude
      real*4        B_ch_c_1   (nr__1) ! (mag) check-comparison (ch-c) Johnson B magnitude
      real*4        V_v_c_1    (nr__1) ! (mag) variable-comparison (v-c) Johnson V magnitude
      real*4        V_ch_c_1   (nr__1) ! (mag) check-comparison (ch-c) Johnson V magnitude
      real*4        Rc_v_c_1   (nr__1) ! (mag) variable-comparison (v-c) Cousins R magnitude
      real*4        Rc_ch_c_1  (nr__1) ! (mag) check-comparison (ch-c) Cousins R magnitude
      real*4        Ic_v_c_1   (nr__1) ! (mag) variable-comparison (v-c) Cousins I magnitude
      real*4        Ic_ch_c_1  (nr__1) ! (mag) check-comparison (ch-c) Cousins I magnitude

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

C  Declarations for 'table6.dat'	! Photometry of ST Her

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

      real*8        HJD_2      (nr__2) ! (d) Heliocentric Julian Date
      real*4        B_v_c_1    (nr__2) ! (mag) variable-comparison (v-c) Johnson B magnitude
      real*4        B_ch_c_1   (nr__2) ! (mag) check-comparison (ch-c) Johnson B magnitude
      real*4        V_v_c_1    (nr__2) ! (mag) variable-comparison (v-c) Johnson V magnitude
      real*4        V_ch_c_1   (nr__2) ! (mag) check-comparison (ch-c) Johnson V magnitude
      real*4        Rc_v_c_1   (nr__2) ! (mag) variable-comparison (v-c) Cousins R magnitude
      real*4        Rc_ch_c_1  (nr__2) ! (mag) check-comparison (ch-c) Cousins R magnitude
      real*4        Ic_v_c_1   (nr__2) ! (mag) variable-comparison (v-c) Cousins I magnitude
      real*4        Ic_ch_c_1  (nr__2) ! (mag) check-comparison (ch-c) Cousins I magnitude

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

C  Declarations for 'table8.dat'	! Photometry of HR Peg

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

      real*8        HJD_3      (nr__3) ! (d) Heliocentric Julian Date
      real*4        B_v_c_1    (nr__3) ! (mag) variable-comparison (v-c) Johnson B magnitude
      real*4        B_ch_c_1   (nr__3) ! (mag) check-comparison (ch-c) Johnson B magnitude
      real*4        V_v_c_1    (nr__3) ! (mag) variable-comparison (v-c) Johnson V magnitude
      real*4        V_ch_c_1   (nr__3) ! (mag) check-comparison (ch-c) Johnson V magnitude
      real*4        Rc_v_c_1   (nr__3) ! (mag) variable-comparison (v-c) Cousins R magnitude
      real*4        Rc_ch_c_1  (nr__3) ! (mag) check-comparison (ch-c) Cousins R magnitude
      real*4        Ic_v_c_1   (nr__3) ! (mag) variable-comparison (v-c) Cousins I magnitude
      real*4        Ic_ch_c_1  (nr__3) ! (mag) check-comparison (ch-c) Cousins I magnitude

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

C  Declarations for 'tablea.dat'	! Average photometry

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

      integer*4     Table      (nr__4) ! [2-8] Table number with detailed photometry
      character*6   Name       (nr__4) ! Star name
      character*9   Years      (nr__4) ! Period of observation
      real*4        Bmag1      (nr__4) ! (mag) Variable-comparison (v-c) Johnson B magnitude
      real*4        e_Bmag1    (nr__4) ! (mag) rms uncertainty on Bmag1
      real*4        Bmag2      (nr__4) ! (mag) Check-comparison (ch-c) Johnson B magnitude
      real*4        e_Bmag2    (nr__4) ! (mag) rms uncertainty on Bmag2
      real*4        Vmag1      (nr__4) ! (mag) Variable-comparison (v-c) Johnson V magnitude
      real*4        e_Vmag1    (nr__4) ! (mag) rms uncertainty on Vmag1
      real*4        Vmag2      (nr__4) ! (mag) Check-comparison (ch-c) Johnson V magnitude
      real*4        e_Vmag2    (nr__4) ! (mag) rms uncertainty on Vmag2
      real*4        Rcmag1     (nr__4) ! (mag) Variable-comparison (v-c) Cousins R magnitude
      real*4        e_Rcmag1   (nr__4) ! (mag) rms uncertainty on Rcmag1
      real*4        Rcmag2     (nr__4) ! (mag) Check-comparison (ch-c) Cousins R magnitude
      real*4        e_Rcmag2   (nr__4) ! (mag) rms uncertainty on Rcmag2
      real*4        Icmag1     (nr__4) ! (mag) Variable-comparison (v-c) Cousins I magnitude
      real*4        e_Icmag1   (nr__4) ! (mag) rms uncertainty on Icmag1
      real*4        Icmag2     (nr__4) ! (mag) Check-comparison (ch-c) Cousins I magnitude
      real*4        e_Icmag2   (nr__4) ! (mag) rms uncertainty on Icmag2

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

C  Loading file 'table2.dat'	! Photometry of RS Cnc

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,215
        read(1,'(A68)')ar__
        read(ar__,1)
     +  HJD(i__),B_v_c(i__),B_ch_c(i__),V_v_c(i__),V_ch_c(i__),
     +  Rc_v_c(i__),Rc_ch_c(i__),Ic_v_c(i__),Ic_ch_c(i__)
c    ..............Just test output...........
        write(6,1)
     +  HJD(i__),B_v_c(i__),B_ch_c(i__),V_v_c(i__),V_ch_c(i__),
     +  Rc_v_c(i__),Rc_ch_c(i__),Ic_v_c(i__),Ic_ch_c(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Photometry of OP Her

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=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,172
        read(1,'(A68)')ar__1
        read(ar__1,2)
     +  HJD_1(i__),B_v_c_1(i__),B_ch_c_1(i__),V_v_c_1(i__),
     +  V_ch_c_1(i__),Rc_v_c_1(i__),Rc_ch_c_1(i__),Ic_v_c_1(i__),
     +  Ic_ch_c_1(i__)
c    ..............Just test output...........
        write(6,2)
     +  HJD_1(i__),B_v_c_1(i__),B_ch_c_1(i__),V_v_c_1(i__),
     +  V_ch_c_1(i__),Rc_v_c_1(i__),Rc_ch_c_1(i__),Ic_v_c_1(i__),
     +  Ic_ch_c_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Photometry of ST Her

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=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,98
        read(1,'(A68)')ar__2
        read(ar__2,3)
     +  HJD_2(i__),B_v_c_1(i__),B_ch_c_1(i__),V_v_c_1(i__),
     +  V_ch_c_1(i__),Rc_v_c_1(i__),Rc_ch_c_1(i__),Ic_v_c_1(i__),
     +  Ic_ch_c_1(i__)
c    ..............Just test output...........
        write(6,3)
     +  HJD_2(i__),B_v_c_1(i__),B_ch_c_1(i__),V_v_c_1(i__),
     +  V_ch_c_1(i__),Rc_v_c_1(i__),Rc_ch_c_1(i__),Ic_v_c_1(i__),
     +  Ic_ch_c_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table8.dat'	! Photometry of HR Peg

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=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,188
        read(1,'(A68)')ar__3
        read(ar__3,4)
     +  HJD_3(i__),B_v_c_1(i__),B_ch_c_1(i__),V_v_c_1(i__),
     +  V_ch_c_1(i__),Rc_v_c_1(i__),Rc_ch_c_1(i__),Ic_v_c_1(i__),
     +  Ic_ch_c_1(i__)
c    ..............Just test output...........
        write(6,4)
     +  HJD_3(i__),B_v_c_1(i__),B_ch_c_1(i__),V_v_c_1(i__),
     +  V_ch_c_1(i__),Rc_v_c_1(i__),Rc_ch_c_1(i__),Ic_v_c_1(i__),
     +  Ic_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,A6,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,16
        read(1,'(A122)')ar__4
        read(ar__4,5)
     +  Table(i__),Name(i__),Years(i__),Bmag1(i__),e_Bmag1(i__),
     +  Bmag2(i__),e_Bmag2(i__),Vmag1(i__),e_Vmag1(i__),Vmag2(i__),
     +  e_Vmag2(i__),Rcmag1(i__),e_Rcmag1(i__),Rcmag2(i__),
     +  e_Rcmag2(i__),Icmag1(i__),e_Icmag1(i__),Icmag2(i__),
     +  e_Icmag2(i__)
c    ..............Just test output...........
        write(6,5)
     +  Table(i__),Name(i__),Years(i__),Bmag1(i__),e_Bmag1(i__),
     +  Bmag2(i__),e_Bmag2(i__),Vmag1(i__),e_Vmag1(i__),Vmag2(i__),
     +  e_Vmag2(i__),Rcmag1(i__),e_Rcmag1(i__),Rcmag2(i__),
     +  e_Rcmag2(i__),Icmag1(i__),e_Icmag1(i__),Icmag2(i__),
     +  e_Icmag2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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