FORTRAN Generation
(/./ftp/cats/J/A_A/511/L10)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/511/L10 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-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/511/L10   Abundances and space velocities of 94 stars   (Nissen+, 2010)
*================================================================================
*Two distinct halo populations in the solar neighborhood. Evidence from stellar
*abundance ratios and kinematics.
*    Nissen P.E., Schuster W.J.
*   <Astron. Astrophys. 511, L10 (2010)>
*   =2010A&A...511L..10N
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'stars.dat'	! Star list

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

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

      character*10  Name        ! Simbad name
      character*1   m_Name      ! Multiplicity index on Name
      integer*4     RAh         ! (h) Simbad Hour of Right Ascension (J2000.0)
      integer*4     RAm         ! (min) Simbad Minute of Right Ascension (J2000.0)
      real*4        RAs         ! (s) Simbad Second of Right Ascension (J2000.0)
      character*1   DE_         ! Simbad Sign of the Declination (J2000.0)
      integer*4     DEd         ! (deg) Simbad Degree of Declination (J2000.0)
      integer*4     DEm         ! (arcmin) Simbad Arcminute of Declination (J2000.0)
      integer*4     DEs         ! (arcsec) Simbad Arcsecond of Declination (J2000.0)
      real*4        Bmag        ! (mag) Simbad B band magnitude
      real*4        Vmag        ! (mag) Simbad V band magnitude
      character*8   SpType      ! Simbad MK spectral type
      character*8   Inst        ! Instrument used
      character*8   Inst2       ! Second Instrument used

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

C  Declarations for 'table3.dat'	! Data based on VLT/UVES spectra

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

      character*10  Name_1      ! Object name
      character*1   m_Name_1    ! Multiplicty index on Name
      integer*4     Teff        ! (K) Effective temperature
      real*4        logg        ! (cm/s2) Logarithmic surface gravity
      real*4        v_Fe_H_     ! ([Sun]) Iron-to-hydrogen ratio
      real*4        ksi         ! (km/s) Micro-turbulence velocity
      real*4        v_Na_Fe_    ! ([Sun]) Sodium-to-iron ratio
      real*4        v_Mg_Fe_    ! ([Sun]) Magnesium-to-iron ratio
      real*4        v_Si_Fe_    ! ([Sun]) Silicon-to-iron ratio
      real*4        v_Ca_Fe_    ! ([Sun]) Calcium-to-iron ratio
      real*4        v_Ti_Fe_    ! ([Sun]) Titanium-to-iron ratio
      real*4        v_Cr_Fe_    ! ([Sun]) Chromium-to-iron ratio
      real*4        v_Ni_Fe_    ! ([Sun]) Nickel-to-iron ratio
      integer*4     U_LSR       ! (km/s) Galactic U-velocity component relative to LSR
      integer*4     V_LSR       ! (km/s) Galactic V-velocity component relative to LSR
      integer*4     W_LSR       ! (km/s) Galactiv W-velocity component relative to LSR
      character*12  Class       ! Population (1)
*Note (1): Classification of star as belonging to the thick-disk (TD), the
*     low-alpha halo, or the high-alpha halo population. For stars with
*     [Fe/H]<-1.4, the classification is uncertain and given in parentheses.

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

C  Declarations for 'table4.dat'	! Data based on NOT/FIES spectra

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

      character*10  Name_2      ! Object name
      character*1   m_Name_2    ! Multiplicty index on Name
      integer*4     Teff_1      ! (K) Effective temperature
      real*4        logg_1      ! (cm/s2) Logarithmic surface gravity
      real*4        v_Fe_H__1   ! ([Sun]) Iron-to-hydrogen ratio
      real*4        ksi_1       ! (km/s) Micro-turbulence velocity
      real*4        v_Na_Fe__1  ! ([Sun]) Sodium-to-iron ratio
      real*4        v_Mg_Fe__1  ! ([Sun]) Magnesium-to-iron ratio
      real*4        v_Si_Fe__1  ! ([Sun]) Silicon-to-iron ratio
      real*4        v_Ca_Fe__1  ! ([Sun]) Calcium-to-iron ratio
      real*4        v_Ti_Fe__1  ! ([Sun]) Titanium-to-iron ratio
      real*4        v_Cr_Fe__1  ! ([Sun]) Chromium-to-iron ratio
      real*4        v_Ni_Fe__1  ! ([Sun]) Nickel-to-iron ratio
      integer*4     U_LSR_1     ! (km/s) Galactic U-velocity component relative to LSR
      integer*4     V_LSR_1     ! (km/s) Galactic V-velocity component relative to LSR
      integer*4     W_LSR_1     ! (km/s) Galactiv W-velocity component relative to LSR
      character*12  Class_1     ! Population (1)
