FORTRAN Generation
(/./ftp/cats/J/A_A/373/625)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/373/625 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 2024-Apr-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/373/625      uvby{beta} photometry of lambda Bootis stars (Paunzen+, 2001)
*================================================================================
*A spectroscopic survey for lambda Bootis stars. II. The observational data.
*    Paunzen E., Duffee B., Heiter U., Kuschnig R., Weiss W.W.
*   <Astron. Astrophys. 373, 625 (2001)>
*   =2001A&A...373..625P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Observed program stars in the Galactic field

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

      character*10  Name       (nr__) ! HD (Cat. <III/135>) or BD (Cat. <I/122>) number
      integer*4     HR         (nr__) ! ? HR (Cat. <V/50>) number
      integer*4     HIP        (nr__) ! ? HIP (Cat. <I/239>) number
      real*4        Vmag       (nr__) ! (mag) V magnitude
      real*4        b_y        (nr__) ! (mag) ? b-y colour index
      real*4        m1         (nr__) ! (mag) ? m1 index
      real*4        c1         (nr__) ! (mag) ? c1 index
      real*4        beta       (nr__) ! (mag) ? beta index
      character*22  SpType     (nr__) ! Spectral classification
      character*1   l_vsini    (nr__) ! Limit flag on vsini
      integer*4     vsini      (nr__) ! (km/s) ? vsini from the literature
      character*1   u_vsini    (nr__) ! Uncertainty flag on vsini
      character*9   ID         (nr__) ! Night(s) in which the star was observed

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

C  Loading file 'table2.dat'	! Observed program stars in the Galactic field

C  Format for file interpretation

    1 format(
     +  A10,I4,1X,I6,1X,F5.2,1X,F6.3,1X,F6.3,2X,F5.3,2X,F5.3,1X,A22,
     +  A1,I3,A1,1X,A9)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,652
        read(1,'(A93)')ar__
        read(ar__,1)
     +  Name(i__),HR(i__),HIP(i__),Vmag(i__),b_y(i__),m1(i__),c1(i__),
     +  beta(i__),SpType(i__),l_vsini(i__),vsini(i__),u_vsini(i__),
     +  ID(i__)
        if(ar__(11:14) .EQ. '') HR(i__) = iNULL__
        if(ar__(16:21) .EQ. '') HIP(i__) = iNULL__
        if(ar__(29:34) .EQ. '') b_y(i__) = rNULL__
        if(ar__(36:41) .EQ. '') m1(i__) = rNULL__
        if(ar__(44:48) .EQ. '') c1(i__) = rNULL__
        if(ar__(51:55) .EQ. '') beta(i__) = rNULL__
        if(ar__(80:82) .EQ. '') vsini(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),HR(i__),HIP(i__),Vmag(i__),b_y(i__),m1(i__),c1(i__),
     +  beta(i__),SpType(i__),l_vsini(i__),vsini(i__),u_vsini(i__),
     +  ID(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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