FORTRAN Generation
(/./ftp/cats/J/ApJ/719/931)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/719/931 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/ApJ/719/931           Chemical evolution of the UMi dSph        (Cohen+, 2010)
*================================================================================
*The chemical evolution of the Ursa Minor dwarf spheroidal galaxy.
*    Cohen J.G., Huang W.
*   <Astrophys. J., 719, 931-949 (2010)>
*   =2010ApJ...719..931C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Sample of stars in the Ursa Minor dSph

      integer*4 nr__
      parameter (nr__=10)	! Number of records
      character*60 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*6   Name        ! Star designation (1)
      integer*4     RAh         ! (h) Hour of right ascension (J2000) (1)
      integer*4     RAm         ! (min) Minute of right ascension (J2000)
      real*4        RAs         ! (s) Second of right ascension (J2000)
      character*1   DE_         ! Sign of declination (J2000) (1)
      integer*4     DEd         ! (deg) Degree of declination (J2000) (1)
      integer*4     DEm         ! (arcmin) Arcminute of declination (J2000)
      real*4        DEs         ! (arcsec) Arcsecond of declination (J2000)
      real*4        Vmag        ! (mag) V-band magnitude (1)
      real*4        Imag        ! (mag) I-band magnitude (1)
      character*4   Obs_Y       ! (yr) Year of observation
      character*3   Obs_M       ! ("month") Month of observation
      integer*4     Exp         ! (s) Exposure time
      integer*4     S_N         ! Signal to noise ratio (2)
*Note (1): The star names, coordinates, and photometry are from Winnick
*          (2003PhDT.........9W), with the original source of the latter two
*          being Palma et al. (2003, Cat. J/AJ/125/1352).
*Note (2): S/N per spectral resolution element ({lambda}/{Delta}{lambda}=35000)
*          in the continuum at the center of the echelle order at 5800{AA}.

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

C  Declarations for 'table2.dat'	! Stellar parameters for the Ursa Minor giants

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

      character*6   Name_1      ! Star designation
      integer*4     Teffp       ! (K) Photometric effective temperature
      real*4        loggp       ! ([cm/s2]) Photometric surface gravity
      integer*4     Teffs       ! (K) Spectroscopic effective temperature
      real*4        loggs       ! ([cm/s2]) Spectroscopic surface gravity
      real*4        Vt          ! (km/s) Turbulent velocity
      real*4        RV          ! (km/s) Heliocentric radial velocity

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

C  Declarations for 'ew.dat'	! Equivalent widths for ten stars in the Ursa Minor dSph

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

      character*6   Name_2      ! Star designation
      real*8        lambda      ! (0.1nm) Wavelength ({AA})
      character*1   f_lambda    ! [ab] dubious or discrepant line (1)
      character*5   Ion         ! Ion identification
      real*4        chi         ! (eV) Excitation potential
      real*8        log_gf      ! ([-]) Log of the oscillator strength
      character*2   l_EW        ! [<=] Limit flag on EW
      real*4        EW          ! (10-13m) ? Equivalent width (m{AA})
*Note (1):
*    a = Dubious line, probably should not have been used.
*    b = This line gives an abundance ~1.0 dex higher than the other two 
*        Dy II lines, and is ignored in computing the Dy abundance.

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

C  Loading file 'table1.dat'	! Sample of stars in the Ursa Minor dSph

C  Format for file interpretation

    1 format(
     +  A6,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,1X,F5.2,
     +  1X,A4,1X,A3,1X,I4,1X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,10
        read(1,'(A60)')ar__
        read(ar__,1)
     +  Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag,Imag,Obs_Y,Obs_M,Exp,S_N
        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,Imag,Obs_Y,Obs_M,Exp,S_N
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Stellar parameters for the Ursa Minor giants

C  Format for file interpretation

    2 format(A6,1X,I4,1X,F4.2,1X,I4,1X,F4.2,1X,F3.1,1X,F6.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,10
        read(1,'(A37)')ar__1
        read(ar__1,2)Name_1,Teffp,loggp,Teffs,loggs,Vt,RV
c    ..............Just test output...........
        write(6,2)Name_1,Teffp,loggp,Teffs,loggs,Vt,RV
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'ew.dat'	! Equivalent widths for ten stars in the Ursa Minor dSph

C  Format for file interpretation

    3 format(A6,1X,F7.2,1X,A1,1X,A5,1X,F4.2,1X,F7.3,1X,A2,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ew.dat')
      write(6,*) '....Loading file: ew.dat'
      do i__=1,5290
        read(1,'(A43)')ar__2
        read(ar__2,3)Name_2,lambda,f_lambda,Ion,chi,log_gf,l_EW,EW
        if(ar__2(39:43) .EQ. '') EW = rNULL__
c    ..............Just test output...........
        write(6,3)Name_2,lambda,f_lambda,Ion,chi,log_gf,l_EW,EW
c    .......End.of.Just test output...........
      end do
      close(1)

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