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 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 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       (nr__) ! Star Name (1)
      character*1   f_Name     (nr__) ! [*] *: stars lie outside the criteria for
*                                           cluster membership
      real*4        Vmag       (nr__) ! (mag) V magnitude
      real*4        B_V        (nr__) ! B-V colour index
      character*14  SpType     (nr__) ! MK spectral type
      integer*4     Teff       (nr__) ! (K) ? Effective Temperature
      real*4        logg       (nr__) ! ([cm/s2]) ? logarithmic surface gravity
      character*1   u_logg     (nr__) ! Uncertainty flag on logg (2)
      character*3   Method     (nr__) ! Methodology (3)
      integer*4     vsini      (nr__) ! (km/s) Projected rotational velocity
      character*1   u_vsini    (nr__) ! Uncertainty flag on vsini (2)
      real*4        E_B_V      (nr__) ! (mag) ? E(B-V) reddening
      real*4        logL       (nr__) ! ([solLum]) ? logarithmic luminosity
      real*4        Mass       (nr__) ! (solMass) ?=- Mass
      integer*4     RV         (nr__) ! (km/s) ? Radial velocity
      character*1   u_RV       (nr__) ! Uncertainty flag on vsini (2)
      real*4        Dist       (nr__) ! (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     (nr__1) ! Star Name (1)
      character*1   f_Name_1   (nr__1) ! [*] *: stars lie outside the criteria for
*                                           cluster membership
      real*4        Vmag_1     (nr__1) ! (mag) V magnitude
      real*4        B_V_1      (nr__1) ! B-V colour index
      character*14  SpType_1   (nr__1) ! MK spectral type
      integer*4     Teff_1     (nr__1) ! (K) ? Effective Temperature
      real*4        logg_1     (nr__1) ! ([cm/s2]) ? logarithmic surface gravity
      character*1   u_logg_1   (nr__1) ! Uncertainty flag on logg (2)
      character*3   Method_1   (nr__1) ! Methodology (3)
      integer*4     vsini_1    (nr__1) ! (km/s) Projected rotational velocity
      character*1   u_vsini_1  (nr__1) ! Uncertainty flag on vsini (2)
      real*4        E_B_V_1    (nr__1) ! (mag) ? E(B-V) reddening
      real*4        logL_1     (nr__1) ! ([solLum]) ? logarithmic luminosity
      real*4        Mass_1     (nr__1) ! (solMass) ?=- Mass
      integer*4     RV_1       (nr__1) ! (km/s) ? Radial velocity
      character*1   u_RV_1     (nr__1) ! Uncertainty flag on vsini (2)
      real*4        Dist_1     (nr__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     (nr__2) ! Star Name (1)
      character*1   f_Name_2   (nr__2) ! [*] *: stars lie outside the criteria for
*                                           cluster membership
      real*4        Vmag_2     (nr__2) ! (mag) V magnitude
      real*4        B_V_2      (nr__2) ! B-V colour index
      character*14  SpType_2   (nr__2) ! MK spectral type
      integer*4     Teff_2     (nr__2) ! (K) ? Effective Temperature
      real*4        logg_2     (nr__2) ! ([cm/s2]) ? logarithmic surface gravity
      character*1   u_logg_2   (nr__2) ! Uncertainty flag on logg (2)
      character*3   Method_2   (nr__2) ! Methodology (3)
      integer*4     vsini_2    (nr__2) ! (km/s) Projected rotational velocity
      character*1   u_vsini_2  (nr__2) ! Uncertainty flag on vsini (2)
      real*4        E_B_V_1    (nr__2) ! (mag) ? E(B-V) reddening
      real*4        logL_2     (nr__2) ! ([solLum]) ? logarithmic luminosity
      real*4        Mass_2     (nr__2) ! (solMass) ?=- Mass
      integer*4     RV_2       (nr__2) ! (km/s) ? Radial velocity
      character*1   u_RV_2     (nr__2) ! Uncertainty flag on vsini (2)
      real*4        Dist_2     (nr__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(i__),f_Name(i__),Vmag(i__),B_V(i__),SpType(i__),
     +  Teff(i__),logg(i__),u_logg(i__),Method(i__),vsini(i__),
     +  u_vsini(i__),E_B_V(i__),logL(i__),Mass(i__),RV(i__),u_RV(i__),
     +  Dist(i__)
        if(ar__(38:42) .EQ. '') Teff(i__) = iNULL__
        if(ar__(44:47) .EQ. '') logg(i__) = rNULL__
        if(ar__(59:62) .EQ. '') E_B_V(i__) = rNULL__
        if(ar__(64:67) .EQ. '') logL(i__) = rNULL__
        if (idig(ar__(69:72)).EQ.0) Mass(i__) =  rNULL__
        if(ar__(74:76) .EQ. '') RV(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),f_Name(i__),Vmag(i__),B_V(i__),SpType(i__),
     +  Teff(i__),logg(i__),u_logg(i__),Method(i__),vsini(i__),
     +  u_vsini(i__),E_B_V(i__),logL(i__),Mass(i__),RV(i__),u_RV(i__),
     +  Dist(i__)
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(i__),f_Name_1(i__),Vmag_1(i__),B_V_1(i__),
     +  SpType_1(i__),Teff_1(i__),logg_1(i__),u_logg_1(i__),
     +  Method_1(i__),vsini_1(i__),u_vsini_1(i__),E_B_V_1(i__),
     +  logL_1(i__),Mass_1(i__),RV_1(i__),u_RV_1(i__),Dist_1(i__)
        if(ar__1(38:42) .EQ. '') Teff_1(i__) = iNULL__
        if(ar__1(44:47) .EQ. '') logg_1(i__) = rNULL__
        if(ar__1(59:62) .EQ. '') E_B_V_1(i__) = rNULL__
        if(ar__1(64:67) .EQ. '') logL_1(i__) = rNULL__
        if (idig(ar__1(69:72)).EQ.0) Mass_1(i__) =  rNULL__
        if(ar__1(74:76) .EQ. '') RV_1(i__) = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),f_Name_1(i__),Vmag_1(i__),B_V_1(i__),
     +  SpType_1(i__),Teff_1(i__),logg_1(i__),u_logg_1(i__),
     +  Method_1(i__),vsini_1(i__),u_vsini_1(i__),E_B_V_1(i__),
     +  logL_1(i__),Mass_1(i__),RV_1(i__),u_RV_1(i__),Dist_1(i__)
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(i__),f_Name_2(i__),Vmag_2(i__),B_V_2(i__),
     +  SpType_2(i__),Teff_2(i__),logg_2(i__),u_logg_2(i__),
     +  Method_2(i__),vsini_2(i__),u_vsini_2(i__),E_B_V_1(i__),
     +  logL_2(i__),Mass_2(i__),RV_2(i__),u_RV_2(i__),Dist_2(i__)
        if(ar__2(38:42) .EQ. '') Teff_2(i__) = iNULL__
        if(ar__2(44:47) .EQ. '') logg_2(i__) = rNULL__
        if(ar__2(59:62) .EQ. '') E_B_V_1(i__) = rNULL__
        if(ar__2(64:67) .EQ. '') logL_2(i__) = rNULL__
        if (idig(ar__2(69:72)).EQ.0) Mass_2(i__) =  rNULL__
        if(ar__2(74:76) .EQ. '') RV_2(i__) = iNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name_2(i__),f_Name_2(i__),Vmag_2(i__),B_V_2(i__),
     +  SpType_2(i__),Teff_2(i__),logg_2(i__),u_logg_2(i__),
     +  Method_2(i__),vsini_2(i__),u_vsini_2(i__),E_B_V_1(i__),
     +  logL_2(i__),Mass_2(i__),RV_2(i__),u_RV_2(i__),Dist_2(i__)
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