FORTRAN Generation
(/./ftp/cats/J/A_A/303/468)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/303/468 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/303/468    Spectrospcopy, IR-photom. in globular clusters (Minniti, 1995)
*================================================================================
*Spectroscopy and IR photometry for giant stars in obscured globular clusters:
*NGC 6325, NGC 6401, NGC 6517, NGC 6642, HP 1 and Pal 6.
*     Minniti D.
*     <Astron. Astrophys. 303, 468 (1995)>
*     =1995A&A...303..468M               (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table3'	! Colors, velocities and spectral indices

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

      character*5   Cluster    (nr__) ! Cluster name
      character*3   Star       (nr__) ! Star name
      real*4        J_K        (nr__) ! (mag) ? Measured J-K colour
      real*4        RV         (nr__) ! (km/s) ? Measured heliocentric radial velocity
      real*4        Mg         (nr__) ! Mg spectroscopic index (1)
      real*4        Hbeta      (nr__) ! Hbeta spectroscopic index (1)
      real*4        Fe492      (nr__) ! Fe492 spectroscopic index (1)
      real*4        Fe498      (nr__) ! Fe498 spectroscopic index (1)
      real*4        Fe501      (nr__) ! Fe501 spectroscopic index (1)
      real*4        Fe527      (nr__) ! Fe527 spectroscopic index (1)
      real*4        Fe533      (nr__) ! Fe533 spectroscopic index (1)
      real*4        Fe540      (nr__) ! Fe540 spectroscopic index (1)
      real*4        Mg1        (nr__) ! Mg1 spectroscopic index (1)
      real*4        Mg2        (nr__) ! Mg2 spectroscopic index (1)
      real*4        Mgb        (nr__) ! Mgb spectroscopic index (1)
      real*4        MgH        (nr__) ! MgH spectroscopic index (1)
*Note (1): The definition of the indices are in Friel E.D., 1987, AJ 93, 1388
*                                                          =1987AJ.....93.1388F

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

C  Loading file 'table3'	! Colors, velocities and spectral indices

C  Format for file interpretation

    1 format(
     +  A5,2X,A3,2X,F4.2,1X,F6.1,1X,F4.2,4X,F4.2,1X,F4.2,1X,F4.2,2X,
     +  F4.2,2X,F4.2,2X,F4.2,2X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3')
      write(6,*) '....Loading file: table3'
      do i__=1,84
        read(1,'(A90)')ar__
        read(ar__,1)
     +  Cluster(i__),Star(i__),J_K(i__),RV(i__),Mg(i__),Hbeta(i__),
     +  Fe492(i__),Fe498(i__),Fe501(i__),Fe527(i__),Fe533(i__),
     +  Fe540(i__),Mg1(i__),Mg2(i__),Mgb(i__),MgH(i__)
        if(ar__(13:16) .EQ. '') J_K(i__) = rNULL__
        if(ar__(18:23) .EQ. '') RV(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Cluster(i__),Star(i__),J_K(i__),RV(i__),Mg(i__),Hbeta(i__),
     +  Fe492(i__),Fe498(i__),Fe501(i__),Fe527(i__),Fe533(i__),
     +  Fe540(i__),Mg1(i__),Mg2(i__),Mgb(i__),MgH(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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