Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/864/57 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-May-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/864/57 Abundances of field & GC RR Lyrae. I. NGC3201 (Magurno+, 2018)
*================================================================================
*Chemical compositions of field and globular cluster RR Lyrae stars.
*I. NGC 3201.
* Magurno D., Sneden C., Braga V.F., Bono G., Mateo M., Persson S.E.,
* Dall'Ora M., Marengo M., Monelli M., Neeley J.R.
* <Astrophys. J., 864, 57 (2018)>
* =2018ApJ...864...57M
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Photometric parameters for the sample stars
in NGC 3201
integer*4 nr__
parameter (nr__=12) ! Number of records
character*93 ar__ ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg (nr__) ! (deg) Right Ascension J2000
real*8 DEdeg (nr__) ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*5 ID (nr__) ! RRab star identifier
integer*4 RAh (nr__) ! (h) Hour of right ascension (J2000)
integer*4 RAm (nr__) ! (min) Minute of right ascension (J2000)
real*4 RAs (nr__) ! (s) Second of right ascension (J2000)
character*1 DE_ (nr__) ! Sign of declination (J2000)
integer*4 DEd (nr__) ! (deg) Degree of declination (J2000)
integer*4 DEm (nr__) ! (arcmin) Arcminute of declination (J2000)
real*4 DEs (nr__) ! (arcsec) Arcsecond of declination (J2000)
real*8 Per (nr__) ! (d) [0.5/0.7]? Period
real*8 HJD (nr__) ! (d) [7079.7/7079.8] Heliocentric Julian Date;
* HJD-2450000
real*8 HJD0 (nr__) ! (d) [4123/7961.2]? Heliocentric Julian
* Date; JD-2450000
real*4 Phase (nr__) ! [0.09/0.9]? Phase
character*4 Type (nr__) ! RR Lyrae type (always "RRab")
character*1 f_Type (nr__) ! b = Blazhko
real*4 Vmag (nr__) ! (mag) [13.8/15] Mean V-band magnitude
real*4 Vamp (nr__) ! (mag) [0.4/1.3]? V-band amplitude
character*7 Ref (nr__) ! Reference(s) (1)
*Note (1): References as follows:
* N = J. R. Neeley et al. (2018, in preparation),
* L03 = Layden & Sarajedini (2003AJ....125..208L),
* ASN = ASAS-SN (Shappee+ 2014, J/ApJ/788/48 & Jayasinghe+ 2018MNRAS.477.3145J).
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Instantaneous radial velocity, systemic velocity
from template, and estimated stellar parameters
integer*4 nr__1
parameter (nr__1=12) ! Number of records
character*55 ar__1 ! Full-size record
character*5 ID_1 (nr__1) ! RRab star identifier
real*4 RV (nr__1) ! (km/s) [463.5/520.5] Radial velocity
real*4 e_RV (nr__1) ! (km/s) [0.3/1.2] RV uncertainty
integer*4 Vgamma (nr__1) ! (km/s) [477/505] Integral average velocity
* along the pulsation cycle
integer*4 e_Vgamma (nr__1) ! (km/s) [8/8] V_{gamma}_ uncertainty
integer*4 Teff (nr__1) ! (K) [5600/7500] Effective temperature
integer*4 e_Teff (nr__1) ! (K) [100/300] Teff uncertainty
real*4 logg (nr__1) ! ([cm/s2]) [2.1/3.3] Log of surface gravity
real*4 e_logg (nr__1) ! ([cm/s2]) [0.1/0.4] logg uncertainty
real*4 Vt (nr__1) ! (km/s) [2.2/3.6] Microturbulence
real*4 e_Vt (nr__1) ! (km/s) [0.1/0.4] Vt uncertainty
real*4 v_M_H_ (nr__1) ! ([Sun]) [-1.8/-1.2] Metallicity
real*4 e__M_H_ (nr__1) ! ([Sun]) [0.1/0.1] [M/H] uncertainty
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table10.dat' ! Iron and alpha-elements abundances of
high-resolution field RRLs (138 stars)
integer*4 nr__2
parameter (nr__2=220) ! Number of records
character*47 ar__2 ! Full-size record
character*19 Name (nr__2) ! Star name
real*4 v_Fe_H_ (nr__2) ! ([Sun]) [-2.9/0.2] Iron abundance
real*4 v_Mg_Fe_ (nr__2) ! ([Sun]) [-0.05/0.9]? Magnesium over iron abundance
real*4 v_Ca_Fe_ (nr__2) ! ([Sun]) [-0.2/0.6]? Calcium over iron abundance
real*4 v_Ti_Fe_ (nr__2) ! ([Sun]) [-0.5/0.8]? Titanium over iron abundance
character*3 Ref_1 (nr__2) ! Reference paper (G1)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table11.dat' ! Iron peak and s-process elements abundances of
high-resolution field RRLs (88 stars)
integer*4 nr__3
parameter (nr__3=120) ! Number of records
character*53 ar__3 ! Full-size record
character*19 Name_1 (nr__3) ! Star name
real*4 v_Sc_Fe_ (nr__3) ! ([Sun]) [-0.8/0.5]? Scandium over iron abundance
real*4 v_Cr_Fe_ (nr__3) ! ([Sun]) [-0.3/0.4]? Chromium over iron abundance
real*4 v_Ni_Fe_ (nr__3) ! ([Sun]) [-0.2/0.9]? Nickel over iron abundance
real*4 v_Zn_Fe_ (nr__3) ! ([Sun]) [-0.2/0.6]? Zinc over iron abundance
real*4 v_Y_Fe_ (nr__3) ! ([Sun]) [-0.8/0.5]? Yttrium over iron abundance
character*3 Ref_2 (nr__3) ! Reference paper (G1)
C=============================================================================
C Loading file 'table1.dat' ! Photometric parameters for the sample stars
* in NGC 3201
C Format for file interpretation
1 format(
+ A5,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F10.8,1X,
+ F10.5,1X,F10.5,1X,F4.2,1X,A4,1X,A1,1X,F5.2,1X,F4.2,1X,A7)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,12
read(1,'(A93)')ar__
read(ar__,1)
+ ID(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
+ DEs(i__),Per(i__),HJD(i__),HJD0(i__),Phase(i__),Type(i__),
+ f_Type(i__),Vmag(i__),Vamp(i__),Ref(i__)
if(ar__(31:40) .EQ. '') Per(i__) = rNULL__
if(ar__(53:62) .EQ. '') HJD0(i__) = rNULL__
if(ar__(64:67) .EQ. '') Phase(i__) = rNULL__
if(ar__(82:85) .EQ. '') Vamp(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)
+ ID(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),DEm(i__),
+ DEs(i__),Per(i__),HJD(i__),HJD0(i__),Phase(i__),Type(i__),
+ f_Type(i__),Vmag(i__),Vamp(i__),Ref(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 'table2.dat' ! Instantaneous radial velocity, systemic velocity
* from template, and estimated stellar parameters
C Format for file interpretation
2 format(
+ A5,1X,F5.1,1X,F3.1,1X,I3,1X,I1,1X,I4,1X,I3,1X,F3.1,1X,F3.1,1X,
+ F3.1,1X,F3.1,1X,F4.1,1X,F3.1)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,12
read(1,'(A55)')ar__1
read(ar__1,2)
+ ID_1(i__),RV(i__),e_RV(i__),Vgamma(i__),e_Vgamma(i__),
+ Teff(i__),e_Teff(i__),logg(i__),e_logg(i__),Vt(i__),e_Vt(i__),
+ v_M_H_(i__),e__M_H_(i__)
c ..............Just test output...........
write(6,2)
+ ID_1(i__),RV(i__),e_RV(i__),Vgamma(i__),e_Vgamma(i__),
+ Teff(i__),e_Teff(i__),logg(i__),e_logg(i__),Vt(i__),e_Vt(i__),
+ v_M_H_(i__),e__M_H_(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table10.dat' ! Iron and alpha-elements abundances of
* high-resolution field RRLs (138 stars)
C Format for file interpretation
3 format(A19,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,A3)
C Effective file loading
open(unit=1,status='old',file=
+'table10.dat')
write(6,*) '....Loading file: table10.dat'
do i__=1,220
read(1,'(A47)')ar__2
read(ar__2,3)
+ Name(i__),v_Fe_H_(i__),v_Mg_Fe_(i__),v_Ca_Fe_(i__),
+ v_Ti_Fe_(i__),Ref_1(i__)
if(ar__2(27:31) .EQ. '') v_Mg_Fe_(i__) = rNULL__
if(ar__2(33:37) .EQ. '') v_Ca_Fe_(i__) = rNULL__
if(ar__2(39:43) .EQ. '') v_Ti_Fe_(i__) = rNULL__
c ..............Just test output...........
write(6,3)
+ Name(i__),v_Fe_H_(i__),v_Mg_Fe_(i__),v_Ca_Fe_(i__),
+ v_Ti_Fe_(i__),Ref_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table11.dat' ! Iron peak and s-process elements abundances of
* high-resolution field RRLs (88 stars)
C Format for file interpretation
4 format(A19,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,F5.2,1X,A3)
C Effective file loading
open(unit=1,status='old',file=
+'table11.dat')
write(6,*) '....Loading file: table11.dat'
do i__=1,120
read(1,'(A53)')ar__3
read(ar__3,4)
+ Name_1(i__),v_Sc_Fe_(i__),v_Cr_Fe_(i__),v_Ni_Fe_(i__),
+ v_Zn_Fe_(i__),v_Y_Fe_(i__),Ref_2(i__)
if(ar__3(21:25) .EQ. '') v_Sc_Fe_(i__) = rNULL__
if(ar__3(27:31) .EQ. '') v_Cr_Fe_(i__) = rNULL__
if(ar__3(33:37) .EQ. '') v_Ni_Fe_(i__) = rNULL__
if(ar__3(39:43) .EQ. '') v_Zn_Fe_(i__) = rNULL__
if(ar__3(45:49) .EQ. '') v_Y_Fe_(i__) = rNULL__
c ..............Just test output...........
write(6,4)
+ Name_1(i__),v_Sc_Fe_(i__),v_Cr_Fe_(i__),v_Ni_Fe_(i__),
+ v_Zn_Fe_(i__),v_Y_Fe_(i__),Ref_2(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end