FORTRAN Generation
(/./ftp/cats/J/A_A/610/A66)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/610/A66 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-20
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/610/A66      Equivalent widths of 7 stars in NGC 6705 (Casamiquela+, 2018)
*================================================================================
*NGC6705 a young alpha-enhanced open cluster from OCCASO data.
*    Casamiquela L., Carrera R., Balaguer-Nunez L., Jordi C., Chiappini C.,
*    Anders F., Antoja T., Miret-Roig N., Romero-Gomez M., Blanco-Cuaresma S.,
*    Pancino E., Aguado D.S., del Pino A., Diaz-Perez L., Gallart C.
*    <Astron. Astrophys. 610, A66 (2018)>
*    =2018A&A...610A..66C        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Details of the observed stars

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

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

      character*5   Name        ! Star name from WEBDA (WNNNN)
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      real*4        RAs         ! (s) Right ascension (J2000)
      character*1   DE_         ! Declination sign (J2000)
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      real*4        DEs         ! (arcsec) Declination (J2000)
      real*4        Vmag        ! (mag) V magnitude from literature (from literature)
      real*4        Pmemb       ! Probability of membership from proper motion
*                                   (from McNamara et al., 1977A&AS...27..117M)
      character*2   Class1      ! [M SM] Classification from radial velocity (1)
      character*1   r_Class1    ! Reference for Class1 (2)
      character*2   Class2      ! [M SM] Classification from radial velocity (1)
      character*1   r_Class2    ! Reference for Class2 (2)
      character*1   Class3      ! [M SM] Classification from radial velocity (1)
      character*1   r_Class3    ! Reference for Class3 (2)
      character*6   Inst        ! Instrument
      integer*4     SNR         ! Signal-to-noise ratio of the spectrum
      integer*4     Teff        ! (K) Effective temperature from spectroscopic
*                                   analysis
      integer*4     e_Teff      ! (K) rms uncertainty on Teff
      real*4        logg        ! ([cm/s2]) Surface gravity from spectroscopic analysis
      real*4        e_logg      ! ([cm/s2]) rms uncertainty on logg
      real*4        vt          ! (km/s) Microturbulent velocity from EW
      real*4        e_vt        ! (km/s) rms uncertainty on vt
      real*4        RV          ! (km/s) Radial velocity from spectroscopic analysis
      real*4        e_RV        ! (km/s) rms uncertainty on RV
      real*4        v_Fe_H_     ! ([-]) Metallicity from EW
      real*4        e__Fe_H_    ! ([-]) rms uncertainty on [Fe/H]
      character*7   Label       ! Name of the column in table2 with equivalent
*                                   width data
*Note (1): Classification as follows:
*   M  = member
*   SM = single member
*Note (2): References as follows:
*   a = Cantat-Gaudin et al. (2014, Cat. J/A+A/569/A17) and
*        Tautvaisiene et al. (2015, Cat. J/A+A/573/A55),
*   b = Mathieu et al. (1986AJ.....92.1100M),
*   c = Mermilliod et al. (2008, Cat. J/A+A/485/303)

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

C  Declarations for 'table2.dat'	! *Equivalent widths of CaI, SiI and TiI lines

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

      real*8        Lambda      ! (0.1nm) Wavelength of the line
      character*3   Element     ! Name of the chemical species
      real*4        loggf       ! ([-]) Logarithm of the oscillation strength
      real*4        EP          ! (eV) Excitation potential
      integer*4     EW0660H     ! (0.1pm) ?=-99 Equivalent width of the spectrum W0660_HER
      integer*4     EW0669H     ! (0.1pm) ?=-99 Equivalent width of the spectrum W0669_HER
      integer*4     EW0686H     ! (0.1pm) ?=-99 Equivalent width of the spectrum W0686_HER
      integer*4     EW0779H     ! (0.1pm) ?=-99 Equivalent width of the spectrum W0779_HER
      integer*4     EW0779F     ! (0.1pm) ?=-99 Equivalent width of the spectrum W0779_FIE
      integer*4     EW0916H     ! (0.1pm) ?=-99 Equivalent width of the spectrum W0916_HER
      integer*4     EW1184H     ! (0.1pm) ?=-99 Equivalent width of the spectrum W1184_HER
      integer*4     EW1184F     ! (0.1pm) ?=-99 Equivalent width of the spectrum W1184_FIE
      integer*4     EW1256H     ! (0.1pm) ?=-99 Equivalent width of the spectrum W1256_HER
      integer*4     EW1423H     ! (0.1pm) ?=-99 Equivalent width of the spectrum W1423_HER
      integer*4     EW1423F     ! (0.1pm) ?=-99 Equivalent width of the spectrum W1423_FIE

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

C  Loading file 'table1.dat'	! Details of the observed stars

C  Format for file interpretation

    1 format(
     +  A5,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,F4.1,1X,F4.2,
     +  1X,A2,A1,2X,A2,A1,2X,A1,A1,1X,A6,1X,I2,1X,I4,1X,I3,1X,F4.2,1X,
     +  F4.2,1X,F4.2,1X,F4.2,1X,F4.1,1X,F3.1,1X,F4.2,1X,F4.2,1X,A7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,11
        read(1,'(A120)')ar__
        read(ar__,1)
     +  Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,Pmemb,Class1,r_Class1,
     +  Class2,r_Class2,Class3,r_Class3,Inst,SNR,Teff,e_Teff,logg,
     +  e_logg,vt,e_vt,RV,e_RV,v_Fe_H_,e__Fe_H_,Label
        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(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,Pmemb,Class1,r_Class1,
     +  Class2,r_Class2,Class3,r_Class3,Inst,SNR,Teff,e_Teff,logg,
     +  e_logg,vt,e_vt,RV,e_RV,v_Fe_H_,e__Fe_H_,Label
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! *Equivalent widths of CaI, SiI and TiI lines

C  Format for file interpretation

    2 format(
     +  F8.3,1X,A3,1X,F6.3,1X,F4.2,1X,I3,1X,I3,1X,I3,1X,I3,1X,I3,1X,
     +  I3,1X,I3,1X,I3,1X,I3,1X,I3,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,79
        read(1,'(A68)')ar__1
        read(ar__1,2)
     +  Lambda,Element,loggf,EP,EW0660H,EW0669H,EW0686H,EW0779H,
     +  EW0779F,EW0916H,EW1184H,EW1184F,EW1256H,EW1423H,EW1423F
c    ..............Just test output...........
        write(6,2)
     +  Lambda,Element,loggf,EP,EW0660H,EW0669H,EW0686H,EW0779H,
     +  EW0779F,EW0916H,EW1184H,EW1184F,EW1256H,EW1423H,EW1423F
c    .......End.of.Just test output...........
      end do
      close(1)

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