FORTRAN Generation
(/./ftp/cats/J/ApJ/752/95)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/752/95 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-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/752/95       PHAT stellar cluster survey. I. Year 1       (Johnson+, 2012)
*================================================================================
*PHAT stellar cluster survey.
*I. Year 1 catalog and integrated photometry.
*    Johnson L.C., Seth A.C., Dalcanton J.J., Caldwell N., Fouesneau M.,
*    Gouliermis D.A., Hodge P.W., Larsen S.S., Olsen K.A.G., San Roman I.,
*    Sarajedini A., Weisz D.R., Williams B.F., Beerman L.C., Bianchi L.,
*    Dolphin A.E., Girardi L., Guhathakurta P., Kalirai J., Lang D.,
*    Monachesi A., Nanda S., Rix H.-W., Skillman E.D.
*   <Astrophys. J., 752, 95 (2012)>
*   =2012ApJ...752...95J
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! PHAT year 1 cluster catalog

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     PCID       (nr__) ! [1/1728] PHAT Cluster identification number
*                                    (<[JSD2012] PC NNNN> in Simbad)
      real*8        RAdeg      (nr__) ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      real*4        Rap        (nr__) ! (arcsec) [0.45/6] Aperture radius
      real*4        Reff       (nr__) ! (arcsec) [0.08/2.4]? Effective radius
      real*4        F275W      (nr__) ! (mag) [15/30]? HST/WFC3 F275W band magnitude
      real*4        e_F275W    (nr__) ! (mag) ? Error in F275W
      real*4        F336W      (nr__) ! (mag) [15/28]? HST/WFC3 F336W band magnitude
      real*4        e_F336W    (nr__) ! (mag) ? Error in F336W
      real*4        F475W      (nr__) ! (mag) [15/25]? HST/ACS F475W band magnitude
      real*4        e_F475W    (nr__) ! (mag) ? Error in F475W
      real*4        F814W      (nr__) ! (mag) [13/27]? HST/ACS F814W band magnitude
      real*4        e_F814W    (nr__) ! (mag) ? Error in F814W
      real*4        F110W      (nr__) ! (mag) [12/28]? HST/WFC3 F110W band magnitude
      real*4        e_F110W    (nr__) ! (mag) ? Error in F110W
      real*4        F160W      (nr__) ! (mag) [11/31]? HST/WFC3 F160W band magnitude
      real*4        e_F160W    (nr__) ! (mag) ? Error in F160W
      real*4        Qual       (nr__) ! [1/2.5] By-Eye quality score (2)
      real*4        ApCor      (nr__) ! (mag) [-0.6/-0]? Aperture correction (1)
      character*25  AName      (nr__) ! Alternate names
*Note (1): Aperture corrections are provided such that
*          m_Total_=m_Aperture_+ApCor.
*Note (2): a score between 1 and 3 (1=definite, 2=likely, 3=non-cluster) is
*     assigned independently by team members; the average is given here.

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

C  Declarations for 'table2.dat'	! PHAT year 1 possible cluster catalog

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     PCID_1     (nr__1) ! [1/1728] PHAT Cluster identification number
*                                    (<[JSD2012] PC NNNN> in Simbad)
      real*8        RAdeg_1    (nr__1) ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg_1    (nr__1) ! (deg) Declination in decimal degrees (J2000)
      real*4        Rap_1      (nr__1) ! (arcsec) [0.45/6] Aperture radius
      real*4        Reff_1     (nr__1) ! (arcsec) [0.08/2.4]? Effective radius
      real*4        F275W_1    (nr__1) ! (mag) [15/30]? HST/WFC3 F275W band magnitude
      real*4        e_F275W_1  (nr__1) ! (mag) ? Error in F275W
      real*4        F336W_1    (nr__1) ! (mag) [15/28]? HST/WFC3 F336W band magnitude
      real*4        e_F336W_1  (nr__1) ! (mag) ? Error in F336W
      real*4        F475W_1    (nr__1) ! (mag) [15/25]? HST/ACS F475W band magnitude
      real*4        e_F475W_1  (nr__1) ! (mag) ? Error in F475W
      real*4        F814W_1    (nr__1) ! (mag) [13/27]? HST/ACS F814W band magnitude
      real*4        e_F814W_1  (nr__1) ! (mag) ? Error in F814W
      real*4        F110W_1    (nr__1) ! (mag) [12/28]? HST/WFC3 F110W band magnitude
      real*4        e_F110W_1  (nr__1) ! (mag) ? Error in F110W
      real*4        F160W_1    (nr__1) ! (mag) [11/31]? HST/WFC3 F160W band magnitude
      real*4        e_F160W_1  (nr__1) ! (mag) ? Error in F160W
      real*4        Qual_1     (nr__1) ! [1/2.5] By-Eye quality score (2)
      real*4        ApCor_1    (nr__1) ! (mag) [-0.6/-0]? Aperture correction (1)
      character*25  AName_1    (nr__1) ! Alternate names
