FORTRAN Generation
(/./ftp/cats/J/A_A/408/611)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/408/611 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-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/A+A/408/611          V436 Persei UBV photometry                 (Janik+, 2003)
*================================================================================
*Search for forced oscillations in binaries.
*IV. The eclipsing binary V436 Per revisited.
*    Janik J., Harmanec P., Lehmann H., Yang S., Bozic H., Ak H., Hadrava P.,
*    Eenens P., Ruzdjak D., Sudar D., Hubeny I., Linnell A.P.
*   <Astron. Astrophys. 408, 611 (2003)>
*   =2003A&A...408..611J
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table4.dat'	! V436 Per (Johnson UBV photometry)

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

      real*8        HJD        (nr__) ! (d) Heliocentric Julian date
      real*4        mag        (nr__) ! (mag) Measured V436 Per magnitude in color band
      real*4        w_mag      (nr__) ! Weight assigned to individual data
      integer*4     r_mag      (nr__) ! Numerical code identifying sources of data,
*                                   in refs.dat file
      character*1   Band       (nr__) ! [UBV] Johnson UBV color

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

C  Declarations for 'refs.dat'	! Numerical code identifying sources of data

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

      integer*4     Code       (nr__1) ! Source code
      character*23  Band_1     (nr__1) ! Band
      character*17  Aut        (nr__1) ! Author's name
      character*19  BibCode    (nr__1) ! BibCode
      character*21  Com        (nr__1) ! Comments

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

C  Loading file 'table4.dat'	! V436 Per (Johnson UBV photometry)

C  Format for file interpretation

    1 format(F12.4,4X,F6.4,5X,F4.2,4X,I2,4X,A1)

C  Effective file loading

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

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

C  Loading file 'refs.dat'	! Numerical code identifying sources of data

C  Format for file interpretation

    2 format(I2,1X,A23,1X,A17,A19,1X,A21)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,17
        read(1,'(A85)')ar__1
        read(ar__1,2)
     +  Code(i__),Band_1(i__),Aut(i__),BibCode(i__),Com(i__)
c    ..............Just test output...........
        write(6,2)
     +  Code(i__),Band_1(i__),Aut(i__),BibCode(i__),Com(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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