FORTRAN Generation
(/./ftp/cats/J/AZh/87/462)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AZh/87/462 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/AZh/87/462        UBV(RI)c light curves of BD+66 1663         (Volkov+, 2010)
*================================================================================
*Physical parameters and orbit of the eclipsing binary BD+66 1663 = GSC 4479 412.
*    Volkov I.M., Volkova N.S., Chochol D.
*   <Astron. Zh. 87, 462 (2010)>
*   =2010AZh....87..462V
*   =2010ARep...54..418V
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Individual U-band measurements

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

      real*8        HJD        (nr__) ! (d) Heliocentric Julian date
      real*4        mag        (nr__) ! (mag) Magnitude
      character*2   Band       (nr__) ! [UBVRcIc ] Band

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

C  Declarations for 'table3.dat'	! Individual B-band measurements

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

      real*8        HJD_1      (nr__1) ! (d) Heliocentric Julian date
      real*4        mag_1      (nr__1) ! (mag) Magnitude
      character*2   Band_1     (nr__1) ! [UBVRcIc ] Band

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

C  Declarations for 'table4.dat'	! Individual V-band measurements

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

      real*8        HJD_2      (nr__2) ! (d) Heliocentric Julian date
      real*4        mag_2      (nr__2) ! (mag) Magnitude
      character*2   Band_2     (nr__2) ! [UBVRcIc ] Band

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

C  Declarations for 'table5.dat'	! Individual RC-band measurements

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

      real*8        HJD_3      (nr__3) ! (d) Heliocentric Julian date
      real*4        mag_3      (nr__3) ! (mag) Magnitude
      character*2   Band_3     (nr__3) ! [UBVRcIc ] Band

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

C  Declarations for 'table6.dat'	! Individual IC-band measurements

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

      real*8        HJD_4      (nr__4) ! (d) Heliocentric Julian date
      real*4        mag_4      (nr__4) ! (mag) Magnitude
      character*2   Band_4     (nr__4) ! [UBVRcIc ] Band

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

C  Declarations for 'table7.dat'	! Magnitudes of field stars

      integer*4 nr__5
      parameter (nr__5=30)	! Number of records
      character*71 ar__5  	! Full-size record

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

      integer*4     RAh        (nr__5) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__5) ! (min) Right ascension (J2000)
      real*4        RAs        (nr__5) ! (s) Right ascension (J2000)
      character*1   Note       (nr__5) ! [ab] Note (1)
      character*1   DE_        (nr__5) ! Declination sign (J2000)
      integer*4     DEd        (nr__5) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__5) ! (arcmin) Declination (J2000)
      real*4        DEs        (nr__5) ! (arcsec) Declination (J2000)
      real*4        Vmag       (nr__5) ! (mag) Johnson V magnitude
      real*4        e_Vmag     (nr__5) ! (mag) rms uncertainty on Vmag
      real*4        U_B        (nr__5) ! (mag) Johnson U-B colour index
      real*4        e_U_B      (nr__5) ! (mag) rms uncertainty on U-B
      real*4        B_V        (nr__5) ! (mag) Johnson B-V colour index
      real*4        e_B_V      (nr__5) ! (mag) rms uncertainty on B-V
      real*4        V_Rc       (nr__5) ! (mag) Johnson-Cousins V-R colour index
      real*4        e_V_Rc     (nr__5) ! (mag) rms uncertainty on V-Rc
      real*4        Rc_Ic      (nr__5) ! (mag) Cousins R-I colour index
      real*4        e_Rc_Ic    (nr__5) ! (mag) rms uncertainty on R-I
*Note (1): Note as follows:
*      a = A double star; the coordinates are for the brightness center in
*          the Rc filter
*      b = A double star, the companion is faint; the coordinates are for
*          the primary component

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

C  Loading file 'table2.dat'	! Individual U-band measurements

C  Format for file interpretation

    1 format(F13.5,1X,F6.3,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,158
        read(1,'(A23)')ar__
        read(ar__,1)HJD(i__),mag(i__),Band(i__)
c    ..............Just test output...........
        write(6,1)HJD(i__),mag(i__),Band(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Individual B-band measurements

C  Format for file interpretation

    2 format(F13.5,1X,F6.3,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,185
        read(1,'(A23)')ar__1
        read(ar__1,2)HJD_1(i__),mag_1(i__),Band_1(i__)
c    ..............Just test output...........
        write(6,2)HJD_1(i__),mag_1(i__),Band_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Individual V-band measurements

C  Format for file interpretation

    3 format(F13.5,1X,F6.3,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,230
        read(1,'(A23)')ar__2
        read(ar__2,3)HJD_2(i__),mag_2(i__),Band_2(i__)
c    ..............Just test output...........
        write(6,3)HJD_2(i__),mag_2(i__),Band_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Individual RC-band measurements

C  Format for file interpretation

    4 format(F13.5,1X,F6.3,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,229
        read(1,'(A23)')ar__3
        read(ar__3,4)HJD_3(i__),mag_3(i__),Band_3(i__)
c    ..............Just test output...........
        write(6,4)HJD_3(i__),mag_3(i__),Band_3(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Individual IC-band measurements

C  Format for file interpretation

    5 format(F13.5,1X,F6.3,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,118
        read(1,'(A23)')ar__4
        read(ar__4,5)HJD_4(i__),mag_4(i__),Band_4(i__)
c    ..............Just test output...........
        write(6,5)HJD_4(i__),mag_4(i__),Band_4(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Magnitudes of field stars

C  Format for file interpretation

    6 format(
     +  I2,1X,I2,1X,F5.2,A1,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,1X,F3.2,1X,
     +  F5.2,1X,F3.2,1X,F4.2,1X,F3.2,1X,F4.2,1X,F3.2,1X,F4.2,1X,F3.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,30
        read(1,'(A71)')ar__5
        read(ar__5,6)
     +  RAh(i__),RAm(i__),RAs(i__),Note(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Vmag(i__),e_Vmag(i__),U_B(i__),e_U_B(i__),
     +  B_V(i__),e_B_V(i__),V_Rc(i__),e_V_Rc(i__),Rc_Ic(i__),
     +  e_Rc_Ic(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,6)
     +  RAh(i__),RAm(i__),RAs(i__),Note(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Vmag(i__),e_Vmag(i__),U_B(i__),e_U_B(i__),
     +  B_V(i__),e_B_V(i__),V_Rc(i__),e_V_Rc(i__),Rc_Ic(i__),
     +  e_Rc_Ic(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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