FORTRAN Generation
(/./ftp/cats/J/A_A/528/A148)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/528/A148 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-Mar-28
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/528/A148     uvby{beta} photometry of early type stars    (Handler, 2011)
*================================================================================
*uvby{beta} photometry of early type open cluster and field stars.
*    Handler G.
*   <Astron. Astrophys. 528, A148 (2011)>
*   =2011A&A...528A.148H
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3.dat'	! uvby{beta} photometry of standard stars

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

      character*15  Star        ! Star identification (1)
      integer*4     N           ! Number of uvby measurements
      real*4        Vmag        ! (mag) ?=- V magnitude
      character*1   n_Vmag      ! [*] * for measurement not used (2)
      real*4        b_y         ! (mag) ?=- b-y colour index
      character*1   u_b_y       ! [:] : for measurement outside validity (3)
      character*1   n_b_y       ! [*] * for measurement not used (2)
      real*4        m1          ! (mag) ?=- m1 index
      character*1   u_m1        ! [:] : for measurement outside validity (3)
      character*1   n_m1        ! [*] * for measurement not used (2)
      real*4        c1          ! (mag) ?=- c1 index
      character*1   u_c1        ! [:] : for measurement outside validity (3)
      character*1   n_c1        ! [*] * for measurement not used (2)
      real*4        beta        ! (mag) ?=- H{beta} value
      character*1   u_beta      ! [:] : for measurement outside validity (3)
      character*1   n_beta      ! [*] * for measurement not used (2)
      integer*4     o_beta      ! Number of H{beta} measurements
*Note (1): Open cluster stars are identified with their WEBDA designation.
*Note (2): Measurements not used for computing transformation equations are
*     marked with an asterisk
*Note (3): Measurements outside the validity of the transformation equations
*     are marked with a colon

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

C  Declarations for 'table4.dat'	! uvby{beta} photometry of open cluster target stars

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

      character*15  Star_1      ! Star identification (1)
      integer*4     N_1         ! Number of uvby measurements
      real*4        Vmag_1      ! (mag) ?=- V magnitude
      character*1   n_Vmag_1    ! [*] * for measurement not used (2)
      real*4        b_y_1       ! (mag) ?=- b-y colour index
      character*1   u_b_y_1     ! [:] : for measurement outside validity (3)
      character*1   n_b_y_1     ! [*] * for measurement not used (2)
      real*4        m1_1        ! (mag) ?=- m1 index
      character*1   u_m1_1      ! [:] : for measurement outside validity (3)
      character*1   n_m1_1      ! [*] * for measurement not used (2)
      real*4        c1_1        ! (mag) ?=- c1 index
      character*1   u_c1_1      ! [:] : for measurement outside validity (3)
      character*1   n_c1_1      ! [*] * for measurement not used (2)
      real*4        beta_1      ! (mag) ?=- H{beta} value
      character*1   u_beta_1    ! [:] : for measurement outside validity (3)
      character*1   n_beta_1    ! [*] * for measurement not used (2)
      integer*4     o_beta_1    ! Number of H{beta} measurements
*Note (1): Open cluster stars are identified with their WEBDA designation.
*Note (2): Measurements not used for computing transformation equations are
*     marked with an asterisk
*Note (3): Measurements outside the validity of the transformation equations
*     are marked with a colon

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

C  Declarations for 'table5.dat'	! uvby{beta} photometry of known {beta} Cephei and
                              other target stars

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

      character*15  Star_2      ! Star identification (1)
      integer*4     N_2         ! Number of uvby measurements
      real*4        Vmag_2      ! (mag) ?=- V magnitude
      character*1   n_Vmag_2    ! [*] * for measurement not used (2)
      real*4        b_y_2       ! (mag) ?=- b-y colour index
      character*1   u_b_y_2     ! [:] : for measurement outside validity (3)
      character*1   n_b_y_2     ! [*] * for measurement not used (2)
      real*4        m1_2        ! (mag) ?=- m1 index
      character*1   u_m1_2      ! [:] : for measurement outside validity (3)
      character*1   n_m1_2      ! [*] * for measurement not used (2)
      real*4        c1_2        ! (mag) ?=- c1 index
      character*1   u_c1_2      ! [:] : for measurement outside validity (3)
      character*1   n_c1_2      ! [*] * for measurement not used (2)
      real*4        beta_2      ! (mag) ?=- H{beta} value
      character*1   u_beta_2    ! [:] : for measurement outside validity (3)
      character*1   n_beta_2    ! [*] * for measurement not used (2)
      integer*4     o_beta_2    ! Number of H{beta} measurements
