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 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-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         (nr__) ! Identifier
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000)
      real*4        Sep        (nr__) ! (arcsec) Angular separation from centre of cluster
      real*4        SNR        (nr__) ! Spectral signal-to-noise ratio
      real*4        RV         (nr__) ! (km/s) Line-of-sight velocity (using spexxy)
      real*4        e_RV       (nr__) ! (km/s) Error on line-of-sight velocity (using spexxy)
      real*4        v_Fe_H_    (nr__) ! ([Sun]) Metallicity (using spexxy)
      real*4        e__Fe_H_   (nr__) ! ([Sun]) Error on Metallicity (using spexxy)
      real*4        plx        (nr__) ! (mas) ? GAIA DR2 parallax
      real*4        e_plx      (nr__) ! (mas) ? Error on GAIA DR2 parallax
      real*4        F606Wmag   (nr__) ! (mag) ? HST/ACS F606W apparent magnitude
      real*4        F814Wmag   (nr__) ! (mag) HST/ACS F814W apparent magnitude
      real*4        LikeIso    (nr__) ! ? Likelihood of photometry being consistent
*                                   with a broadened isochrone
      integer*4     Member     (nr__) ! [0/1] Membership flag (0: not a member of
*                                   Eri 2, 1: member of Eri 2)
      real*8        LikeCl     (nr__) ! ? Likelihood of star belonging to cluster
      real*4        RV2        (nr__) ! (km/s) ? Line-of-sight velocity (using ULySS)
      real*4        e_RV2      (nr__) ! (km/s) ? Error on line-of-sight velocity
*                                   (using ULySS)
      character*13  SpType2    (nr__) ! Spectral type (using ULySS)
      real*4        v_Fe_H_2   (nr__) ! ([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(i__),RAdeg(i__),DEdeg(i__),Sep(i__),SNR(i__),RV(i__),
     +  e_RV(i__),v_Fe_H_(i__),e__Fe_H_(i__),plx(i__),e_plx(i__),
     +  F606Wmag(i__),F814Wmag(i__),LikeIso(i__),Member(i__),
     +  LikeCl(i__),RV2(i__),e_RV2(i__),SpType2(i__),v_Fe_H_2(i__)
        if(ar__(60:63) .EQ. '') plx(i__) = rNULL__
        if(ar__(65:68) .EQ. '') e_plx(i__) = rNULL__
        if(ar__(70:74) .EQ. '') F606Wmag(i__) = rNULL__
        if(ar__(82:87) .EQ. '') LikeIso(i__) = rNULL__
        if(ar__(91:97) .EQ. '') LikeCl(i__) = rNULL__
        if(ar__(99:103) .EQ. '') RV2(i__) = rNULL__
        if(ar__(105:108) .EQ. '') e_RV2(i__) = rNULL__
        if(ar__(123:127) .EQ. '') v_Fe_H_2(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  ID(i__),RAdeg(i__),DEdeg(i__),Sep(i__),SNR(i__),RV(i__),
     +  e_RV(i__),v_Fe_H_(i__),e__Fe_H_(i__),plx(i__),e_plx(i__),
     +  F606Wmag(i__),F814Wmag(i__),LikeIso(i__),Member(i__),
     +  LikeCl(i__),RV2(i__),e_RV2(i__),SpType2(i__),v_Fe_H_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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