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 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 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        (nr__) ! (d) Heliocentric Julian date
      character*1   Band       (nr__) ! [BV] Band
      real*4        Dmag       (nr__) ! (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      (nr__1) ! (d) Heliocentric Julian date
      character*1   Band_1     (nr__1) ! [BV] Band
      real*4        Dmag_1     (nr__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       (nr__2) ! (yr) Year of observation
      real*4        PhaseV     (nr__2) ! (d) V magnitude phase
      real*4        DVmag      (nr__2) ! (mag) Differential V magnitude (var. - comp.)
      integer*4     o_Vmag     (nr__2) ! Number of observations in Vmag
      real*4        PhaseB     (nr__2) ! (d) ? B magnitude phase
      real*4        DBmag      (nr__2) ! (mag) ? Differential B magnitude
      integer*4     o_Bmag     (nr__2) ! ? 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(i__),Band(i__),Dmag(i__)
c    ..............Just test output...........
        write(6,1)HJD(i__),Band(i__),Dmag(i__)
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(i__),Band_1(i__),Dmag_1(i__)
c    ..............Just test output...........
        write(6,2)HJD_1(i__),Band_1(i__),Dmag_1(i__)
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(i__),PhaseV(i__),DVmag(i__),o_Vmag(i__),PhaseB(i__),
     +  DBmag(i__),o_Bmag(i__)
        if(ar__2(23:28) .EQ. '') PhaseB(i__) = rNULL__
        if(ar__2(30:35) .EQ. '') DBmag(i__) = rNULL__
        if(ar__2(37:38) .EQ. '') o_Bmag(i__) = iNULL__
c    ..............Just test output...........
        write(6,3)
     +  Year(i__),PhaseV(i__),DVmag(i__),o_Vmag(i__),PhaseB(i__),
     +  DBmag(i__),o_Bmag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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