Conversion of standardized ReadMe file for
file /./ftp/cats/II/117 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.5, on 2013-May-23
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__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. II/117 Catalog of UBVRI Photometry of Globular Clusters (Peterson 1986)
*================================================================================
*A Catalog of Concentric Aperture UBVRI Photoelectric Photometry
*of Globular Clusters
* Peterson C. J.
* <Publ. Astron. Soc. Pac., 98, 192 (1986)>
* =1986PASP...98..192P
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'data.dat' ! Data (tables 1-7)
integer*4 nr__
parameter (nr__=4256) ! Number of records
character*79 ar__ ! Full-size record
character*13 name ! Cluster Name
character*4 Ref ! *Reference Code
real*4 ap ! (arcmin) ? Aperture Diameter
real*4 Umag ! (mag) *? U Magnitude
real*4 U_B ! (mag) ? Johnson Ultraviolet Color Index
real*4 Bmag ! (mag) ? B Magnitude, computed from V+(B-V)
real*4 B_V ! (mag) ? Johnson Blue Color Index
real*4 Vmag ! (mag) ? V Magnitude
real*4 V_R ! (mag) ? Visual-Red Color Index
real*4 Rmag ! (mag) ? R Magnitude, computed from V-(V-R)
real*4 V_I ! (mag) *? Visual-I Band Color Index
real*4 Imag ! (mag) ? I Magnitude, computed from V-(V-I)
*Note on Ref:
* Literature reference for data entry, following the code of refs.dat
*Note on Umag:
* Computed from V+(B-V)+(U-B) if all data exist for given aperture;
* otherwise the column is left blank
*Note on V-I:
* Generally computed from (V-R)+(R-I) in the original sources of data
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'refs.dat' ! References (table 8)
integer*4 nr__1
parameter (nr__1=50) ! Number of records
character*132 ar__1 ! Full-size record
character*4 Ref_1 ! Reference Code
character*100 Text ! Text of reference
integer*4 N ! Number of Clusters
character*12 Type ! Type of Data
C=============================================================================
C Loading file 'data.dat' ! Data (tables 1-7)
C Format for file interpretation
1 format(
+ A13,1X,A4,1X,F6.3,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,
+ F5.2,1X,F5.2,1X,F5.2,1X,F5.2)
C Effective file loading
open(unit=1,file='data.dat', status='old')
write(6,*) '....Loading file: data.dat'
do i__=1,4256
read(1,'(A79)')ar__
read(ar__,1)
+ name,Ref,ap,Umag,U_B,Bmag,B_V,Vmag,V_R,Rmag,V_I,Imag
if(ar__(20:25) .EQ. '') ap = rNULL__
if(ar__(27:31) .EQ. '') Umag = rNULL__
if(ar__(33:37) .EQ. '') U_B = rNULL__
if(ar__(39:43) .EQ. '') Bmag = rNULL__
if(ar__(45:49) .EQ. '') B_V = rNULL__
if(ar__(51:55) .EQ. '') Vmag = rNULL__
if(ar__(57:61) .EQ. '') V_R = rNULL__
if(ar__(63:67) .EQ. '') Rmag = rNULL__
if(ar__(69:73) .EQ. '') V_I = rNULL__
if(ar__(75:79) .EQ. '') Imag = rNULL__
c ..............Just test output...........
write(6,1)
+ name,Ref,ap,Umag,U_B,Bmag,B_V,Vmag,V_R,Rmag,V_I,Imag
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'refs.dat' ! References (table 8)
C Format for file interpretation
2 format(A4,1X,A100,11X,I3,1X,A12)
C Effective file loading
open(unit=1,file='refs.dat', status='old')
write(6,*) '....Loading file: refs.dat'
do i__=1,50
read(1,'(A132)')ar__1
read(ar__1,2)Ref_1,Text,N,Type
c ..............Just test output...........
write(6,2)Ref_1,Text,N,Type
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end