FORTRAN Generation
(/./ftp/cats/J/A_A/457/265)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/457/265 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 2026-Jun-08
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/457/265       The VLT-FLAMES Survey of Massive Stars   (Dufton+, 2006)
*================================================================================
*The VLT-FLAMES Survey of Massive Stars:
*Stellar parameters and rotational velocities in NGC 3293, NGC 4755 and NGC 6611.
*    Dufton P.L., Smartt S.J., Lee J.K, Ryans R.S.I., Hunter I., Evans C.J.,
*    Herrero A., Trundle C., Lennon D.J., Irwin M.J., Kaufer A.
*   <Astron. Astrophys. 457, 265 (2006)>
*   =2006A&A...457..265D
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table7.dat'	! Details of NGC 3293 objects

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

      character*8   Name        ! Star Name (1)
      character*1   f_Name      ! [*] *: stars lie outside the criteria for
*                                           cluster membership
      real*4        Vmag        ! (mag) V magnitude
      real*4        B_V         ! B-V colour index
      character*14  SpType      ! MK spectral type
      integer*4     Teff        ! (K) ? Effective Temperature
      real*4        logg        ! ([cm/s2]) ? logarithmic surface gravity
      character*1   u_logg      ! Uncertainty flag on logg (2)
      character*3   Method      ! Methodology (3)
      integer*4     vsini       ! (km/s) Projected rotational velocity
      character*1   u_vsini     ! Uncertainty flag on vsini (2)
      real*4        E_B_V       ! (mag) ? E(B-V) reddening
      real*4        logL        ! ([solLum]) ? logarithmic luminosity
      real*4        Mass        ! (solMass) ?=- Mass
      integer*4     RV          ! (km/s) ? Radial velocity
      character*1   u_RV        ! Uncertainty flag on vsini (2)
      real*4        Dist        ! (arcmin) Radial distance from cluster center
*Note (1): Stars, NNNN-NNN are identified in Simbad as Cl* NGC NNN ESL NNN.
*Note (2): A colon indicates additional uncertainty
*Note (3): The specific method used to determine the atmospheric parameters
*          are designated as follows:
*     He = from neutral helium and hydrogen equivalent widths
*    He+ = from ionized helium
*     Si = Si III/Si IV ionization equilibrium and hydrogen line profiles
*      A = effective temperature adopted
*      I = effective temperature interpolated

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

C  Declarations for 'table8.dat'	! Details of NGC 4755 objects

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

      character*8   Name_1      ! Star Name (1)
      character*1   f_Name_1    ! [*] *: stars lie outside the criteria for
*                                           cluster membership
      real*4        Vmag_1      ! (mag) V magnitude
      real*4        B_V_1       ! B-V colour index
      character*14  SpType_1    ! MK spectral type
      integer*4     Teff_1      ! (K) ? Effective Temperature
      real*4        logg_1      ! ([cm/s2]) ? logarithmic surface gravity
      character*1   u_logg_1    ! Uncertainty flag on logg (2)
      character*3   Method_1    ! Methodology (3)
      integer*4     vsini_1     ! (km/s) Projected rotational velocity
      character*1   u_vsini_1   ! Uncertainty flag on vsini (2)
      real*4        E_B_V_1     ! (mag) ? E(B-V) reddening
      real*4        logL_1      ! ([solLum]) ? logarithmic luminosity
      real*4        Mass_1      ! (solMass) ?=- Mass
      integer*4     RV_1        ! (km/s) ? Radial velocity
      character*1   u_RV_1      ! Uncertainty flag on vsini (2)
      real*4        Dist_1      ! (arcmin) Radial distance from cluster center
*Note (1): Stars, NNNN-NNN are identified in Simbad as Cl* NGC NNN ESL NNN.
*Note (2): A colon indicates additional uncertainty
*Note (3): The specific method used to determine the atmospheric parameters
*          are designated as follows:
*     He = from neutral helium and hydrogen equivalent widths
*    He+ = from ionized helium
*     Si = Si III/Si IV ionization equilibrium and hydrogen line profiles
*      A = effective temperature adopted
*      I = effective temperature interpolated

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

C  Declarations for 'table9.dat'	! Details of NGC 6611 objects

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

      character*8   Name_2      ! Star Name (1)
      character*1   f_Name_2    ! [*] *: stars lie outside the criteria for
*                                           cluster membership
      real*4        Vmag_2      ! (mag) V magnitude
      real*4        B_V_2       ! B-V colour index
      character*14  SpType_2    ! MK spectral type
      integer*4     Teff_2      ! (K) ? Effective Temperature
      real*4        logg_2      ! ([cm/s2]) ? logarithmic surface gravity
      character*1   u_logg_2    ! Uncertainty flag on logg (2)
      character*3   Method_2    ! Methodology (3)
      integer*4     vsini_2     ! (km/s) Projected rotational velocity
      character*1   u_vsini_2   ! Uncertainty flag on vsini (2)
      real*4        E_B_V_1     ! (mag) ? E(B-V) reddening
      real*4        logL_2      ! ([solLum]) ? logarithmic luminosity
      real*4        Mass_2      ! (solMass) ?=- Mass
      integer*4     RV_2        ! (km/s) ? Radial velocity
      character*1   u_RV_2      ! Uncertainty flag on vsini (2)
      real*4        Dist_2      ! (arcmin) Radial distance from cluster center
