FORTRAN Generation
(/./ftp/cats/J/A_A/695/A164)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/695/A164 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-Oct-12
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/695/A164      Population II Cepheids in Galactic GC    (Cruz Reyes+, 2025)
*================================================================================
*Variable stars in Galactic globular clusters. II. Population II Cepheids.
*    Cruz Reyes M., Anderson I.R., Das S.
*    <Astron. Astrophys. 695, A164 (2025)>
*    =2025A&A...695A.164C        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tablea1.dat'	! Cepheids in globular clusters

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

C  Position composed of: RAdeg DEdeg (Epoch=2016.0)
      character*19  GaiaDR3    (nr__) ! Gaia DR3 source_id
      real*8        RAdeg      (nr__) ! (deg) Gaia DR3 Barycentric right ascension (ICRS)
*                                   at Ep=2016.0
      real*8        DEdeg      (nr__) ! (deg) Gaia DR3 Barycentric declination (ICRS)
*                                   at Ep=2016.0
      character*13  Cluster    (nr__) ! Cluster name
      real*4        Like       (nr__) ! ? Likelihood
      real*4        Prior      (nr__) ! [0/1] Prior probability
      real*4        Posterior  (nr__) ! [0/1]? Posterior probability
      character*5   Final      (nr__) ! [False True] A Boolean column that specifies
*                                   whether the star is part of Final sample of
*                                   Cepheids in clusters
      character*7   Class      (nr__) ! Classification assigned in this study
      character*5   Cand       (nr__) ! (deg) [False True] A Boolean column identifying
*                                   Cepheids whose membership could not be
*                                   confirmed
      real*8        Period     (nr__) ! (d) ? Pulsation period used to determine the
*                                   classification
      character*5   SOS        (nr__) ! [False True] Boolean column indicating whether
*                                    SOS photometry is available in the
*                                    Gaia archive

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

C  Declarations for 'tablea2.dat'	! Cepheid identifiers and their assigned
                                 classification in other catalogs

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

      character*19  GaiaDR3_1  (nr__1) ! Gaia DR3 source_id
      character*13  Cluster_1  (nr__1) ! Cluster name
      character*7   C17        (nr__1) ! Identifier in the Clement 
*                                   (2017EPJWC.15201021C) catalog
      character*19  OGLE       (nr__1) ! Identifier in the OGLE IV catalog,
*                                   OGLE-BLG-T2CEP-NNNN or OGLE-GD-T2CEP-NNN
      character*5   ClassSOS   (nr__1) ! Classification assigned in the SOS catalog
      character*5   ClassC17   (nr__1) ! Classification assigned in the C17 catalog
      character*3   Class_1    (nr__1) ! Classification assigned by the classifier of
*                                   variable sources of Gaia (DR3)
      character*5   G23        (nr__1) ! Primary classification assigned in the G23
*                                   catalog

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

C  Loading file 'tablea1.dat'	! Cepheids in globular clusters

C  Format for file interpretation

    1 format(
     +  A19,1X,F18.14,1X,F20.16,1X,A13,1X,F6.4,1X,F6.4,1X,F6.4,1X,A5,
     +  1X,A7,1X,A5,1X,F8.4,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea1.dat')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,158
        read(1,'(A129)')ar__
        read(ar__,1)
     +  GaiaDR3(i__),RAdeg(i__),DEdeg(i__),Cluster(i__),Like(i__),
     +  Prior(i__),Posterior(i__),Final(i__),Class(i__),Cand(i__),
     +  Period(i__),SOS(i__)
        if(ar__(75:80) .EQ. '') Like(i__) = rNULL__
        if(ar__(89:94) .EQ. '') Posterior(i__) = rNULL__
        if(ar__(116:123) .EQ. '') Period(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  GaiaDR3(i__),RAdeg(i__),DEdeg(i__),Cluster(i__),Like(i__),
     +  Prior(i__),Posterior(i__),Final(i__),Class(i__),Cand(i__),
     +  Period(i__),SOS(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablea2.dat'	! Cepheid identifiers and their assigned
*                                 classification in other catalogs

C  Format for file interpretation

    2 format(A19,1X,A13,1X,A7,1X,A19,1X,A5,1X,A5,1X,A3,1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tablea2.dat')
      write(6,*) '....Loading file: tablea2.dat'
      do i__=1,88
        read(1,'(A83)')ar__1
        read(ar__1,2)
     +  GaiaDR3_1(i__),Cluster_1(i__),C17(i__),OGLE(i__),
     +  ClassSOS(i__),ClassC17(i__),Class_1(i__),G23(i__)
c    ..............Just test output...........
        write(6,2)
     +  GaiaDR3_1(i__),Cluster_1(i__),C17(i__),OGLE(i__),
     +  ClassSOS(i__),ClassC17(i__),Class_1(i__),G23(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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