Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/327/918 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-11
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/MNRAS/327/918 CaII in extragalactic red giants (Tolstoy+, 2001)
*================================================================================
*Using the Ca II triplet to trace abundance variations in individual red giant
*branch stars in three nearby galaxies.
* Tolstoy E., Irwin M.J., Cole A.A., Pasquini L., Gilmozzi R., Gallagher J.S.
* <Mon. Not. R. Astron. Soc. 327, 918 (2001)>
* =2001MNRAS.327..918T
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! Sculptor results
integer*4 nr__
parameter (nr__=44) ! Number of records
character*63 ar__ ! Full-size record
character*7 Name ! Star designation (G1)
character*1 n_Name ! [*$p+|] Note (1)
real*4 Imag ! (mag) I magnitude
real*4 V_I ! (mag) V-I colour index
real*4 EWCaII ! (0.1nm) Summed equivalent width of the two strongest
* lines in the Ca II triplet absorption-line
* feature, 8542{AA}+8662{AA}
real*4 e_EWCaII ! (0.1nm) rms uncertainty on EWCaII
real*4 v_Fe_H_ ! (Sun) ? Metallicity
real*4 e__Fe_H_ ! (Sun) ? rms uncertainty on [Fe/H]
real*4 RV ! (km/s) Measured radial velocity
real*4 e_RV ! (km/s) rms uncertainty on RV
integer*4 Offset ! (km/s) Offset of the star position in a through-slit
* image to correct the radial velocity
real*4 RVc ! (km/s) Corrected radial velocity (RV + Offset)
*Note (1): Notes as follows:
* * = Too blue to be an RGB star;
* not included in Fig. 12. (table5) or Fig. 15 (table6)
* $ = Probably not a Sculptor member, from radial velocity;
* not included in Fig. 12.
* p = Probably a horizontal branch star in Sculptor;
* not included in Fig. 12.
* + = This could be a Galactic M star, certainly not a Sculptor member;
* not included in Fig. 12
* | = Large error bars on equivalent width measurements;
* plotted as crosses in Fig. 15. (table6) or Fig. 18 (table7)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table6.dat' ! Fornax result
integer*4 nr__1
parameter (nr__1=33) ! Number of records
character*63 ar__1 ! Full-size record
character*7 Name_1 ! Star designation (G1)
character*1 n_Name_1 ! [*$p+|] Note (1)
real*4 Imag_1 ! (mag) I magnitude
real*4 V_I_1 ! (mag) V-I colour index
real*4 EWCaII_1 ! (0.1nm) Summed equivalent width of the two strongest
* lines in the Ca II triplet absorption-line
* feature, 8542{AA}+8662{AA}
real*4 e_EWCaII_1 ! (0.1nm) rms uncertainty on EWCaII
real*4 v_Fe_H__1 ! (Sun) ? Metallicity
real*4 e__Fe_H__1 ! (Sun) ? rms uncertainty on [Fe/H]
real*4 RV_1 ! (km/s) Measured radial velocity
real*4 e_RV_1 ! (km/s) rms uncertainty on RV
integer*4 Offset_1 ! (km/s) Offset of the star position in a through-slit
* image to correct the radial velocity
real*4 RVc_1 ! (km/s) Corrected radial velocity (RV + Offset)
*Note (1): Notes as follows:
* * = Too blue to be an RGB star;
* not included in Fig. 12. (table5) or Fig. 15 (table6)
* $ = Probably not a Sculptor member, from radial velocity;
* not included in Fig. 12.
* p = Probably a horizontal branch star in Sculptor;
* not included in Fig. 12.
* + = This could be a Galactic M star, certainly not a Sculptor member;
* not included in Fig. 12
* | = Large error bars on equivalent width measurements;
* plotted as crosses in Fig. 15. (table6) or Fig. 18 (table7)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table7.dat' ! NGC 6822 results
integer*4 nr__2
parameter (nr__2=26) ! Number of records
character*63 ar__2 ! Full-size record
character*7 Name_2 ! Star designation (G1)
character*1 n_Name_2 ! [*$p+|] Note (1)
real*4 Imag_2 ! (mag) I magnitude
real*4 V_I_2 ! (mag) V-I colour index
real*4 EWCaII_2 ! (0.1nm) Summed equivalent width of the two strongest
* lines in the Ca II triplet absorption-line
* feature, 8542{AA}+8662{AA}
real*4 e_EWCaII_2 ! (0.1nm) rms uncertainty on EWCaII
real*4 v_Fe_H__2 ! (Sun) ? Metallicity
real*4 e__Fe_H__2 ! (Sun) ? rms uncertainty on [Fe/H]
real*4 RV_2 ! (km/s) Measured radial velocity
real*4 e_RV_2 ! (km/s) rms uncertainty on RV
integer*4 Offset_2 ! (km/s) Offset of the star position in a through-slit
* image to correct the radial velocity
real*4 RVc_2 ! (km/s) Corrected radial velocity (RV + Offset)
*Note (1): Notes as follows:
* * = Too blue to be an RGB star;
* not included in Fig. 12. (table5) or Fig. 15 (table6)
* $ = Probably not a Sculptor member, from radial velocity;
* not included in Fig. 12.
* p = Probably a horizontal branch star in Sculptor;
* not included in Fig. 12.
* + = This could be a Galactic M star, certainly not a Sculptor member;
* not included in Fig. 12
* | = Large error bars on equivalent width measurements;
* plotted as crosses in Fig. 15. (table6) or Fig. 18 (table7)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablea1.dat' ! Sculptor positions
integer*4 nr__3
parameter (nr__3=44) ! Number of records
character*28 ar__3 ! Full-size record
C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg ! (deg) Right Ascension J2000.0
real*8 DEdeg ! (deg) Declination J2000.0
C ---------------------------------- ! (position vector(s) in degrees)
character*7 Name_3 ! Star name (G1)
integer*4 RAh ! (h) Right ascension (J2000.0)
integer*4 RAm ! (min) Right ascension (J2000.0)
real*4 RAs ! (s) Right ascension (J2000.0)
character*1 DE_ ! Declination sign (J2000.0)
integer*4 DEd ! (deg) Declination (J2000.0)
integer*4 DEm ! (arcmin) Declination (J2000.0)
integer*4 DEs ! (arcsec) Declination (J2000.0)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablea2.dat' ! Fornax positions
integer*4 nr__4
parameter (nr__4=33) ! Number of records
character*28 ar__4 ! Full-size record
C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_1 ! (deg) Right Ascension J2000.0
real*8 DEdeg_1 ! (deg) Declination J2000.0
C ---------------------------------- ! (position vector(s) in degrees)
character*7 Name_4 ! Star name (G1)
integer*4 RAh_1 ! (h) Right ascension (J2000.0)
integer*4 RAm_1 ! (min) Right ascension (J2000.0)
real*4 RAs_1 ! (s) Right ascension (J2000.0)
character*1 DE__1 ! Declination sign (J2000.0)
integer*4 DEd_1 ! (deg) Declination (J2000.0)
integer*4 DEm_1 ! (arcmin) Declination (J2000.0)
integer*4 DEs_1 ! (arcsec) Declination (J2000.0)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablea3.dat' ! NGC 6822 Positions
integer*4 nr__5
parameter (nr__5=26) ! Number of records
character*28 ar__5 ! Full-size record
C J2000.0 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_2 ! (deg) Right Ascension J2000.0
real*8 DEdeg_2 ! (deg) Declination J2000.0
C ---------------------------------- ! (position vector(s) in degrees)
character*7 Name_5 ! Star name (G1)
integer*4 RAh_2 ! (h) Right ascension (J2000.0)
integer*4 RAm_2 ! (min) Right ascension (J2000.0)
real*4 RAs_2 ! (s) Right ascension (J2000.0)
character*1 DE__2 ! Declination sign (J2000.0)
integer*4 DEd_2 ! (deg) Declination (J2000.0)
integer*4 DEm_2 ! (arcmin) Declination (J2000.0)
integer*4 DEs_2 ! (arcsec) Declination (J2000.0)
C=============================================================================
C Loading file 'table5.dat' ! Sculptor results
C Format for file interpretation
1 format(
+ A7,A1,1X,F4.1,1X,F4.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F6.1,
+ 1X,F4.1,1X,I4,1X,F6.1)
C Effective file loading
open(unit=1,status='old',file=
+'table5.dat')
write(6,*) '....Loading file: table5.dat'
do i__=1,44
read(1,'(A63)')ar__
read(ar__,1)
+ Name,n_Name,Imag,V_I,EWCaII,e_EWCaII,v_Fe_H_,e__Fe_H_,RV,e_RV,
+ Offset,RVc
if(ar__(30:34) .EQ. '') v_Fe_H_ = rNULL__
if(ar__(36:39) .EQ. '') e__Fe_H_ = rNULL__
c ..............Just test output...........
write(6,1)
+ Name,n_Name,Imag,V_I,EWCaII,e_EWCaII,v_Fe_H_,e__Fe_H_,RV,e_RV,
+ Offset,RVc
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table6.dat' ! Fornax result
C Format for file interpretation
2 format(
+ A7,A1,1X,F4.1,1X,F4.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F6.1,
+ 1X,F4.1,1X,I4,1X,F6.1)
C Effective file loading
open(unit=1,status='old',file=
+'table6.dat')
write(6,*) '....Loading file: table6.dat'
do i__=1,33
read(1,'(A63)')ar__1
read(ar__1,2)
+ Name_1,n_Name_1,Imag_1,V_I_1,EWCaII_1,e_EWCaII_1,v_Fe_H__1,
+ e__Fe_H__1,RV_1,e_RV_1,Offset_1,RVc_1
if(ar__1(30:34) .EQ. '') v_Fe_H__1 = rNULL__
if(ar__1(36:39) .EQ. '') e__Fe_H__1 = rNULL__
c ..............Just test output...........
write(6,2)
+ Name_1,n_Name_1,Imag_1,V_I_1,EWCaII_1,e_EWCaII_1,v_Fe_H__1,
+ e__Fe_H__1,RV_1,e_RV_1,Offset_1,RVc_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table7.dat' ! NGC 6822 results
C Format for file interpretation
3 format(
+ A7,A1,1X,F4.1,1X,F4.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F6.1,
+ 1X,F4.1,1X,I4,1X,F6.1)
C Effective file loading
open(unit=1,status='old',file=
+'table7.dat')
write(6,*) '....Loading file: table7.dat'
do i__=1,26
read(1,'(A63)')ar__2
read(ar__2,3)
+ Name_2,n_Name_2,Imag_2,V_I_2,EWCaII_2,e_EWCaII_2,v_Fe_H__2,
+ e__Fe_H__2,RV_2,e_RV_2,Offset_2,RVc_2
if(ar__2(30:34) .EQ. '') v_Fe_H__2 = rNULL__
if(ar__2(36:39) .EQ. '') e__Fe_H__2 = rNULL__
c ..............Just test output...........
write(6,3)
+ Name_2,n_Name_2,Imag_2,V_I_2,EWCaII_2,e_EWCaII_2,v_Fe_H__2,
+ e__Fe_H__2,RV_2,e_RV_2,Offset_2,RVc_2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tablea1.dat' ! Sculptor positions
C Format for file interpretation
4 format(A7,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2)
C Effective file loading
open(unit=1,status='old',file=
+'tablea1.dat')
write(6,*) '....Loading file: tablea1.dat'
do i__=1,44
read(1,'(A28)')ar__3
read(ar__3,4)Name_3,RAh,RAm,RAs,DE_,DEd,DEm,DEs
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,4)Name_3,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=============================================================================
C Loading file 'tablea2.dat' ! Fornax positions
C Format for file interpretation
5 format(A7,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2)
C Effective file loading
open(unit=1,status='old',file=
+'tablea2.dat')
write(6,*) '....Loading file: tablea2.dat'
do i__=1,33
read(1,'(A28)')ar__4
read(ar__4,5)Name_4,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1
RAdeg_1 = rNULL__
DEdeg_1 = rNULL__
c Derive coordinates RAdeg_1 and DEdeg_1 from input data
c (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
if(DEd_1 .GE. 0) DEdeg_1=DEd_1
if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c ..............Just test output...........
write(6,5)Name_4,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1
write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tablea3.dat' ! NGC 6822 Positions
C Format for file interpretation
6 format(A7,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2)
C Effective file loading
open(unit=1,status='old',file=
+'tablea3.dat')
write(6,*) '....Loading file: tablea3.dat'
do i__=1,26
read(1,'(A28)')ar__5
read(ar__5,6)Name_5,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2
RAdeg_2 = rNULL__
DEdeg_2 = rNULL__
c Derive coordinates RAdeg_2 and DEdeg_2 from input data
c (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
if(RAh_2 .GT. -180) RAdeg_2=RAh_2*15.
if(RAm_2 .GT. -180) RAdeg_2=RAdeg_2+RAm_2/4.
if(RAs_2 .GT. -180) RAdeg_2=RAdeg_2+RAs_2/240.
if(DEd_2 .GE. 0) DEdeg_2=DEd_2
if(DEm_2 .GE. 0) DEdeg_2=DEdeg_2+DEm_2/60.
if(DEs_2 .GE. 0) DEdeg_2=DEdeg_2+DEs_2/3600.
if(DE__2.EQ.'-'.AND.DEdeg_2.GE.0) DEdeg_2=-DEdeg_2
c ..............Just test output...........
write(6,6)Name_5,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2
write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end