*Note (1): Open cluster stars are identified with their WEBDA designation.
*Note (2): Measurements not used for computing transformation equations are
*     marked with an asterisk
*Note (3): Measurements outside the validity of the transformation equations
*     are marked with a colon

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

C  Declarations for 'table6.dat'	! uvby{beta} photometry of early-type stars
                              in the Kepler field

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

      character*15  Star_3      ! Star identification (1)
      integer*4     N_3         ! Number of uvby measurements
      real*4        Vmag_3      ! (mag) ?=- V magnitude
      character*1   n_Vmag_3    ! [*] * for measurement not used (2)
      real*4        b_y_3       ! (mag) ?=- b-y colour index
      character*1   u_b_y_3     ! [:] : for measurement outside validity (3)
      character*1   n_b_y_3     ! [*] * for measurement not used (2)
      real*4        m1_3        ! (mag) ?=- m1 index
      character*1   u_m1_3      ! [:] : for measurement outside validity (3)
      character*1   n_m1_3      ! [*] * for measurement not used (2)
      real*4        c1_3        ! (mag) ?=- c1 index
      character*1   u_c1_3      ! [:] : for measurement outside validity (3)
      character*1   n_c1_3      ! [*] * for measurement not used (2)
      real*4        beta_3      ! (mag) ?=- H{beta} value
      character*1   u_beta_3    ! [:] : for measurement outside validity (3)
      character*1   n_beta_3    ! [*] * for measurement not used (2)
      integer*4     o_beta_3    ! Number of H{beta} measurements
*Note (1): Open cluster stars are identified with their WEBDA designation.
*Note (2): Measurements not used for computing transformation equations are
*     marked with an asterisk
*Note (3): Measurements outside the validity of the transformation equations
*     are marked with a colon

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

C  Loading file 'table3.dat'	! uvby{beta} photometry of standard stars

