Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/327/918 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-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 (nr__) ! Star designation (G1)
character*1 n_Name (nr__) ! [*$p+|] Note (1)
real*4 Imag (nr__) ! (mag) I magnitude
real*4 V_I (nr__) ! (mag) V-I colour index
real*4 EWCaII (nr__) ! (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 (nr__) ! (0.1nm) rms uncertainty on EWCaII
real*4 v_Fe_H_ (nr__) ! (Sun) ? Metallicity
real*4 e__Fe_H_ (nr__) ! (Sun) ? rms uncertainty on [Fe/H]
real*4 RV (nr__) ! (km/s) Measured radial velocity
real*4 e_RV (nr__) ! (km/s) rms uncertainty on RV
integer*4 Offset (nr__) ! (km/s) Offset of the star position in a through-slit
* image to correct the radial velocity
real*4 RVc (nr__) ! (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 (nr__1) ! Star designation (G1)
character*1 n_Name_1 (nr__1) ! [*$p+|] Note (1)
real*4 Imag_1 (nr__1) ! (mag) I magnitude
real*4 V_I_1 (nr__1) ! (mag) V-I colour index
real*4 EWCaII_1 (nr__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 (nr__1) ! (0.1nm) rms uncertainty on EWCaII
real*4 v_Fe_H__1 (nr__1) ! (Sun) ? Metallicity
real*4 e__Fe_H__1 (nr__1) ! (Sun) ? rms uncertainty on [Fe/H]
real*4 RV_1 (nr__1) ! (km/s) Measured radial velocity
real*4 e_RV_1 (nr__1) ! (km/s) rms uncertainty on RV
integer*4 Offset_1 (nr__1) ! (km/s) Offset of the star position in a through-slit
* image to correct the radial velocity
real*4 RVc_1 (nr__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 (nr__2) ! Star designation (G1)
character*1 n_Name_2 (nr__2) ! [*$p+|] Note (1)
real*4 Imag_2 (nr__2) ! (mag) I magnitude
real*4 V_I_2 (nr__2) ! (mag) V-I colour index
real*4 EWCaII_2 (nr__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 (nr__2) ! (0.1nm) rms uncertainty on EWCaII
real*4 v_Fe_H__2 (nr__2) ! (Sun) ? Metallicity
real*4 e__Fe_H__2 (nr__2) ! (Sun) ? rms uncertainty on [Fe/H]
real*4 RV_2 (nr__2) ! (km/s) Measured radial velocity
real*4 e_RV_2 (nr__2) ! (km/s) rms uncertainty on RV
integer*4 Offset_2 (nr__2) ! (km/s) Offset of the star position in a through-slit
* image to correct the radial velocity
real*4 RVc_2 (nr__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 (nr__3) ! (deg) Right Ascension J2000.0
real*8 DEdeg (nr__3) ! (deg) Declination J2000.0
C ---------------------------------- ! (position vector(s) in degrees)
character*7 Name_3 (nr__3) ! Star name (G1)
integer*4 RAh (nr__3) ! (h) Right ascension (J2000.0)
integer*4 RAm (nr__3) ! (min) Right ascension (J2000.0)
real*4 RAs (nr__3) ! (s) Right ascension (J2000.0)
character*1 DE_ (nr__3) ! Declination sign (J2000.0)
integer*4 DEd (nr__3) ! (deg) Declination (J2000.0)
integer*4 DEm (nr__3) ! (arcmin) Declination (J2000.0)
integer*4 DEs (nr__3) ! (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 (nr__4) ! (deg) Right Ascension J2000.0
real*8 DEdeg_1 (nr__4) ! (deg) Declination J2000.0
C ---------------------------------- ! (position vector(s) in degrees)
character*7 Name_4 (nr__4) ! Star name (G1)
integer*4 RAh_1 (nr__4) ! (h) Right ascension (J2000.0)
integer*4 RAm_1 (nr__4) ! (min) Right ascension (J2000.0)
real*4 RAs_1 (nr__4) ! (s) Right ascension (J2000.0)
character*1 DE__1 (nr__4) ! Declination sign (J2000.0)
integer*4 DEd_1 (nr__4) ! (deg) Declination (J2000.0)
integer*4 DEm_1 (nr__4) ! (arcmin) Declination (J2000.0)
integer*4 DEs_1 (nr__4) ! (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 (nr__5) ! (deg) Right Ascension J2000.0
real*8 DEdeg_2 (nr__5) ! (deg) Declination J2000.0
C ---------------------------------- ! (position vector(s) in degrees)
character*7 Name_5 (nr__5) ! Star name (G1)
integer*4 RAh_2 (nr__5) ! (h) Right ascension (J2000.0)
integer*4 RAm_2 (nr__5) ! (min) Right ascension (J2000.0)
real*4 RAs_2 (nr__5) ! (s) Right ascension (J2000.0)
character*1 DE__2 (nr__5) ! Declination sign (J2000.0)
integer*4 DEd_2 (nr__5) ! (deg) Declination (J2000.0)
integer*4 DEm_2 (nr__5) ! (arcmin) Declination (J2000.0)
integer*4 DEs_2 (nr__5) ! (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(i__),n_Name(i__),Imag(i__),V_I(i__),EWCaII(i__),
+ e_EWCaII(i__),v_Fe_H_(i__),e__Fe_H_(i__),RV(i__),e_RV(i__),
+ Offset(i__),RVc(i__)
if(ar__(30:34) .EQ. '') v_Fe_H_(i__) = rNULL__
if(ar__(36:39) .EQ. '') e__Fe_H_(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ Name(i__),n_Name(i__),Imag(i__),V_I(i__),EWCaII(i__),
+ e_EWCaII(i__),v_Fe_H_(i__),e__Fe_H_(i__),RV(i__),e_RV(i__),
+ Offset(i__),RVc(i__)
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(i__),n_Name_1(i__),Imag_1(i__),V_I_1(i__),
+ EWCaII_1(i__),e_EWCaII_1(i__),v_Fe_H__1(i__),e__Fe_H__1(i__),
+ RV_1(i__),e_RV_1(i__),Offset_1(i__),RVc_1(i__)
if(ar__1(30:34) .EQ. '') v_Fe_H__1(i__) = rNULL__
if(ar__1(36:39) .EQ. '') e__Fe_H__1(i__) = rNULL__
c ..............Just test output...........
write(6,2)
+ Name_1(i__),n_Name_1(i__),Imag_1(i__),V_I_1(i__),
+ EWCaII_1(i__),e_EWCaII_1(i__),v_Fe_H__1(i__),e__Fe_H__1(i__),
+ RV_1(i__),e_RV_1(i__),Offset_1(i__),RVc_1(i__)
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(i__),n_Name_2(i__),Imag_2(i__),V_I_2(i__),
+ EWCaII_2(i__),e_EWCaII_2(i__),v_Fe_H__2(i__),e__Fe_H__2(i__),
+ RV_2(i__),e_RV_2(i__),Offset_2(i__),RVc_2(i__)
if(ar__2(30:34) .EQ. '') v_Fe_H__2(i__) = rNULL__
if(ar__2(36:39) .EQ. '') e__Fe_H__2(i__) = rNULL__
c ..............Just test output...........
write(6,3)
+ Name_2(i__),n_Name_2(i__),Imag_2(i__),V_I_2(i__),
+ EWCaII_2(i__),e_EWCaII_2(i__),v_Fe_H__2(i__),e__Fe_H__2(i__),
+ RV_2(i__),e_RV_2(i__),Offset_2(i__),RVc_2(i__)
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(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(i__)
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,4)
+ Name_3(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
+ DEm(i__),DEs(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 '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(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
+ DEd_1(i__),DEm_1(i__),DEs_1(i__)
RAdeg_1(i__) = rNULL__
DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c ..............Just test output...........
write(6,5)
+ Name_4(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
+ DEd_1(i__),DEm_1(i__),DEs_1(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
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(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),DE__2(i__),
+ DEd_2(i__),DEm_2(i__),DEs_2(i__)
RAdeg_2(i__) = rNULL__
DEdeg_2(i__) = 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(i__) .GT. -180) RAdeg_2(i__)=RAh_2(i__)*15.
if(RAm_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAm_2(i__)/4.
if(RAs_2(i__) .GT. -180) RAdeg_2(i__)=RAdeg_2(i__)+RAs_2(i__)/240.
if(DEd_2(i__) .GE. 0) DEdeg_2(i__)=DEd_2(i__)
if(DEm_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEm_2(i__)/60.
if(DEs_2(i__) .GE. 0) DEdeg_2(i__)=DEdeg_2(i__)+DEs_2(i__)/3600.
if(DE__2(i__).EQ.'-'.AND.DEdeg_2(i__).GE.0) DEdeg_2(i__)=-DEdeg_2(i__)
c ..............Just test output...........
write(6,6)
+ Name_5(i__),RAh_2(i__),RAm_2(i__),RAs_2(i__),DE__2(i__),
+ DEd_2(i__),DEm_2(i__),DEs_2(i__)
write(6,'(6H Pos: 2F8.4)') RAdeg_2(i__),DEdeg_2(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end