FORTRAN Generation
(/./ftp/cats/J/ApJ/462/241)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/462/241 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-Apr-13
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/462/241               Ca abundance for Omega Cen red giants (Norris+ 1996)
*================================================================================
*The giant branch of {omega} Centauri. V. The calcium abundance distribution.
*      Norris J.E., Freeman K.C., Mighell K.J.
*     <Astrophys. J. 462, 241N (1996)>
*     =1996ApJ...462..241N       (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Ca II line strength measurements and abundances
                                  for omega Centauri giants

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

      integer*4     Star       (nr__) ! Star name
      real*4        Vmag       (nr__) ! (mag) V magnitude
      integer*4     r_Vmag     (nr__) ! Source of V magnitude (1)
      real*4        Dist       (nr__) ! (arcmin) Radial distance from cluster center
      real*4        A_Ca       (nr__) ! ? Ca II H & K line strength index (2)
      real*4        W          (nr__) ! ? Calcium triplet (8498-8662A) index (3)
      character*3   n          (nr__) ! Code of number of observations (4)
      real*4        v_Ca_H_    (nr__) ! (Sun) ? Calcium abundance
      character*2   n__Ca_H_   (nr__) ! [CH ] CH when CH stars
*Note (1): The source of magnitude is:
*       1: Cannon & Stobie 1973a (1973MNRAS.162..207C),
*          Eggen 1972 (1972ApJ...172..639E), and Seitzer 1983
*       2: Lynga 1996 (<J/A+AS/115/297>)
*       3: Woolley et al. 1966 (1966ROAn....2....1W) and present work
*Note (2): Strength index W8542+W8662 is formed with the equivalent
*      widths of the two strongest lines of the triplet as defined in
*      Armandroff et al. (1991AJ....101.1329A).
*Note (3): The triplet index is defined by
*     A(Ca)=1-2.I{bar}(3916, 3985)/[I{bar}(3883, 3915)+I{bar}(3985, 40118)]
*     where I{bar}(L1, L2)={integral}{L1 to L2}ILdL/(L2-L1) and
*           IL is the measured flux at L as defined in 
*           Norris et al. (1981ApJ...244..205N)
*Note (4): Three-digit positional code giving number of observations
*      obtained with AAT (1), 1.9m telescope in 1992 (2) and 1993 (3).

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

C  Declarations for 'table2.dat'	! Globular cluster calibration data

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

      character*8   Cluster    (nr__1) ! Cluster name
      character*7   Star_1     (nr__1) ! Star name (1)
      real*4        Vmag_1     (nr__1) ! (mag) V magnitude (2)
      real*4        WNFM       (nr__1) ! Calcium triplet index, from this work
      integer*4     o_WNFM     (nr__1) ! Number of observations
      real*4        Wother     (nr__1) ! ? Calcium line index from other works (3)
*Note (1): Nomenclature from:
*         Lee (1977b) for 47 Tuc (1977A&AS...27..381)
*         Lee (1977a) for M4 (1977A&AS...27..367)
*         Woolley et al. (1961) for NGC 6397 (1961RGOB...43..303W)
*         Alcaino (1972) for NGC 6752 (1972A&A....16..220A)
*Note (2): Nomenclature from:
*         Lee (1977b) for 47 Tuc (1977A&AS...27..381)
*         Lee (1977a) for M4 (1977A&AS...27..367)
*         Cannon (1974) for NGC 6397 (1974MNRAS.167..551C)
*         Cannon & Stobie (1973b) for NGC 6752 (1973MNRAS.162..227C)
*Note (3): From Armandroff & Da Costa (1991AJ....101.1329A) and
*          Da Costa et al. (1992AJ....104..154D)

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

C  Declarations for 'table3.dat'	! Coordinates (J2000) for omega Centauri giants

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg      (nr__2) ! (deg) Right Ascension J2000
      real*8        DEdeg      (nr__2) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     Star_2     (nr__2) ! Star name (Section 2)
      integer*4     Lynga      (nr__2) ! ? Star name, from Lynga 1996 catalog
*                                   (see Appendix B)
      integer*4     RAh        (nr__2) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__2) ! (min) Right ascension (J2000)
      real*4        RAs        (nr__2) ! (s) Right ascension (J2000)
      character*1   DE_        (nr__2) ! Declination sign
      integer*4     DEd        (nr__2) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__2) ! (arcmin) Declination (J2000)
      integer*4     DEs        (nr__2) ! (arcsec) Declination (J2000)

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

C  Loading file 'table1.dat'	! Ca II line strength measurements and abundances
*                                  for omega Centauri giants

C  Format for file interpretation

    1 format(
     +  1X,I4,2X,F5.2,3X,I1,2X,F4.1,3X,F5.3,3X,F4.2,3X,A3,2X,F5.2,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,521
        read(1,'(A53)')ar__
        read(ar__,1)
     +  Star(i__),Vmag(i__),r_Vmag(i__),Dist(i__),A_Ca(i__),W(i__),
     +  n(i__),v_Ca_H_(i__),n__Ca_H_(i__)
        if(ar__(26:30) .EQ. '') A_Ca(i__) = rNULL__
        if(ar__(34:37) .EQ. '') W(i__) = rNULL__
        if(ar__(46:50) .EQ. '') v_Ca_H_(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Star(i__),Vmag(i__),r_Vmag(i__),Dist(i__),A_Ca(i__),W(i__),
     +  n(i__),v_Ca_H_(i__),n__Ca_H_(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Globular cluster calibration data

C  Format for file interpretation

    2 format(A8,1X,A7,1X,F5.2,1X,F4.2,1X,I1,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,19
        read(1,'(A39)')ar__1
        read(ar__1,2)
     +  Cluster(i__),Star_1(i__),Vmag_1(i__),WNFM(i__),o_WNFM(i__),
     +  Wother(i__)
        if(ar__1(31:34) .EQ. '') Wother(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Cluster(i__),Star_1(i__),Vmag_1(i__),WNFM(i__),o_WNFM(i__),
     +  Wother(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Coordinates (J2000) for omega Centauri giants

C  Format for file interpretation

    3 format(I4,2X,I4,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,101
        read(1,'(A32)')ar__2
        read(ar__2,3)
     +  Star_2(i__),Lynga(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__)
        if(ar__2(7:10) .EQ. '') Lynga(i__) = iNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,3)
     +  Star_2(i__),Lynga(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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