*Note (1): Aperture corrections are provided such that
*          m_Total_=m_Aperture_+ApCor.
*Note (2): a score between 1 and 3 (1=definite, 2=likely, 3=non-cluster) is
*     assigned independently by team members; the average is given here.

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

C  Declarations for 'table6.dat'	! Background galaxy catalog

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     Seq        (nr__2) ! [1/370] Galaxy identification number
*                                    (<[JSD2012] NNN> in Simbad)
      integer*4     Brick      (nr__2) ! [9/23] PHAT Brick Location (1)
      real*8        RAdeg_2    (nr__2) ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg_2    (nr__2) ! (deg) Declination in decimal degrees (J2000)
      real*4        Rad        (nr__2) ! (arcsec) [0.2/15] Approximate galaxy radius
*Note (1): PHAT observations are grouped into 23 area units known as bricks,
*     each made up of 18 mosaiced HST fields of view in a rectangular 6x3
*     arrangement that covers a ~12x6.5arcmin region of sky

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

C  Declarations for 'table8.dat'	! Revised Bologna catalog of M31 globular clusters
                            (Cat. J/A+A/416/917) revisions

      integer*4 nr__3
      parameter (nr__3=48)	! Number of records
      character*92 ar__3  	! Full-size record

      character*7   Name       (nr__3) ! Revised Bologna catalog name
      integer*4     PCID_2     (nr__3) ! [320/1673]? PHAT cluster identification number
      integer*4     New        (nr__3) ! [1/6]?=9 New RBC classification flag (1)
      integer*4     Old        (nr__3) ! [1/6] Old RBC classification flag (1)
      character*69  Comm       (nr__3) ! Comments
*Note (1): Flag codes follow the conventions of the RBC, with the addition of the
*          value "9" representing an entry that should be removed.
*          Global classification flag as follows:
*   1 = confirmed GC;
*   2 = GC candidates;
*   3 = Controversial object;
*   4 = confirmed galaxy;
*   5 = confirmed H II Region;
*   6 = confirmed star.

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

C  Declarations for 'table9.dat'	! *Hodge-Krienke catalog revisions

      integer*4 nr__4
      parameter (nr__4=21)	! Number of records
      character*37 ar__4  	! Full-size record

      character*12  HKCID      (nr__4) ! Hodge-Krienke cluster name
      integer*4     PCID_3     (nr__4) ! [24/1435]? PHAT cluster identification number
      character*16  New_1      (nr__4) ! PHAT classification (Possible or Non-Cluster)

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

C  Loading file 'table1.dat'	! PHAT year 1 cluster catalog

