FORTRAN Generation
(/./ftp/cats/J/AJ/158/193)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/158/193 into FORTRAN code for reading data files line by line.

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 2026-Aug-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/158/193      Photometric data of V582 Lyr and V1016 Oph      (Cheng+, 2019)
*================================================================================
*Photometric and spectroscopic studies of V582 Lyr and V1016 Oph.
*    Cheng Y., Zhang L.-Y., Han X.L., Long L., Lu H., Yue Q., Jiang L.
*    <Astron. J., 158, 193 (2019)>
*    =2019AJ....158..193C    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Original photometric data of V582 Lyr observed
                              on 2016 July 4 and V1016 Oph observed on 2018
                              April 23, 27 and May 3

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

      character*9   ID          ! Object identifier (V582 Lyr or V1016 Oph)
      real*8        HJD_B       ! (d) ? Heliocentric Julian Date of B band observation
      real*4        DBmag       ! (mag) [-1.127/1.839]? Differential B band magnitude
      real*8        HJD_V       ! (d) ? Heliocentric Julian Date of V band observation
      real*4        DVmag       ! (mag) [-2.513/1.383]? Differential V band magnitude
      real*8        HJD_R       ! (d) ? Heliocentric Julian Date of R band observation
      real*4        DRmag       ! (mag) [-0.236/1.002]? Differential R band magnitude
      real*8        HJD_I       ! (d) ? Heliocentric Julian Date of I band observation
      real*4        DImag       ! (mag) [-0.633/0.583]? Differential I band magnitude

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

C  Declarations for 'table5.dat'	! Minimum times and their relevant parameters
                              of V582 Lyr and V1016 Oph

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

      character*9   ID_1        ! Object identifier (V582 Lyr or V1016 Oph)
      real*8        HJD         ! (d) [46907.542/58241.876] Heliocentric Julian Date;
*                                 HJD-2400000
      real*4        e_HJD       ! (d) [0.0/0.0143]? Uncertainty in HJD
      character*3   Min         ! Minimum type (primary or secondary)
      character*3   Type        ! Observation type (1)
      real*8        Cycle       ! [-3782/24587.5] Cycle number
      real*8        v_O_C_I     ! [-0.0333/0.0194] The (O-C)I values of linear fit
*                                 residuals
      real*8        v_O_C_II    ! [-0.0239/0.0101] The (O-C)II values of
*                                 polynomial fit residuals
      integer*4     Ref         ! [1/27] Reference code (2)
*Note (1): Observation type as follows:
*  CCD = Charge-coupled device;
*  vis = Visual observation.
*Note (2): Reference as follows:
*   1 = Paschke & Brat (2006OEJV...23...13P);
*   2 = Blattler & Diethelm (2000IBVS.4985....1B);
*   3 = Billings et al. (2001IBVS.5029....1B);
*   4 = Brot L et al. 2007 (2007OEJV...74....1B);
*   5 = Diethelm (2003, J/other/IBVS/5438);
*   6 = Krajci (2005, J/other/IBVS/5592);
*   7 = Diethelm (2004, J/other/IBVS/5543);
*   8 = Nelson 2007 (2007IBVS.5760....1N);
*   9 = Diethelm 2007a (2007IBVS.5781....1D);
*  10 = Diethelm 2007b (2007IBVS.5837....1D);;
*  11 = Conroy et al., (2014, J/AJ/147/45);
*  12 = Diethelm 2010a (2010IBVS.5920....1D);
*  13 = Nelson 2011 (2011IBVS.5966....1N);
*  14 = Diethelm 2010b (2010IBVS.5945....1D);
*  15 = Hubscher et al. 2012 (2012IBVS.6010....1H);
*  16 = Diethelm 2012 (2012IBVS.6029....1D);
*  17 = Lampens et al. 2017 (2017IBVS.6230....1L);
*  18 = Hubscher et al. 2017 (2017IBVS.6196....1H);
*  19 = Our paper;
*  20 = Diethelm 2005 (2005IBVS.5653....1D);
*  21 = Krajci 2006 (2006IBVS.5690....1K);
*  22 = Paschke 2009 (2009OEJV..116....1P);
*  23 = Diethelm 2009 (2009IBVS.5894....1D);
*  24 = Paschke 2012 (2012OEJV..142....1P);
*  25 = Diethelm 2011 (2011IBVS.5992....1D);
*  26 = Diethelm 2012 (2012IBVS.6029....1D);
*  27 = Paschke 2013 (2013OEJV..155....1P).

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

C  Loading file 'table2.dat'	! Original photometric data of V582 Lyr observed
*                              on 2016 July 4 and V1016 Oph observed on 2018
*                              April 23, 27 and May 3

C  Format for file interpretation

    1 format(
     +  A9,1X,F16.8,1X,F6.3,1X,F16.8,1X,F6.3,1X,F16.8,1X,F6.3,1X,
     +  F16.8,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,356
        read(1,'(A105)')ar__
        read(ar__,1)
     +  ID,HJD_B,DBmag,HJD_V,DVmag,HJD_R,DRmag,HJD_I,DImag
        if(ar__(11:26) .EQ. '') HJD_B = rNULL__
        if(ar__(28:33) .EQ. '') DBmag = rNULL__
        if(ar__(35:50) .EQ. '') HJD_V = rNULL__
        if(ar__(52:57) .EQ. '') DVmag = rNULL__
        if(ar__(59:74) .EQ. '') HJD_R = rNULL__
        if(ar__(76:81) .EQ. '') DRmag = rNULL__
        if(ar__(83:98) .EQ. '') HJD_I = rNULL__
        if(ar__(100:105) .EQ. '') DImag = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  ID,HJD_B,DBmag,HJD_V,DVmag,HJD_R,DRmag,HJD_I,DImag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Minimum times and their relevant parameters
*                              of V582 Lyr and V1016 Oph

C  Format for file interpretation

    2 format(
     +  A9,1X,F10.4,1X,F6.4,1X,A3,1X,A3,1X,F7.1,1X,F7.4,1X,F7.4,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,3107
        read(1,'(A63)')ar__1
        read(ar__1,2)
     +  ID_1,HJD,e_HJD,Min,Type,Cycle,v_O_C_I,v_O_C_II,Ref
        if(ar__1(22:27) .EQ. '') e_HJD = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  ID_1,HJD,e_HJD,Min,Type,Cycle,v_O_C_I,v_O_C_II,Ref
c    .......End.of.Just test output...........
      end do
      close(1)

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