FORTRAN Generation
(/./ftp/cats/J/A_AS/109/375)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_AS/109/375 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/109/375            Blue stragglers in open clusters      (Ahumada+, 1995)
*================================================================================
*Catalogue of blue stragglers in open clusters
*       Ahumada J., Lapasset E.
*      <Astron. Astrophys. Suppl. Ser. 109, 375 (1995)>
*      =1995A&AS..109..375A      (SIMBAD/NED Reference)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! *Open cluster data

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

C  J2000.0 position composed of: RAh RAm DE- DEd DEm
      real*8        RAdeg       ! (deg) Right Ascension J2000.0
      real*8        DEdeg       ! (deg)     Declination J2000.0
C  ---------------------------------- ! (position vector(s) in degrees)

      character*13  Name        ! Cluster designation
      integer*4     RAh         ! (h) Right ascension J2000.0
      real*4        RAm         ! (min) Right ascension J2000.0
      character*1   DE_         ! Declination sign
      integer*4     DEd         ! (deg) Declination J2000.0
      integer*4     DEm         ! (arcmin) Declination J2000.0
      real*4        E_B_V       ! (mag) ? Reddening
      real*4        v_B_V_0     ! (mag) ? De-reddened turnoff colour
      real*4        log_Age     ! ([yr]) Decimal logarithm of the age in years
      real*4        ApDiam      ! (arcmin) ? Apparent cluster diameter
      integer*4     N2          ! Number of stars on the main sequence to two
*                                   magnitudes below the turnoff
      integer*4     Nbs         ! Number of blue straggler candidates
      character*7   r_Name      ! Photometry source(s)
      character*1   Note        ! [ *] An asterisk indicates a note detailed
*                                       in file notes.dat

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

C  Declarations for 'table2.dat'	! Blue stragglers in open clusters

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

      character*13  Name_1      ! Cluster designation
      character*11  BluStrg     ! Blue straggler designation (according to the
*                                   referenced photometry)
      integer*4     Class       ! Blue straggler classification (following the
*                                   criteria explained in the paper)
      real*4        Vmag        ! (mag) ? V magnitude
      character*1   u_Vmag      ! Uncertainty flag on V
      real*4        B_V         ! (mag) ? B-V colour index
      character*1   u_B_V       ! Uncertainty flag on B-V
      character*1   n_U_B       ! [ d] Note on U-B. A 'd' stands for double
      real*4        U_B         ! (mag) ? U-B colour-index
      character*1   u_U_B       ! Uncertainty flag on U-B
      character*3   Phot        ! *Photometry in which the magnitudes are given.
      real*4        r_R         ! ? Relative radius of the blue straggler
*                                       location
      integer*4     r_Name_1    ! ? Photometry source
      character*1   Note_1      ! [ *] An asterisk indicates a note detailed
*                                       in file "notes.dat"
*Note on Phot: the type of photometry is defined by:
*         pe = photoelectric,
*         pg = photographic,
*        CCD = charge-coupled-device

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

C  Declarations for 'notes.dat'	! Individual notes

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

      character*13  Name_2      ! Cluster name, repeated when several lines
      character*65  Text        ! Text of note

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

C  Declarations for 'refs.dat'	! References

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

      integer*4     RefNo       ! Reference number, repeated when several lines
      character*76  Text_1      ! Reference as an ascii text.

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

C  Loading file 'table1.dat'	! *Open cluster data

C  Format for file interpretation

    1 format(
     +  A13,1X,I2,1X,F4.1,4X,A1,I2,1X,I2,4X,F4.2,3X,F5.2,4X,F4.2,2X,
     +  F5.1,5X,I3,4X,I2,4X,A7,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,399
        read(1,'(A89)')ar__
        read(ar__,1)
     +  Name,RAh,RAm,DE_,DEd,DEm,E_B_V,v_B_V_0,log_Age,ApDiam,N2,Nbs,
     +  r_Name,Note
        if(ar__(36:39) .EQ. '') E_B_V = rNULL__
        if(ar__(43:47) .EQ. '') v_B_V_0 = rNULL__
        if(ar__(58:62) .EQ. '') ApDiam = rNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  Name,RAh,RAm,DE_,DEd,DEm,E_B_V,v_B_V_0,log_Age,ApDiam,N2,Nbs,
     +  r_Name,Note
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Blue stragglers in open clusters

C  Format for file interpretation

    2 format(
     +  A13,1X,A11,1X,I1,4X,F6.3,A1,1X,F6.3,A1,A1,2X,F6.3,A1,4X,A3,3X,
     +  F4.2,4X,I3,4X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,959
        read(1,'(A112)')ar__1
        read(ar__1,2)
     +  Name_1,BluStrg,Class,Vmag,u_Vmag,B_V,u_B_V,n_U_B,U_B,u_U_B,
     +  Phot,r_R,r_Name_1,Note_1
        if(ar__1(32:37) .EQ. '') Vmag = rNULL__
        if(ar__1(40:45) .EQ. '') B_V = rNULL__
        if(ar__1(50:55) .EQ. '') U_B = rNULL__
        if(ar__1(67:70) .EQ. '') r_R = rNULL__
        if(ar__1(75:77) .EQ. '') r_Name_1 = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name_1,BluStrg,Class,Vmag,u_Vmag,B_V,u_B_V,n_U_B,U_B,u_U_B,
     +  Phot,r_R,r_Name_1,Note_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Individual notes

C  Format for file interpretation

    3 format(A13,2X,A65)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,786
        read(1,'(A80)')ar__2
        read(ar__2,3)Name_2,Text
c    ..............Just test output...........
        write(6,3)Name_2,Text
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    4 format(I3,1X,A76)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,389
        read(1,'(A80)')ar__3
        read(ar__3,4)RefNo,Text_1
c    ..............Just test output...........
        write(6,4)RefNo,Text_1
c    .......End.of.Just test output...........
      end do
      close(1)

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