Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/752/95 into FORTRAN code for reading data files line by line.
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 ! [1/1728] PHAT Cluster identification number
* (<[JSD2012] PC NNNN> in Simbad)
real*8 RAdeg ! (deg) Right ascension in decimal degrees (J2000)
real*8 DEdeg ! (deg) Declination in decimal degrees (J2000)
real*4 Rap ! (arcsec) [0.45/6] Aperture radius
real*4 Reff ! (arcsec) [0.08/2.4]? Effective radius
real*4 F275W ! (mag) [15/30]? HST/WFC3 F275W band magnitude
real*4 e_F275W ! (mag) ? Error in F275W
real*4 F336W ! (mag) [15/28]? HST/WFC3 F336W band magnitude
real*4 e_F336W ! (mag) ? Error in F336W
real*4 F475W ! (mag) [15/25]? HST/ACS F475W band magnitude
real*4 e_F475W ! (mag) ? Error in F475W
real*4 F814W ! (mag) [13/27]? HST/ACS F814W band magnitude
real*4 e_F814W ! (mag) ? Error in F814W
real*4 F110W ! (mag) [12/28]? HST/WFC3 F110W band magnitude
real*4 e_F110W ! (mag) ? Error in F110W
real*4 F160W ! (mag) [11/31]? HST/WFC3 F160W band magnitude
real*4 e_F160W ! (mag) ? Error in F160W
real*4 Qual ! [1/2.5] By-Eye quality score (2)
real*4 ApCor ! (mag) [-0.6/-0]? Aperture correction (1)
character*25 AName ! 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 ! [1/1728] PHAT Cluster identification number
* (<[JSD2012] PC NNNN> in Simbad)
real*8 RAdeg_1 ! (deg) Right ascension in decimal degrees (J2000)
real*8 DEdeg_1 ! (deg) Declination in decimal degrees (J2000)
real*4 Rap_1 ! (arcsec) [0.45/6] Aperture radius
real*4 Reff_1 ! (arcsec) [0.08/2.4]? Effective radius
real*4 F275W_1 ! (mag) [15/30]? HST/WFC3 F275W band magnitude
real*4 e_F275W_1 ! (mag) ? Error in F275W
real*4 F336W_1 ! (mag) [15/28]? HST/WFC3 F336W band magnitude
real*4 e_F336W_1 ! (mag) ? Error in F336W
real*4 F475W_1 ! (mag) [15/25]? HST/ACS F475W band magnitude
real*4 e_F475W_1 ! (mag) ? Error in F475W
real*4 F814W_1 ! (mag) [13/27]? HST/ACS F814W band magnitude
real*4 e_F814W_1 ! (mag) ? Error in F814W
real*4 F110W_1 ! (mag) [12/28]? HST/WFC3 F110W band magnitude
real*4 e_F110W_1 ! (mag) ? Error in F110W
real*4 F160W_1 ! (mag) [11/31]? HST/WFC3 F160W band magnitude
real*4 e_F160W_1 ! (mag) ? Error in F160W
real*4 Qual_1 ! [1/2.5] By-Eye quality score (2)
real*4 ApCor_1 ! (mag) [-0.6/-0]? Aperture correction (1)
character*25 AName_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 ! [1/370] Galaxy identification number
* (<[JSD2012] NNN> in Simbad)
integer*4 Brick ! [9/23] PHAT Brick Location (1)
real*8 RAdeg_2 ! (deg) Right ascension in decimal degrees (J2000)
real*8 DEdeg_2 ! (deg) Declination in decimal degrees (J2000)
real*4 Rad ! (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 ! Revised Bologna catalog name
integer*4 PCID_2 ! [320/1673]? PHAT cluster identification number
integer*4 New ! [1/6]?=9 New RBC classification flag (1)
integer*4 Old ! [1/6] Old RBC classification flag (1)
character*69 Comm ! 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 ! Hodge-Krienke cluster name
integer*4 PCID_3 ! [24/1435]? PHAT cluster identification number
character*16 New_1 ! 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,RAdeg,DEdeg,Rap,Reff,F275W,e_F275W,F336W,e_F336W,F475W,
+ e_F475W,F814W,e_F814W,F110W,e_F110W,F160W,e_F160W,Qual,ApCor,
+ AName
if(ar__(35:38) .EQ. '') Reff = rNULL__
if(ar__(41:45) .EQ. '') F275W = rNULL__
if(ar__(48:51) .EQ. '') e_F275W = rNULL__
if(ar__(54:58) .EQ. '') F336W = rNULL__
if(ar__(61:64) .EQ. '') e_F336W = rNULL__
if(ar__(67:71) .EQ. '') F475W = rNULL__
if(ar__(74:77) .EQ. '') e_F475W = rNULL__
if(ar__(80:84) .EQ. '') F814W = rNULL__
if(ar__(87:90) .EQ. '') e_F814W = rNULL__
if(ar__(93:97) .EQ. '') F110W = rNULL__
if(ar__(100:103) .EQ. '') e_F110W = rNULL__
if(ar__(106:110) .EQ. '') F160W = rNULL__
if(ar__(113:116) .EQ. '') e_F160W = rNULL__
if(ar__(125:129) .EQ. '') ApCor = rNULL__
c ..............Just test output...........
write(6,1)
+ PCID,RAdeg,DEdeg,Rap,Reff,F275W,e_F275W,F336W,e_F336W,F475W,
+ e_F475W,F814W,e_F814W,F110W,e_F110W,F160W,e_F160W,Qual,ApCor,
+ AName
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,RAdeg_1,DEdeg_1,Rap_1,Reff_1,F275W_1,e_F275W_1,F336W_1,
+ e_F336W_1,F475W_1,e_F475W_1,F814W_1,e_F814W_1,F110W_1,
+ e_F110W_1,F160W_1,e_F160W_1,Qual_1,ApCor_1,AName_1
if(ar__1(35:38) .EQ. '') Reff_1 = rNULL__
if(ar__1(41:45) .EQ. '') F275W_1 = rNULL__
if(ar__1(48:51) .EQ. '') e_F275W_1 = rNULL__
if(ar__1(54:58) .EQ. '') F336W_1 = rNULL__
if(ar__1(61:64) .EQ. '') e_F336W_1 = rNULL__
if(ar__1(67:71) .EQ. '') F475W_1 = rNULL__
if(ar__1(74:77) .EQ. '') e_F475W_1 = rNULL__
if(ar__1(80:84) .EQ. '') F814W_1 = rNULL__
if(ar__1(87:90) .EQ. '') e_F814W_1 = rNULL__
if(ar__1(93:97) .EQ. '') F110W_1 = rNULL__
if(ar__1(100:103) .EQ. '') e_F110W_1 = rNULL__
if(ar__1(106:110) .EQ. '') F160W_1 = rNULL__
if(ar__1(113:116) .EQ. '') e_F160W_1 = rNULL__
if(ar__1(125:129) .EQ. '') ApCor_1 = rNULL__
c ..............Just test output...........
write(6,2)
+ PCID_1,RAdeg_1,DEdeg_1,Rap_1,Reff_1,F275W_1,e_F275W_1,F336W_1,
+ e_F336W_1,F475W_1,e_F475W_1,F814W_1,e_F814W_1,F110W_1,
+ e_F110W_1,F160W_1,e_F160W_1,Qual_1,ApCor_1,AName_1
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,Brick,RAdeg_2,DEdeg_2,Rad
c ..............Just test output...........
write(6,3)Seq,Brick,RAdeg_2,DEdeg_2,Rad
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,PCID_2,New,Old,Comm
if(ar__3(10:13) .EQ. '') PCID_2 = iNULL__
c ..............Just test output...........
write(6,4)Name,PCID_2,New,Old,Comm
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,PCID_3,New_1
if(ar__4(15:18) .EQ. '') PCID_3 = iNULL__
c ..............Just test output...........
write(6,5)HKCID,PCID_3,New_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end