FORTRAN Generation
(/./ftp/cats/J/A_A/524/A44)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/524/A44 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/524/A44       CN and CH line strengths in 12 globulars (Pancino+, 2010)
*================================================================================
*Low-resolution spectroscopy of main sequence stars belonging to 12 Galactic
*globular clusters.
*I. CH and CN band strength variations.
*    Pancino E., Rejkuba M., Zoccali M., Carrera R.
*   <Astron. Astrophys. 524, A44 (2010)>
*   =2010A&A...524A..44P
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! CH and CN bands index measurements

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

C  J2000.0 position composed of: RAdeg DEdeg
      character*8   GGC        (nr__) ! Cluster name
      integer*4     Seq        (nr__) ! Star sequential number in cluster
      real*8        RAdeg      (nr__) ! (deg) Right ascension (J2000.0)
      real*8        DEdeg      (nr__) ! (deg) Declination (J2000.0)
      real*4        CN         (nr__) ! S3839(CN) band strength index
      real*4        dCN        (nr__) ! S3839(CN) corrected for Teff and logg effects
      real*4        e_CN       (nr__) ! Poisson uncertainty on S3839(CN)
      real*4        CH         (nr__) ! CH4300 band strength index
      real*4        dCH        (nr__) ! CH4300 corrected for Teff and logg effects
      real*4        e_CH       (nr__) ! Poisson uncertainty on CH4300
      integer*4     HRV        (nr__) ! (km/s) Heliocentric radial velocity
      integer*4     e_HRV      (nr__) ! (km/s) Uncertainty on radial velocity

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

C  Loading file 'table2.dat'	! CH and CN bands index measurements

C  Format for file interpretation

    1 format(
     +  A8,1X,I4,1X,F9.5,1X,F9.5,1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,
     +  F6.3,1X,F5.3,1X,I4,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,346
        read(1,'(A80)')ar__
        read(ar__,1)
     +  GGC(i__),Seq(i__),RAdeg(i__),DEdeg(i__),CN(i__),dCN(i__),
     +  e_CN(i__),CH(i__),dCH(i__),e_CH(i__),HRV(i__),e_HRV(i__)
c    ..............Just test output...........
        write(6,1)
     +  GGC(i__),Seq(i__),RAdeg(i__),DEdeg(i__),CN(i__),dCN(i__),
     +  e_CN(i__),CH(i__),dCH(i__),e_CH(i__),HRV(i__),e_HRV(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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