Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/632/894 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-Aug-18
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/632/894 Blue stragglers, HB and turnoff stars in 4 GC (De Marco+, 2005)
*================================================================================
*A spectroscopic analysis of blue stragglers, horizontal branch stars, and
*turnoff stars in four globular clusters.
* De Marco O., Shara M.M., Zurek D., Ouellette J.A., Lanz T., Saffer R.A.,
* Sepinsky J.F.
* <Astrophys. J., 632, 894-919 (2005)>
* =2005ApJ...632..894D (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Observations
integer*4 nr__
parameter (nr__=55) ! Number of records
character*92 ar__ ! Full-size record
C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg (nr__) ! (deg) Right Ascension J2000.0
real*8 DEdeg (nr__) ! (deg) Declination J2000.0
C ---------------------------------- ! (position vector(s) in degrees)
character*9 Frame (nr__) ! STIS/FOS Frame designation
character*11 Star (nr__) ! Star ID (NGC NNNN-NN)
integer*4 RAh (nr__) ! (h) Right ascension (J2000.0) (1)
integer*4 RAm (nr__) ! (min) Right ascension (J2000.0)
real*4 RAs (nr__) ! (s) Right ascension (J2000.0)
character*1 DE_ (nr__) ! Declination sign (J2000.0) (1)
integer*4 DEd (nr__) ! (deg) Declination (J2000.0)
integer*4 DEm (nr__) ! (arcmin) Declination (J2000.0)
real*4 DEs (nr__) ! (arcsec) Declination (J2000.0)
integer*4 Xpix (nr__) ! (pix) Pixel image (1)
integer*4 Ypix (nr__) ! (pix) Pixel image (1)
integer*4 Slit (nr__) ! ?=- Pixel slit, y-pixel position of the
* spectrum on the CCD image
real*4 R (nr__) ! (arcsec) Radial distance from cluster center
real*4 F336W (nr__) ! (mag) ?=- Observed WFPC2 F336W magnitude (2)
real*4 F439W (nr__) ! (mag) ?=- Observed WFPC2 F439W magnitude (2)
real*4 F555W (nr__) ! (mag) ?=- Observed WFPC2 F555W magnitude (2)
real*4 F814W (nr__) ! (mag) ?=- Observed WFPC2 F814W magnitude (2)
*Note (1): Right ascension, declination, and pixel positions of the stars
* analyzed were determined with the cursor on the images presented in
* Figs. 9-12. The uncertainties are 0.01s, 0.01", and 1-pixel.
*Note (2): Observed WFPC2 photometric magnitudes determined from PSF photometry.
* The best-fitting synthetic spectra for nonvariable stars were scaled to these
* F555W magnitudes in the way described in Sect. 4.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Results
integer*4 nr__1
parameter (nr__1=55) ! Number of records
character*96 ar__1 ! Full-size record
character*11 Star_1 (nr__1) ! Star ID (NGC NNNN-NN)
character*1 Flag (nr__1) ! [f] Flag on Star (1)
character*2 Notes (nr__1) ! Variability note (1)
character*3 CMD (nr__1) ! CMD Type
real*4 logg (nr__1) ! ([cm/s2]) Surface gravity
real*4 e_logg (nr__1) ! ([cm/s2]) rms uncertainty on logg
integer*4 Teff (nr__1) ! (K) Effective temperature
integer*4 e_Teff (nr__1) ! (K) rms uncertainty on Teff
real*4 Rad (nr__1) ! (Rsun) Radius
real*4 e_Rad (nr__1) ! (Rsun) rms uncertainty on Rad
real*4 Lum (nr__1) ! (Lsun) Luminosity
real*4 e_Lum (nr__1) ! (Lsun) rms uncertainty on Lum
real*4 Mass (nr__1) ! (Msun) Mass
real*4 b_Mass (nr__1) ! (Msun) Lower value of Mass interval
real*4 B_Mass_1 (nr__1) ! (Msun) Upper value of Mass interval
real*4 f (nr__1) ! Scaling factor (2)
real*4 Dm (nr__1) ! (mag) F555W_SP_-F555W_p_ difference
real*4 d_B_V (nr__1) ! (mag) ?=- (F439W_SP_-F555W_SP_)-(F439W_p_-F555W_p_)
* difference
real*4 d_U_V (nr__1) ! (mag) ?=- (F3369W_SP_-F555W_SP_)-(F336_P_-F555W_P_)
* difference
*Note (1): Notes as follows:
* v = indicates stars that are suspected of variability (Sect. 4). Radii,
* luminosities, and masses of these stars have been determined by scaling
* the models to the spectroscopy times 0.80, not the photometry, as is the
* case for the rest of the sample (see Sect. 7.2).
* ":" = a single colon indicates stars suspected of low-level blending based on
* the F555W magnitude photometry/spectrophotometry comparison (Sect. 7.2)
* "::" = a double colon indicates stars suspected of moderate blending or where
* the magnitude and color photometry/spectrophotometry comparison is
* outside the random error range; these stars have been given a larger
* temperature error (Sect. 7.2).
* f = This star's parameters were derived from the Paschen continuum and Balmer
* lines, but for these values the Balmer continuum of the data is
* fainter than that of the model. Stars with this characteristic are
* discussed in Sect. 10.
*Note (2): Scaling factors are derived from a ratio of the spectrophotometric
* (SP) and photometric (P; Table 2) values: 10( F555W_SP_-F555W_P_)/2.5.
C=============================================================================
C Loading file 'table2.dat' ! Observations
C Format for file interpretation
1 format(
+ A9,1X,A11,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,I4,1X,
+ I4,1X,I3,1X,F5.2,1X,F6.3,1X,F5.2,1X,F5.2,1X,F6.3)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,55
read(1,'(A92)')ar__
read(ar__,1)
+ Frame(i__),Star(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),Xpix(i__),Ypix(i__),Slit(i__),
+ R(i__),F336W(i__),F439W(i__),F555W(i__),F814W(i__)
if (Slit(i__) .EQ. 45) Slit(i__) = iNULL__
if (idig(ar__(68:73)).EQ.0) F336W(i__) = rNULL__
if (idig(ar__(75:79)).EQ.0) F439W(i__) = rNULL__
if (idig(ar__(81:85)).EQ.0) F555W(i__) = rNULL__
if (idig(ar__(87:92)).EQ.0) F814W(i__) = rNULL__
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,1)
+ Frame(i__),Star(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
+ DEd(i__),DEm(i__),DEs(i__),Xpix(i__),Ypix(i__),Slit(i__),
+ R(i__),F336W(i__),F439W(i__),F555W(i__),F814W(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4.dat' ! Results
C Format for file interpretation
2 format(
+ A11,A1,1X,A2,1X,A3,1X,F4.2,1X,F4.2,2X,I5,1X,I3,1X,F3.1,1X,
+ F3.1,1X,F4.1,1X,F4.1,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F5.2,
+ 1X,F5.2,1X,F5.2)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,55
read(1,'(A96)')ar__1
read(ar__1,2)
+ Star_1(i__),Flag(i__),Notes(i__),CMD(i__),logg(i__),
+ e_logg(i__),Teff(i__),e_Teff(i__),Rad(i__),e_Rad(i__),
+ Lum(i__),e_Lum(i__),Mass(i__),b_Mass(i__),B_Mass_1(i__),
+ f(i__),Dm(i__),d_B_V(i__),d_U_V(i__)
if (idig(ar__1(86:90)).EQ.0) d_B_V(i__) = rNULL__
if (idig(ar__1(92:96)).EQ.0) d_U_V(i__) = rNULL__
c ..............Just test output...........
write(6,2)
+ Star_1(i__),Flag(i__),Notes(i__),CMD(i__),logg(i__),
+ e_logg(i__),Teff(i__),e_Teff(i__),Rad(i__),e_Rad(i__),
+ Lum(i__),e_Lum(i__),Mass(i__),b_Mass(i__),B_Mass_1(i__),
+ f(i__),Dm(i__),d_B_V(i__),d_U_V(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end
C Locate position of first digit in string; or return 0
integer function idig(c)
character*(*) c
character*1 c1
integer lc,i
lc=len(c)
idig=0
do i=1,lc
if(c(i:i).ne.' ') go to 1
end do
1 if(i.gt.lc) return
c1=c(i:i)
if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
if(i.gt.lc) return
c1=c(i:i)
if(c1.ge.'0'.and.c1.le.'9') idig=i
return
end