FORTRAN Generation
(/./ftp/cats/J/A_AS/119/1)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_AS/119/1 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 2024-Apr-18
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/119/1        HD 45677 photometry (de Winter+, 1996)
*================================================================================
*The peculiar B[e] star HD 45677. I. Photometric observations.
*      De Winter D., van den Ancker M.E., Perez M.R., Swings J.-P., The P.S.,
*      Johnson S.B., Molster F.J., van Loon J.T.
*    <Astron. Astrophys. Suppl. Ser. 119, 1 (1996)>
*    =1996A&AS..119....1D      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1'	! Walraven photometric data

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

      real*8        HJD         ! (d) Heliocentric julian date
      real*4        Vint        ! (mag) Visual intensity V
      real*4        B_V         ! (mag) Walraven B-V color index
      real*4        B_L         ! (mag) Walraven B-L color index
      real*4        B_U         ! (mag) Walraven B-U color index
      real*4        B_W         ! (mag) Walraven B-W color index
      real*4        Vmag        ! (mag) Johnson V magnitude

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

C  Declarations for 'table2'	! Unpublished and new Stroemgren photometric data

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

      real*8        HJD_1       ! (d) Heliocentric Julian Date
      real*4        ymag        ! (mag) ? Stromgren magnitude y
      real*4        b_y         ! (mag) Stromgren colour b-y
      real*8        m1          ! (mag) Stromgren colour index m1
      real*4        c1          ! (mag) Stromgren colour index c1
      real*4        beta        ! (mag) ? Stromgren beta index

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

C  Declarations for 'table3'	! Unpublished and new UBV(RI)_C observations

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

      real*8        HJD_2       ! (d) Heliocentric Julian Date
      real*4        Vmag_1      ! (mag) Visual magnitude V
      real*4        U_B         ! (mag) ? Johnson colour U-B
      real*4        B_V_1       ! (mag) ? Johnson colour B-V
      real*4        V_R         ! (mag) ? Cousins colour V-R
      real*4        V_I         ! (mag) ? Cousins colour V-I

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

C  Declarations for 'table4'	! Unpublished JHKLM photometry

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

      real*8        HJD_3       ! (d) Heliocentric Julian Date
      real*4        Jmag        ! (mag) Magnitude J
      real*4        Hmag        ! (mag) Magnitude H
      real*4        Kmag        ! (mag) Magnitude K
      real*4        Lmag        ! (mag) Magnitude L
      real*4        Mmag        ! (mag) Magnitude M

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

C  Loading file 'table1'	! Walraven photometric data

C  Format for file interpretation

    1 format(F11.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1')
      write(6,*) '....Loading file: table1'
      do i__=1,17
        read(1,'(A48)')ar__
        read(ar__,1)HJD,Vint,B_V,B_L,B_U,B_W,Vmag
c    ..............Just test output...........
        write(6,1)HJD,Vint,B_V,B_L,B_U,B_W,Vmag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2'	! Unpublished and new Stroemgren photometric data

C  Format for file interpretation

    2 format(F13.5,1X,F6.4,1X,F6.4,1X,F7.4,1X,F6.4,2X,F6.4)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2')
      write(6,*) '....Loading file: table2'
      do i__=1,147
        read(1,'(A50)')ar__1
        read(ar__1,2)HJD_1,ymag,b_y,m1,c1,beta
        if(ar__1(15:20) .EQ. '') ymag = rNULL__
        if(ar__1(45:50) .EQ. '') beta = rNULL__
c    ..............Just test output...........
        write(6,2)HJD_1,ymag,b_y,m1,c1,beta
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3'	! Unpublished and new UBV(RI)_C observations

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3')
      write(6,*) '....Loading file: table3'
      do i__=1,75
        read(1,'(A43)')ar__2
        read(ar__2,3)HJD_2,Vmag_1,U_B,B_V_1,V_R,V_I
        if(ar__2(20:25) .EQ. '') U_B = rNULL__
        if(ar__2(27:31) .EQ. '') B_V_1 = rNULL__
        if(ar__2(33:37) .EQ. '') V_R = rNULL__
        if(ar__2(39:43) .EQ. '') V_I = rNULL__
c    ..............Just test output...........
        write(6,3)HJD_2,Vmag_1,U_B,B_V_1,V_R,V_I
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4'	! Unpublished JHKLM photometry

C  Format for file interpretation

    4 format(F11.3,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4')
      write(6,*) '....Loading file: table4'
      do i__=1,6
        read(1,'(A36)')ar__3
        read(ar__3,4)HJD_3,Jmag,Hmag,Kmag,Lmag,Mmag
c    ..............Just test output...........
        write(6,4)HJD_3,Jmag,Hmag,Kmag,Lmag,Mmag
c    .......End.of.Just test output...........
      end do
      close(1)

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