FORTRAN Generation
(/./ftp/cats/J/A_AS/131/115)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_AS/131/115 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-May-17
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+AS/131/115      BV light curves of AU Ser (Li+ 1998)
*================================================================================
*The variations in light and color curves and possible short period oscillations
*of binary AU Serpentis
*       Li Z.-Y., Ding Y.-R., Zhang Z.-S. Li Y.-I.
*      <Astron. Astrophys. Suppl. Ser. 131, 115 (1998)>
*      =1998A&AS..131..115L      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2a.dat'	! Observations for yellow light

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

      real*8        HJD         ! (d) Heliocentric Julian date
      character*1   Band        ! [BV] Band
      real*4        Dmag        ! (mag) Differential magnitude (var. - comp.) in Band

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

C  Declarations for 'table2b.dat'	! Observations for blue light

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

      real*8        HJD_1       ! (d) Heliocentric Julian date
      character*1   Band_1      ! [BV] Band
      real*4        Dmag_1      ! (mag) Differential magnitude (var. - comp.) in Band

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

C  Declarations for 'table345.dat'	! Normal points of AU Ser in 1991, 1992 and 1995

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

      integer*4     Year        ! (yr) Year of observation
      real*4        PhaseV      ! (d) V magnitude phase
      real*4        DVmag       ! (mag) Differential V magnitude (var. - comp.)
      integer*4     o_Vmag      ! Number of observations in Vmag
      real*4        PhaseB      ! (d) ? B magnitude phase
      real*4        DBmag       ! (mag) ? Differential B magnitude
      integer*4     o_Bmag      ! ? Number of observations in Bmag

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

C  Loading file 'table2a.dat'	! Observations for yellow light

C  Format for file interpretation

    1 format(F12.4,1X,A1,1X,F5.3)

C  Effective file loading

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

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

C  Loading file 'table2b.dat'	! Observations for blue light

C  Format for file interpretation

    2 format(F12.4,1X,A1,1X,F5.3)

C  Effective file loading

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

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

C  Loading file 'table345.dat'	! Normal points of AU Ser in 1991, 1992 and 1995

C  Format for file interpretation

    3 format(I4,1X,F6.4,1X,F6.3,1X,I2,1X,F6.4,1X,F6.3,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table345.dat')
      write(6,*) '....Loading file: table345.dat'
      do i__=1,148
        read(1,'(A38)')ar__2
        read(ar__2,3)Year,PhaseV,DVmag,o_Vmag,PhaseB,DBmag,o_Bmag
        if(ar__2(23:28) .EQ. '') PhaseB = rNULL__
        if(ar__2(30:35) .EQ. '') DBmag = rNULL__
        if(ar__2(37:38) .EQ. '') o_Bmag = iNULL__
c    ..............Just test output...........
        write(6,3)Year,PhaseV,DVmag,o_Vmag,PhaseB,DBmag,o_Bmag
c    .......End.of.Just test output...........
      end do
      close(1)

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