*Note (1): Stars, NNNN-NNN are identified in Simbad as Cl* NGC NNN ESL NNN.
*Note (2): A colon indicates additional uncertainty
*Note (3): The specific method used to determine the atmospheric parameters
*          are designated as follows:
*     He = from neutral helium and hydrogen equivalent widths
*    He+ = from ionized helium
*     Si = Si III/Si IV ionization equilibrium and hydrogen line profiles
*      A = effective temperature adopted
*      I = effective temperature interpolated

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

C  Loading file 'table7.dat'	! Details of NGC 3293 objects

C  Format for file interpretation

    1 format(
     +  A8,A1,1X,F5.2,1X,F5.2,1X,A14,1X,I5,1X,F4.2,A1,1X,A3,1X,I3,A1,
     +  1X,F4.2,1X,F4.2,1X,F4.1,1X,I3,A1,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,92
        read(1,'(A83)')ar__
        read(ar__,1)
     +  Name,f_Name,Vmag,B_V,SpType,Teff,logg,u_logg,Method,vsini,
     +  u_vsini,E_B_V,logL,Mass,RV,u_RV,Dist
        if(ar__(38:42) .EQ. '') Teff = iNULL__
        if(ar__(44:47) .EQ. '') logg = rNULL__
        if(ar__(59:62) .EQ. '') E_B_V = rNULL__
        if(ar__(64:67) .EQ. '') logL = rNULL__
        if (idig(ar__(69:72)).EQ.0) Mass =  rNULL__
        if(ar__(74:76) .EQ. '') RV = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name,f_Name,Vmag,B_V,SpType,Teff,logg,u_logg,Method,vsini,
     +  u_vsini,E_B_V,logL,Mass,RV,u_RV,Dist
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table8.dat'	! Details of NGC 4755 objects

C  Format for file interpretation

    2 format(
     +  A8,A1,1X,F5.2,1X,F5.2,1X,A14,1X,I5,1X,F4.2,A1,1X,A3,1X,I3,A1,
     +  1X,F4.2,1X,F4.2,1X,F4.1,1X,I3,A1,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,88
        read(1,'(A83)')ar__1
        read(ar__1,2)
     +  Name_1,f_Name_1,Vmag_1,B_V_1,SpType_1,Teff_1,logg_1,u_logg_1,
     +  Method_1,vsini_1,u_vsini_1,E_B_V_1,logL_1,Mass_1,RV_1,u_RV_1,
     +  Dist_1
        if(ar__1(38:42) .EQ. '') Teff_1 = iNULL__
        if(ar__1(44:47) .EQ. '') logg_1 = rNULL__
        if(ar__1(59:62) .EQ. '') E_B_V_1 = rNULL__
        if(ar__1(64:67) .EQ. '') logL_1 = rNULL__
        if (idig(ar__1(69:72)).EQ.0) Mass_1 =  rNULL__
        if(ar__1(74:76) .EQ. '') RV_1 = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name_1,f_Name_1,Vmag_1,B_V_1,SpType_1,Teff_1,logg_1,u_logg_1,
     +  Method_1,vsini_1,u_vsini_1,E_B_V_1,logL_1,Mass_1,RV_1,u_RV_1,
     +  Dist_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table9.dat'	! Details of NGC 6611 objects

C  Format for file interpretation

    3 format(
     +  A8,A1,1X,F5.2,1X,F5.2,1X,A14,1X,I5,1X,F4.2,A1,1X,A3,1X,I3,A1,
     +  1X,F4.2,1X,F4.2,1X,F4.1,1X,I3,A1,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table9.dat')
      write(6,*) '....Loading file: table9.dat'
      do i__=1,44
        read(1,'(A83)')ar__2
        read(ar__2,3)
     +  Name_2,f_Name_2,Vmag_2,B_V_2,SpType_2,Teff_2,logg_2,u_logg_2,
     +  Method_2,vsini_2,u_vsini_2,E_B_V_1,logL_2,Mass_2,RV_2,u_RV_2,
     +  Dist_2
        if(ar__2(38:42) .EQ. '') Teff_2 = iNULL__
        if(ar__2(44:47) .EQ. '') logg_2 = rNULL__
        if(ar__2(59:62) .EQ. '') E_B_V_1 = rNULL__
        if(ar__2(64:67) .EQ. '') logL_2 = rNULL__
        if (idig(ar__2(69:72)).EQ.0) Mass_2 =  rNULL__
        if(ar__2(74:76) .EQ. '') RV_2 = iNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name_2,f_Name_2,Vmag_2,B_V_2,SpType_2,Teff_2,logg_2,u_logg_2,
     +  Method_2,vsini_2,u_vsini_2,E_B_V_1,logL_2,Mass_2,RV_2,u_RV_2,
     +  Dist_2
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