*Note (1): Classification of star as belonging to the thick-disk (TD), the
*     low-alpha halo, or the high-alpha halo population. For stars with
*     [Fe/H]<-1.4, the classification is uncertain and given in parentheses.

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

C  Loading file 'stars.dat'	! Star list

C  Format for file interpretation

    1 format(
     +  A10,A1,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,2X,F6.3,1X,
     +  F6.3,1X,A8,1X,A8,1X,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'stars.dat')
      write(6,*) '....Loading file: stars.dat'
      do i__=1,94
        read(1,'(A74)')ar__
        read(ar__,1)
     +  Name,m_Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Bmag,Vmag,SpType,Inst,
     +  Inst2
        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,m_Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Bmag,Vmag,SpType,Inst,
     +  Inst2
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Data based on VLT/UVES spectra

C  Format for file interpretation

    2 format(
     +  A10,A1,1X,I4,1X,F4.2,1X,F5.2,1X,F3.1,1X,F5.2,1X,F4.2,1X,F4.2,
     +  1X,F4.2,1X,F4.2,1X,F5.2,1X,F5.2,1X,I4,1X,I4,1X,I4,1X,A12)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,53
        read(1,'(A97)')ar__1
        read(ar__1,2)
     +  Name_1,m_Name_1,Teff,logg,v_Fe_H_,ksi,v_Na_Fe_,v_Mg_Fe_,
     +  v_Si_Fe_,v_Ca_Fe_,v_Ti_Fe_,v_Cr_Fe_,v_Ni_Fe_,U_LSR,V_LSR,
     +  W_LSR,Class
c    ..............Just test output...........
        write(6,2)
     +  Name_1,m_Name_1,Teff,logg,v_Fe_H_,ksi,v_Na_Fe_,v_Mg_Fe_,
     +  v_Si_Fe_,v_Ca_Fe_,v_Ti_Fe_,v_Cr_Fe_,v_Ni_Fe_,U_LSR,V_LSR,
     +  W_LSR,Class
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Data based on NOT/FIES spectra

C  Format for file interpretation

    3 format(
     +  A10,A1,1X,I4,1X,F4.2,1X,F5.2,1X,F3.1,1X,F5.2,1X,F4.2,1X,F4.2,
     +  1X,F4.2,1X,F4.2,1X,F5.2,1X,F5.2,1X,I4,1X,I4,1X,I4,1X,A12)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,47
        read(1,'(A97)')ar__2
        read(ar__2,3)
     +  Name_2,m_Name_2,Teff_1,logg_1,v_Fe_H__1,ksi_1,v_Na_Fe__1,
     +  v_Mg_Fe__1,v_Si_Fe__1,v_Ca_Fe__1,v_Ti_Fe__1,v_Cr_Fe__1,
     +  v_Ni_Fe__1,U_LSR_1,V_LSR_1,W_LSR_1,Class_1
c    ..............Just test output...........
        write(6,3)
     +  Name_2,m_Name_2,Teff_1,logg_1,v_Fe_H__1,ksi_1,v_Na_Fe__1,
     +  v_Mg_Fe__1,v_Si_Fe__1,v_Ca_Fe__1,v_Ti_Fe__1,v_Cr_Fe__1,
     +  v_Ni_Fe__1,U_LSR_1,V_LSR_1,W_LSR_1,Class_1
c    .......End.of.Just test output...........
      end do
      close(1)

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