C  Format for file interpretation

    1 format(
     +  I4,2X,F9.6,2X,F9.6,2X,F4.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,F5.2,2X,
     +  F4.2,2X,F5.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,F5.2,
     +  2X,F4.2,2X,F4.2,2X,F5.2,2X,A25)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,601
        read(1,'(A156)')ar__
        read(ar__,1)
     +  PCID(i__),RAdeg(i__),DEdeg(i__),Rap(i__),Reff(i__),F275W(i__),
     +  e_F275W(i__),F336W(i__),e_F336W(i__),F475W(i__),e_F475W(i__),
     +  F814W(i__),e_F814W(i__),F110W(i__),e_F110W(i__),F160W(i__),
     +  e_F160W(i__),Qual(i__),ApCor(i__),AName(i__)
        if(ar__(35:38) .EQ. '') Reff(i__) = rNULL__
        if(ar__(41:45) .EQ. '') F275W(i__) = rNULL__
        if(ar__(48:51) .EQ. '') e_F275W(i__) = rNULL__
        if(ar__(54:58) .EQ. '') F336W(i__) = rNULL__
        if(ar__(61:64) .EQ. '') e_F336W(i__) = rNULL__
        if(ar__(67:71) .EQ. '') F475W(i__) = rNULL__
        if(ar__(74:77) .EQ. '') e_F475W(i__) = rNULL__
        if(ar__(80:84) .EQ. '') F814W(i__) = rNULL__
        if(ar__(87:90) .EQ. '') e_F814W(i__) = rNULL__
        if(ar__(93:97) .EQ. '') F110W(i__) = rNULL__
        if(ar__(100:103) .EQ. '') e_F110W(i__) = rNULL__
        if(ar__(106:110) .EQ. '') F160W(i__) = rNULL__
        if(ar__(113:116) .EQ. '') e_F160W(i__) = rNULL__
        if(ar__(125:129) .EQ. '') ApCor(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  PCID(i__),RAdeg(i__),DEdeg(i__),Rap(i__),Reff(i__),F275W(i__),
     +  e_F275W(i__),F336W(i__),e_F336W(i__),F475W(i__),e_F475W(i__),
     +  F814W(i__),e_F814W(i__),F110W(i__),e_F110W(i__),F160W(i__),
     +  e_F160W(i__),Qual(i__),ApCor(i__),AName(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! PHAT year 1 possible cluster catalog

C  Format for file interpretation

    2 format(
     +  I4,2X,F9.6,2X,F9.6,2X,F4.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,F5.2,2X,
     +  F4.2,2X,F5.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,F5.2,2X,F4.2,2X,F5.2,
     +  2X,F4.2,2X,F4.2,2X,F5.2,2X,A25)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,237
        read(1,'(A156)')ar__1
        read(ar__1,2)
     +  PCID_1(i__),RAdeg_1(i__),DEdeg_1(i__),Rap_1(i__),Reff_1(i__),
     +  F275W_1(i__),e_F275W_1(i__),F336W_1(i__),e_F336W_1(i__),
     +  F475W_1(i__),e_F475W_1(i__),F814W_1(i__),e_F814W_1(i__),
     +  F110W_1(i__),e_F110W_1(i__),F160W_1(i__),e_F160W_1(i__),
     +  Qual_1(i__),ApCor_1(i__),AName_1(i__)
        if(ar__1(35:38) .EQ. '') Reff_1(i__) = rNULL__
        if(ar__1(41:45) .EQ. '') F275W_1(i__) = rNULL__
        if(ar__1(48:51) .EQ. '') e_F275W_1(i__) = rNULL__
        if(ar__1(54:58) .EQ. '') F336W_1(i__) = rNULL__
        if(ar__1(61:64) .EQ. '') e_F336W_1(i__) = rNULL__
        if(ar__1(67:71) .EQ. '') F475W_1(i__) = rNULL__
        if(ar__1(74:77) .EQ. '') e_F475W_1(i__) = rNULL__
        if(ar__1(80:84) .EQ. '') F814W_1(i__) = rNULL__
        if(ar__1(87:90) .EQ. '') e_F814W_1(i__) = rNULL__
        if(ar__1(93:97) .EQ. '') F110W_1(i__) = rNULL__
        if(ar__1(100:103) .EQ. '') e_F110W_1(i__) = rNULL__
        if(ar__1(106:110) .EQ. '') F160W_1(i__) = rNULL__
        if(ar__1(113:116) .EQ. '') e_F160W_1(i__) = rNULL__
        if(ar__1(125:129) .EQ. '') ApCor_1(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  PCID_1(i__),RAdeg_1(i__),DEdeg_1(i__),Rap_1(i__),Reff_1(i__),
     +  F275W_1(i__),e_F275W_1(i__),F336W_1(i__),e_F336W_1(i__),
     +  F475W_1(i__),e_F475W_1(i__),F814W_1(i__),e_F814W_1(i__),
     +  F110W_1(i__),e_F110W_1(i__),F160W_1(i__),e_F160W_1(i__),
     +  Qual_1(i__),ApCor_1(i__),AName_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Background galaxy catalog

C  Format for file interpretation

    3 format(I3,2X,I2,2X,F9.6,2X,F9.6,2X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,370
        read(1,'(A36)')ar__2
        read(ar__2,3)
     +  Seq(i__),Brick(i__),RAdeg_2(i__),DEdeg_2(i__),Rad(i__)
c    ..............Just test output...........
        write(6,3)
     +  Seq(i__),Brick(i__),RAdeg_2(i__),DEdeg_2(i__),Rad(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table8.dat'	! Revised Bologna catalog of M31 globular clusters
*                            (Cat. J/A+A/416/917) revisions

C  Format for file interpretation

    4 format(A7,2X,I4,3X,I1,2X,I1,3X,A69)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table8.dat')
      write(6,*) '....Loading file: table8.dat'
      do i__=1,48
        read(1,'(A92)')ar__3
        read(ar__3,4)Name(i__),PCID_2(i__),New(i__),Old(i__),Comm(i__)
        if(ar__3(10:13) .EQ. '') PCID_2(i__) = iNULL__
c    ..............Just test output...........
        write(6,4)Name(i__),PCID_2(i__),New(i__),Old(i__),Comm(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table9.dat'	! *Hodge-Krienke catalog revisions

C  Format for file interpretation

    5 format(A12,2X,I4,3X,A16)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table9.dat')
      write(6,*) '....Loading file: table9.dat'
      do i__=1,21
        read(1,'(A37)')ar__4
        read(ar__4,5)HKCID(i__),PCID_3(i__),New_1(i__)
        if(ar__4(15:18) .EQ. '') PCID_3(i__) = iNULL__
c    ..............Just test output...........
        write(6,5)HKCID(i__),PCID_3(i__),New_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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