Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/462/241 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-Apr-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/462/241 Ca abundance for Omega Cen red giants (Norris+ 1996)
*================================================================================
*The giant branch of {omega} Centauri. V. The calcium abundance distribution.
* Norris J.E., Freeman K.C., Mighell K.J.
* <Astrophys. J. 462, 241N (1996)>
* =1996ApJ...462..241N (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Ca II line strength measurements and abundances
for omega Centauri giants
integer*4 nr__
parameter (nr__=521) ! Number of records
character*53 ar__ ! Full-size record
integer*4 Star ! Star name
real*4 Vmag ! (mag) V magnitude
integer*4 r_Vmag ! Source of V magnitude (1)
real*4 Dist ! (arcmin) Radial distance from cluster center
real*4 A_Ca ! ? Ca II H & K line strength index (2)
real*4 W ! ? Calcium triplet (8498-8662A) index (3)
character*3 n ! Code of number of observations (4)
real*4 v_Ca_H_ ! (Sun) ? Calcium abundance
character*2 n__Ca_H_ ! [CH ] CH when CH stars
*Note (1): The source of magnitude is:
* 1: Cannon & Stobie 1973a (1973MNRAS.162..207C),
* Eggen 1972 (1972ApJ...172..639E), and Seitzer 1983
* 2: Lynga 1996 (<J/A+AS/115/297>)
* 3: Woolley et al. 1966 (1966ROAn....2....1W) and present work
*Note (2): Strength index W8542+W8662 is formed with the equivalent
* widths of the two strongest lines of the triplet as defined in
* Armandroff et al. (1991AJ....101.1329A).
*Note (3): The triplet index is defined by
* A(Ca)=1-2.I{bar}(3916, 3985)/[I{bar}(3883, 3915)+I{bar}(3985, 40118)]
* where I{bar}(L1, L2)={integral}{L1 to L2}ILdL/(L2-L1) and
* IL is the measured flux at L as defined in
* Norris et al. (1981ApJ...244..205N)
*Note (4): Three-digit positional code giving number of observations
* obtained with AAT (1), 1.9m telescope in 1992 (2) and 1993 (3).
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Globular cluster calibration data
integer*4 nr__1
parameter (nr__1=19) ! Number of records
character*39 ar__1 ! Full-size record
character*8 Cluster ! Cluster name
character*7 Star_1 ! Star name (1)
real*4 Vmag_1 ! (mag) V magnitude (2)
real*4 WNFM ! Calcium triplet index, from this work
integer*4 o_WNFM ! Number of observations
real*4 Wother ! ? Calcium line index from other works (3)
*Note (1): Nomenclature from:
* Lee (1977b) for 47 Tuc (1977A&AS...27..381)
* Lee (1977a) for M4 (1977A&AS...27..367)
* Woolley et al. (1961) for NGC 6397 (1961RGOB...43..303W)
* Alcaino (1972) for NGC 6752 (1972A&A....16..220A)
*Note (2): Nomenclature from:
* Lee (1977b) for 47 Tuc (1977A&AS...27..381)
* Lee (1977a) for M4 (1977A&AS...27..367)
* Cannon (1974) for NGC 6397 (1974MNRAS.167..551C)
* Cannon & Stobie (1973b) for NGC 6752 (1973MNRAS.162..227C)
*Note (3): From Armandroff & Da Costa (1991AJ....101.1329A) and
* Da Costa et al. (1992AJ....104..154D)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Coordinates (J2000) for omega Centauri giants
integer*4 nr__2
parameter (nr__2=101) ! Number of records
character*32 ar__2 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg ! (deg) Right Ascension J2000
real*8 DEdeg ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
integer*4 Star_2 ! Star name (Section 2)
integer*4 Lynga ! ? Star name, from Lynga 1996 catalog
* (see Appendix B)
integer*4 RAh ! (h) Right ascension (J2000)
integer*4 RAm ! (min) Right ascension (J2000)
real*4 RAs ! (s) Right ascension (J2000)
character*1 DE_ ! Declination sign
integer*4 DEd ! (deg) Declination (J2000)
integer*4 DEm ! (arcmin) Declination (J2000)
integer*4 DEs ! (arcsec) Declination (J2000)
C=============================================================================
C Loading file 'table1.dat' ! Ca II line strength measurements and abundances
* for omega Centauri giants
C Format for file interpretation
1 format(
+ 1X,I4,2X,F5.2,3X,I1,2X,F4.1,3X,F5.3,3X,F4.2,3X,A3,2X,F5.2,A2)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,521
read(1,'(A53)')ar__
read(ar__,1)Star,Vmag,r_Vmag,Dist,A_Ca,W,n,v_Ca_H_,n__Ca_H_
if(ar__(26:30) .EQ. '') A_Ca = rNULL__
if(ar__(34:37) .EQ. '') W = rNULL__
if(ar__(46:50) .EQ. '') v_Ca_H_ = rNULL__
c ..............Just test output...........
write(6,1)Star,Vmag,r_Vmag,Dist,A_Ca,W,n,v_Ca_H_,n__Ca_H_
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Globular cluster calibration data
C Format for file interpretation
2 format(A8,1X,A7,1X,F5.2,1X,F4.2,1X,I1,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,19
read(1,'(A39)')ar__1
read(ar__1,2)Cluster,Star_1,Vmag_1,WNFM,o_WNFM,Wother
if(ar__1(31:34) .EQ. '') Wother = rNULL__
c ..............Just test output...........
write(6,2)Cluster,Star_1,Vmag_1,WNFM,o_WNFM,Wother
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Coordinates (J2000) for omega Centauri giants
C Format for file interpretation
3 format(I4,2X,I4,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,101
read(1,'(A32)')ar__2
read(ar__2,3)Star_2,Lynga,RAh,RAm,RAs,DE_,DEd,DEm,DEs
if(ar__2(7:10) .EQ. '') Lynga = iNULL__
RAdeg = rNULL__
DEdeg = rNULL__
c Derive coordinates RAdeg and DEdeg from input data
c (RAdeg and DEdeg are set to rNULL__ when unknown)
if(RAh .GT. -180) RAdeg=RAh*15.
if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
if(DEd .GE. 0) DEdeg=DEd
if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c ..............Just test output...........
write(6,3)Star_2,Lynga,RAh,RAm,RAs,DE_,DEd,DEm,DEs
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end