C  Format for file interpretation

    1 format(
     +  A15,1X,I1,2X,F6.3,A1,1X,F6.3,A1,A1,1X,F6.3,A1,A1,F6.3,A1,A1,
     +  1X,F5.3,A1,A1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,117
        read(1,'(A62)')ar__
        read(ar__,1)
     +  Star,N,Vmag,n_Vmag,b_y,u_b_y,n_b_y,m1,u_m1,n_m1,c1,u_c1,n_c1,
     +  beta,u_beta,n_beta,o_beta
        if (idig(ar__(20:25)).EQ.0) Vmag =  rNULL__
        if (idig(ar__(28:33)).EQ.0) b_y =  rNULL__
        if (idig(ar__(37:42)).EQ.0) m1 =  rNULL__
        if (idig(ar__(45:50)).EQ.0) c1 =  rNULL__
        if (idig(ar__(54:58)).EQ.0) beta =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Star,N,Vmag,n_Vmag,b_y,u_b_y,n_b_y,m1,u_m1,n_m1,c1,u_c1,n_c1,
     +  beta,u_beta,n_beta,o_beta
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! uvby{beta} photometry of open cluster target stars

C  Format for file interpretation

    2 format(
     +  A15,1X,I1,2X,F6.3,A1,1X,F6.3,A1,A1,1X,F6.3,A1,A1,F6.3,A1,A1,
     +  1X,F5.3,A1,A1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,107
        read(1,'(A62)')ar__1
        read(ar__1,2)
     +  Star_1,N_1,Vmag_1,n_Vmag_1,b_y_1,u_b_y_1,n_b_y_1,m1_1,u_m1_1,
     +  n_m1_1,c1_1,u_c1_1,n_c1_1,beta_1,u_beta_1,n_beta_1,o_beta_1
        if (idig(ar__1(20:25)).EQ.0) Vmag_1 =  rNULL__
        if (idig(ar__1(28:33)).EQ.0) b_y_1 =  rNULL__
        if (idig(ar__1(37:42)).EQ.0) m1_1 =  rNULL__
        if (idig(ar__1(45:50)).EQ.0) c1_1 =  rNULL__
        if (idig(ar__1(54:58)).EQ.0) beta_1 =  rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Star_1,N_1,Vmag_1,n_Vmag_1,b_y_1,u_b_y_1,n_b_y_1,m1_1,u_m1_1,
     +  n_m1_1,c1_1,u_c1_1,n_c1_1,beta_1,u_beta_1,n_beta_1,o_beta_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! uvby{beta} photometry of known {beta} Cephei and
*                              other target stars

C  Format for file interpretation

    3 format(
     +  A15,1X,I1,2X,F6.3,A1,1X,F6.3,A1,A1,1X,F6.3,A1,A1,F6.3,A1,A1,
     +  1X,F5.3,A1,A1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,19
        read(1,'(A62)')ar__2
        read(ar__2,3)
     +  Star_2,N_2,Vmag_2,n_Vmag_2,b_y_2,u_b_y_2,n_b_y_2,m1_2,u_m1_2,
     +  n_m1_2,c1_2,u_c1_2,n_c1_2,beta_2,u_beta_2,n_beta_2,o_beta_2
        if (idig(ar__2(20:25)).EQ.0) Vmag_2 =  rNULL__
        if (idig(ar__2(28:33)).EQ.0) b_y_2 =  rNULL__
        if (idig(ar__2(37:42)).EQ.0) m1_2 =  rNULL__
        if (idig(ar__2(45:50)).EQ.0) c1_2 =  rNULL__
        if (idig(ar__2(54:58)).EQ.0) beta_2 =  rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Star_2,N_2,Vmag_2,n_Vmag_2,b_y_2,u_b_y_2,n_b_y_2,m1_2,u_m1_2,
     +  n_m1_2,c1_2,u_c1_2,n_c1_2,beta_2,u_beta_2,n_beta_2,o_beta_2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! uvby{beta} photometry of early-type stars
*                              in the Kepler field

C  Format for file interpretation

    4 format(
     +  A15,1X,I1,2X,F6.3,A1,1X,F6.3,A1,A1,1X,F6.3,A1,A1,F6.3,A1,A1,
     +  1X,F5.3,A1,A1,1X,I1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,42
        read(1,'(A62)')ar__3
        read(ar__3,4)
     +  Star_3,N_3,Vmag_3,n_Vmag_3,b_y_3,u_b_y_3,n_b_y_3,m1_3,u_m1_3,
     +  n_m1_3,c1_3,u_c1_3,n_c1_3,beta_3,u_beta_3,n_beta_3,o_beta_3
        if (idig(ar__3(20:25)).EQ.0) Vmag_3 =  rNULL__
        if (idig(ar__3(28:33)).EQ.0) b_y_3 =  rNULL__
        if (idig(ar__3(37:42)).EQ.0) m1_3 =  rNULL__
        if (idig(ar__3(45:50)).EQ.0) c1_3 =  rNULL__
        if (idig(ar__3(54:58)).EQ.0) beta_3 =  rNULL__
c    ..............Just test output...........
        write(6,4)
     +  Star_3,N_3,Vmag_3,n_Vmag_3,b_y_3,u_b_y_3,n_b_y_3,m1_3,u_m1_3,
     +  n_m1_3,c1_3,u_c1_3,n_c1_3,beta_3,u_beta_3,n_beta_3,o_beta_3
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end