Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/768/172 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-Aug-16
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/768/172 Kinematic analysis of red giant in M31 dSphs (Collins+, 2013)
*================================================================================
*A kinematic study of the Andromeda dwarf spheroidal system.
* Collins M.L.M., Chapman S.C., Rich R.M., Ibata R.A., Martin N.F.,
* Irwin M.J., Bate N.F., Lewis G.F., Penarrubia J., Arimoto N., Casey C.M.,
* Ferguson A.M.N., Koch A., McConnachie A.W., Tanvir N.
* <Astrophys. J., 768, 172 (2013)>
* =2013ApJ...768..172C
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! *Details of the structural properties for each dwarf
integer*4 nr__
parameter (nr__=18) ! Number of records
character*66 ar__ ! 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)
character*10 Gal ! Dwarf galaxy name
character*1 n_Gal ! [c] And XXX = Cas II
integer*4 RAh ! (h) Hour of right ascension (J2000)
integer*4 RAm ! (min) Minute of right ascension (J2000)
real*4 RAs ! (s) Second of right ascension (J2000)
character*1 DE_ ! Sign of declination (J2000)
integer*4 DEd ! (deg) Degree of declination (J2000)
integer*4 DEm ! (arcmin) Arcminute of declination (J2000)
real*4 DEs ! (arcsec) Arcsecond of declination (J2000)
real*4 VMag ! (mag) [-10.6/-6.3] Absolute V-band magnitude
integer*4 rh ! (pc) [114/1481] Half-light radius
integer*4 E_rh ! (pc) [9/112] Positive uncertainty on rh
integer*4 e_rh_1 ! (pc) [12/271] Negative uncertainty on rh
integer*4 Dist ! (kpc) [650/1255] Distance
integer*4 E_Dist ! (kpc) [21/218] Positive uncertainty on Dist
integer*4 e_Dist_1 ! (kpc) [21/474] Negative uncertainty on Dist
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Details of spectroscopic observations
integer*4 nr__1
parameter (nr__1=22) ! Number of records
character*89 ar__1 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_1 ! (deg) Right Ascension J2000
real*8 DEdeg_1 ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*10 Gal_1 ! Field (dwarf spheroidal) name
character*1 m_Gal ! [ab] Index in case of multiple observations
character*11 Date ! ("Y-M-D") Observation date
character*3 n_Date ! Observation on several days
character*13 Inst ! Instrument and grating
real*4 Res ! (0.1nm) [1.3/3.5] Resolution in {AA}
integer*4 RAh_1 ! (h) Hour of Right Ascension (J2000)
integer*4 RAm_1 ! (min) Minute of Right Ascension (J2000)
real*4 RAs_1 ! (s) Second of Right Ascension (J2000)
character*1 DE__1 ! [+] Sign of Declination (J2000)
integer*4 DEd_1 ! (deg) Degree of Declination (J2000)
integer*4 DEm_1 ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs_1 ! (arcsec) Arcsecond of Declination (J2000)
integer*4 PA ! (deg) [0/315] Slit position angle
integer*4 Exp ! (s) [1200/5400] Exposure time
integer*4 Ntar ! [33/196] Number of targets observed
integer*4 Nmem ! [1/43] Number of member stars observed
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! Details of probable dSph members
integer*4 nr__2
parameter (nr__2=295) ! Number of records
character*86 ar__2 ! Full-size record
C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg_2 ! (deg) Right Ascension J2000
real*8 DEdeg_2 ! (deg) Declination J2000
C ---------------------------------- ! (position vector(s) in degrees)
character*10 Gal_2 ! Field (dwarf spheroidal) name
character*1 m_Gal_1 ! [ab] Index in case of multiple observations
integer*4 ID ! [1/172] Star identifier in Gal
integer*4 RAh_2 ! (h) Hour of Right Ascension (J2000)
integer*4 RAm_2 ! (min) Minute of Right Ascension (J2000)
real*4 RAs_2 ! (s) Second of Right Ascension (J2000)
character*1 DE__2 ! [+] Sign of Declination (J2000)
integer*4 DEd_2 ! (deg) Degree of Declination (J2000)
integer*4 DEm_2 ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs_2 ! (arcsec) Arcsecond of Declination (J2000)
real*4 gmag ! (mag) [21.4/25] The CFHT/MegaCam g-band magnitude
real*4 imag ! (mag) [20.3/24] The CFHT/MegaCam i-band magnitude
real*8 HRV ! (km/s) [-604.5/918.2] Heliocentric radial velocity
real*8 e_HRV ! (km/s) [1.2/227] Error in HRV
real*4 S_N ! [0.3/17] Signal-to-noise (per Angstrom)
real*4 Pi ! [0/1] Likelihood of membership (1)
*Note (1): Likelihood of membership as (equation 1):
* P_i_{prop.to}P_CMD_*P_dist_*P_vel_
* where P_CMD_ is the probability based on CMD position,
* P_dist_ is the probability based on distance, and
* P_vel_ is the probability based on velocity).
* See section 3 for further details.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Kinematic properties of Andromeda dSph galaxies as
derived from Keck I/LRIS, and Keck II/DEIMOS data
integer*4 nr__3
parameter (nr__3=18) ! Number of records
character*90 ar__3 ! Full-size record
character*10 Gal_3 ! Dwarf galaxy name
character*1 n_Gal_1 ! [c] And XXX = Cas II
real*4 eta ! [1.5/5] Free parameter {eta} (1)
real*4 RV ! (km/s) [-558/-107] Radial velocity
real*4 E_RV ! (km/s) [0.9/6] Positive error on RV
real*4 e_RV_1 ! (km/s) [0.9/7] Negative error on RV
real*4 sigV ! (km/s) [0/15] Velocity dispersion {sigma}_V_
real*4 E_sigV ! (km/s) Positive error on sigV
character*1 f_sigV ! [*] non-reliable sigV (2)
real*4 e_sigV_1 ! (km/s) [1/8.1] Negative error on sigV
real*4 Mh ! (10+7Msun) [0/8.3] Mass contained within the half-light
* radius
real*4 E_Mh ! (10+7Msun) [0.08/5] Positive error on Mh
real*4 e_Mh_1 ! (10+7Msun) [0.06/5] Negative error on Mh
real*4 v_M_L_ ! (Msun/Lsun) [0/1391] Dynamical central mass-to-light ratio
real*4 E__M_L_ ! (Msun/Lsun) [4.2/1039] Positive error on [M/L]
real*4 e__M_L__1 ! (Msun/Lsun) [3.9/1128] Negative error on [M/L]
real*4 v_Fe_H_ ! ([Sun]) [-2.2/-1.4] Spectroscopic [Fe/H]
real*4 e__Fe_H_ ! ([Sun]) [0.1/0.6] [Fe/H] uncertainty
*Note (1): In Section 3.3, we tested that our velocity probability criteria was
* not overly biasing our final measurements of velocity dispersion to
* artificially lower values with the introduction of an extra parameter,
* {eta}, that allows us to add additional weight to stars in the tails
* of the Gaussian velocity distribution.
*Note (2):
* * = Velocity dispersions derived from fewer than eight members stars, and
* require confirmation from further follow-up.
C=============================================================================
C Loading file 'table1.dat' ! *Details of the structural properties for each dwarf
C Format for file interpretation
1 format(
+ A10,A1,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.1,1X,
+ I4,1X,I3,1X,I3,1X,I4,1X,I3,1X,I3)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,18
read(1,'(A66)')ar__
read(ar__,1)
+ Gal,n_Gal,RAh,RAm,RAs,DE_,DEd,DEm,DEs,VMag,rh,E_rh,e_rh_1,
+ Dist,E_Dist,e_Dist_1
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,1)
+ Gal,n_Gal,RAh,RAm,RAs,DE_,DEd,DEm,DEs,VMag,rh,E_rh,e_rh_1,
+ Dist,E_Dist,e_Dist_1
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Details of spectroscopic observations
C Format for file interpretation
2 format(
+ A10,A1,2X,A11,A3,2X,A13,3X,F3.1,2X,I2,1X,I2,1X,F5.2,1X,A1,I2,
+ 1X,I2,1X,F4.1,1X,I3,1X,I4,1X,I3,1X,I2)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,22
read(1,'(A89)')ar__1
read(ar__1,2)
+ Gal_1,m_Gal,Date,n_Date,Inst,Res,RAh_1,RAm_1,RAs_1,DE__1,
+ DEd_1,DEm_1,DEs_1,PA,Exp,Ntar,Nmem
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,2)
+ Gal_1,m_Gal,Date,n_Date,Inst,Res,RAh_1,RAm_1,RAs_1,DE__1,
+ DEd_1,DEm_1,DEs_1,PA,Exp,Ntar,Nmem
write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! Details of probable dSph members
C Format for file interpretation
3 format(
+ A10,A1,1X,I3,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F6.3,1X,
+ F6.3,1X,F6.3,1X,F8.3,1X,F7.3,1X,F6.3,1X,F5.3)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,295
read(1,'(A86)')ar__2
read(ar__2,3)
+ Gal_2,m_Gal_1,ID,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,
+ gmag,imag,HRV,e_HRV,S_N,Pi
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,3)
+ Gal_2,m_Gal_1,ID,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,
+ gmag,imag,HRV,e_HRV,S_N,Pi
write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4.dat' ! Kinematic properties of Andromeda dSph galaxies as
* derived from Keck I/LRIS, and Keck II/DEIMOS data
C Format for file interpretation
4 format(
+ A10,A1,1X,F3.1,1X,F6.1,1X,F3.1,1X,F3.1,1X,F4.1,1X,F3.1,A1,1X,
+ F3.1,1X,F4.2,1X,F4.2,1X,F4.2,1X,F6.1,1X,F6.1,1X,F6.1,1X,F4.1,
+ 1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,18
read(1,'(A90)')ar__3
read(ar__3,4)
+ Gal_3,n_Gal_1,eta,RV,E_RV,e_RV_1,sigV,E_sigV,f_sigV,e_sigV_1,
+ Mh,E_Mh,e_Mh_1,v_M_L_,E__M_L_,e__M_L__1,v_Fe_H_,e__Fe_H_
c ..............Just test output...........
write(6,4)
+ Gal_3,n_Gal_1,eta,RV,E_RV,e_RV_1,sigV,E_sigV,f_sigV,e_sigV_1,
+ Mh,E_Mh,e_Mh_1,v_M_L_,E__M_L_,e__M_L__1,v_Fe_H_,e__Fe_H_
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end