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 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/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      (nr__) ! (deg) Right Ascension J2000
      real*8        DEdeg      (nr__) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*5   Name       (nr__) ! Star name from WEBDA (WNNNN)
      integer*4     RAh        (nr__) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000)
      real*4        RAs        (nr__) ! (s) Right ascension (J2000)
      character*1   DE_        (nr__) ! Declination sign (J2000)
      integer*4     DEd        (nr__) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) Declination (J2000)
      real*4        Vmag       (nr__) ! (mag) V magnitude from literature (from literature)
      real*4        Pmemb      (nr__) ! Probability of membership from proper motion
*                                   (from McNamara et al., 1977A&AS...27..117M)
      character*2   Class1     (nr__) ! [M SM] Classification from radial velocity (1)
      character*1   r_Class1   (nr__) ! Reference for Class1 (2)
      character*2   Class2     (nr__) ! [M SM] Classification from radial velocity (1)
      character*1   r_Class2   (nr__) ! Reference for Class2 (2)
      character*1   Class3     (nr__) ! [M SM] Classification from radial velocity (1)
      character*1   r_Class3   (nr__) ! Reference for Class3 (2)
      character*6   Inst       (nr__) ! Instrument
      integer*4     SNR        (nr__) ! Signal-to-noise ratio of the spectrum
      integer*4     Teff       (nr__) ! (K) Effective temperature from spectroscopic
*                                   analysis
      integer*4     e_Teff     (nr__) ! (K) rms uncertainty on Teff
      real*4        logg       (nr__) ! ([cm/s2]) Surface gravity from spectroscopic analysis
      real*4        e_logg     (nr__) ! ([cm/s2]) rms uncertainty on logg
      real*4        vt         (nr__) ! (km/s) Microturbulent velocity from EW
      real*4        e_vt       (nr__) ! (km/s) rms uncertainty on vt
      real*4        RV         (nr__) ! (km/s) Radial velocity from spectroscopic analysis
      real*4        e_RV       (nr__) ! (km/s) rms uncertainty on RV
      real*4        v_Fe_H_    (nr__) ! ([-]) Metallicity from EW
      real*4        e__Fe_H_   (nr__) ! ([-]) rms uncertainty on [Fe/H]
      character*7   Label      (nr__) ! 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     (nr__1) ! (0.1nm) Wavelength of the line
      character*3   Element    (nr__1) ! Name of the chemical species
      real*4        loggf      (nr__1) ! ([-]) Logarithm of the oscillation strength
      real*4        EP         (nr__1) ! (eV) Excitation potential
      integer*4     EW0660H    (nr__1) ! (0.1pm) ?=-99 Equivalent width of the spectrum W0660_HER
      integer*4     EW0669H    (nr__1) ! (0.1pm) ?=-99 Equivalent width of the spectrum W0669_HER
      integer*4     EW0686H    (nr__1) ! (0.1pm) ?=-99 Equivalent width of the spectrum W0686_HER
      integer*4     EW0779H    (nr__1) ! (0.1pm) ?=-99 Equivalent width of the spectrum W0779_HER
      integer*4     EW0779F    (nr__1) ! (0.1pm) ?=-99 Equivalent width of the spectrum W0779_FIE
      integer*4     EW0916H    (nr__1) ! (0.1pm) ?=-99 Equivalent width of the spectrum W0916_HER
      integer*4     EW1184H    (nr__1) ! (0.1pm) ?=-99 Equivalent width of the spectrum W1184_HER
      integer*4     EW1184F    (nr__1) ! (0.1pm) ?=-99 Equivalent width of the spectrum W1184_FIE
      integer*4     EW1256H    (nr__1) ! (0.1pm) ?=-99 Equivalent width of the spectrum W1256_HER
      integer*4     EW1423H    (nr__1) ! (0.1pm) ?=-99 Equivalent width of the spectrum W1423_HER
      integer*4     EW1423F    (nr__1) ! (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(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Vmag(i__),Pmemb(i__),Class1(i__),
     +  r_Class1(i__),Class2(i__),r_Class2(i__),Class3(i__),
     +  r_Class3(i__),Inst(i__),SNR(i__),Teff(i__),e_Teff(i__),
     +  logg(i__),e_logg(i__),vt(i__),e_vt(i__),RV(i__),e_RV(i__),
     +  v_Fe_H_(i__),e__Fe_H_(i__),Label(i__)
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Vmag(i__),Pmemb(i__),Class1(i__),
     +  r_Class1(i__),Class2(i__),r_Class2(i__),Class3(i__),
     +  r_Class3(i__),Inst(i__),SNR(i__),Teff(i__),e_Teff(i__),
     +  logg(i__),e_logg(i__),vt(i__),e_vt(i__),RV(i__),e_RV(i__),
     +  v_Fe_H_(i__),e__Fe_H_(i__),Label(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
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(i__),Element(i__),loggf(i__),EP(i__),EW0660H(i__),
     +  EW0669H(i__),EW0686H(i__),EW0779H(i__),EW0779F(i__),
     +  EW0916H(i__),EW1184H(i__),EW1184F(i__),EW1256H(i__),
     +  EW1423H(i__),EW1423F(i__)
c    ..............Just test output...........
        write(6,2)
     +  Lambda(i__),Element(i__),loggf(i__),EP(i__),EW0660H(i__),
     +  EW0669H(i__),EW0686H(i__),EW0779H(i__),EW0779F(i__),
     +  EW0916H(i__),EW1184H(i__),EW1184F(i__),EW1256H(i__),
     +  EW1423H(i__),EW1423F(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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