FORTRAN Generation
(/./ftp/cats/J/A_A/635/A107)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/635/A107 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-Sep-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/635/A107      Spectroscopy of the Eri 2 cluster        (Zoutendijk+, 2020)
*================================================================================
*The MUSE-Faint survey.
*I. Spectroscopic evidence for a star cluster in Eridanus 2 and constraints on
*MACHOs as a constituent of dark matter.
*    Zoutendijk S.L., Brinchmann J., Boogaard L.A., Gunawardhana M.L.P.,
*    Husser T.-O., Kamann S., Ramos Padilla A.F., Roth M.M., Bacon R.,
*    den Brok M., Dreizler S., Krajnovic K.
*    <Astron. Astrophys. 635, A107 (2020)>
*    =2020A&A...635A.107Z        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'eri2.dat'	! Source list for Eridanus 2

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     ID          ! Identifier
      real*8        RAdeg       ! (deg) Right ascension (J2000)
      real*8        DEdeg       ! (deg) Declination (J2000)
      real*4        Sep         ! (arcsec) Angular separation from centre of cluster
      real*4        SNR         ! Spectral signal-to-noise ratio
      real*4        RV          ! (km/s) Line-of-sight velocity (using spexxy)
      real*4        e_RV        ! (km/s) Error on line-of-sight velocity (using spexxy)
      real*4        v_Fe_H_     ! ([Sun]) Metallicity (using spexxy)
      real*4        e__Fe_H_    ! ([Sun]) Error on Metallicity (using spexxy)
      real*4        plx         ! (mas) ? GAIA DR2 parallax
      real*4        e_plx       ! (mas) ? Error on GAIA DR2 parallax
      real*4        F606Wmag    ! (mag) ? HST/ACS F606W apparent magnitude
      real*4        F814Wmag    ! (mag) HST/ACS F814W apparent magnitude
      real*4        LikeIso     ! ? Likelihood of photometry being consistent
*                                   with a broadened isochrone
      integer*4     Member      ! [0/1] Membership flag (0: not a member of
*                                   Eri 2, 1: member of Eri 2)
      real*8        LikeCl      ! ? Likelihood of star belonging to cluster
      real*4        RV2         ! (km/s) ? Line-of-sight velocity (using ULySS)
      real*4        e_RV2       ! (km/s) ? Error on line-of-sight velocity
*                                   (using ULySS)
      character*13  SpType2     ! Spectral type (using ULySS)
      real*4        v_Fe_H_2    ! ([Sun]) ? Metallicity (using The Cannon)

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

C  Loading file 'eri2.dat'	! Source list for Eridanus 2

C  Format for file interpretation

    1 format(
     +  I7,1X,F8.5,1X,F9.5,1X,F4.1,1X,F4.1,1X,F5.1,1X,F4.1,1X,F5.2,1X,
     +  F4.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F5.2,1X,F6.4,1X,I1,1X,F7.5,1X,
     +  F5.1,1X,F4.1,1X,A13,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'eri2.dat')
      write(6,*) '....Loading file: eri2.dat'
      do i__=1,35
        read(1,'(A127)')ar__
        read(ar__,1)
     +  ID,RAdeg,DEdeg,Sep,SNR,RV,e_RV,v_Fe_H_,e__Fe_H_,plx,e_plx,
     +  F606Wmag,F814Wmag,LikeIso,Member,LikeCl,RV2,e_RV2,SpType2,
     +  v_Fe_H_2
        if(ar__(60:63) .EQ. '') plx = rNULL__
        if(ar__(65:68) .EQ. '') e_plx = rNULL__
        if(ar__(70:74) .EQ. '') F606Wmag = rNULL__
        if(ar__(82:87) .EQ. '') LikeIso = rNULL__
        if(ar__(91:97) .EQ. '') LikeCl = rNULL__
        if(ar__(99:103) .EQ. '') RV2 = rNULL__
        if(ar__(105:108) .EQ. '') e_RV2 = rNULL__
        if(ar__(123:127) .EQ. '') v_Fe_H_2 = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  ID,RAdeg,DEdeg,Sep,SNR,RV,e_RV,v_Fe_H_,e__Fe_H_,plx,e_plx,
     +  F606Wmag,F814Wmag,LikeIso,Member,LikeCl,RV2,e_RV2,SpType2,
     +  v_Fe_H_2
c    .......End.of.Just test output...........
      end do
      close(1)

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