Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/390/1437 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.5, on 2013-May-20
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__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. J/MNRAS/390/1437 Stellar streams in Andromeda (M31) (Chapman+, 2008)
*================================================================================
*The kinematic footprints of five stellar streams in Andromeda's halo.
* Chapman S.C., Ibata R., Irwin M., Koch A., Letarte B., Martin N.,
* Collins M., Lewis G.F., McConnachie A., Penarrubia J., Rich R.M.,
* Trethewey D., Ferguson A., Huxor A., Tanvir N.
* <Mon. Not. R. Astron. Soc., 390, 1437-1452 (2008)>
* =2008MNRAS.390.1437C
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Properties of DEIMOS fields in the M31 stellar
streams "A","B","C" and "D".
integer*4 nr__
parameter (nr__=9) ! Number of records
character*98 ar__ ! Full-size record
real*8 RA_ (nr__) ! (deg) Right Ascension J2000
real*8 Dec (nr__) ! (deg) Declination J2000
character*2 Str (nr__) ! Stream designation (added by CDS)
character*9 Stream (nr__) ! Target name
character*8 Field (nr__) ! Field designation
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__) ! Declination sign (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*4 HRV (nr__) ! (km/s) Stream radial velocity
character*1 u_sigma (nr__) ! [~ ] Uncertainty flag on sigma
real*4 sigma (nr__) ! (km/s) ? Velocity dispersion (1)
real*4 E_sigma (nr__) ! (km/s) ? Positive uncertainty on sigma
real*4 e_sigma_1 (nr__) ! (km/s) ? Negative uncertainty on sigma
real*4 v_Fe_H_ (nr__) ! ([-]) Mean [Fe/H] (2)
real*4 e__Fe_H_ (nr__) ! ([-]) Uncertainty in [Fe/H]
real*4 v_Fe_H_p (nr__) ! ([-]) ? Statistical photometric [Fe/H] from Ibata
* et al., 2007ApJ...671.1591I
real*4 FWHM (nr__) ! (kpc) ? Stream width (3)
integer*4 Rperi (nr__) ! (kpc) ? R_peri_ model parameter (4)
integer*4 Mstr (nr__) ! (10+7Msun) ? Structural estimation of stream mass (5)
integer*4 Msv (nr__) ! (10+7Msun) ? Kinematical estimation of stream mass (5)
real*4 Lstr (nr__) ! (10+6Lsun) ? Stream luminosity (6)
*Note (1): Velocity dispersions, estimated through a maximum-likelihood
* analysis taking into account the measurement errors in the velocities
* (or in the case of Stream "A", Stream "B", Stream "D", a subtraction
* in quadrature of the measurement error).
*Note (2): For certain streams (notably Stream "A" and Stream "D"), it is
* arguable that the [Fe/H]phot measurements are estimated from sets of
* stars which may not actually be a kinematic detection of "the stream".
* For this reason, we also quote the statistical [Fe/H]phot estimate
* from Ibata et al. (2007ApJ...671.1591I) in [Fe/H]p column. In
* particular, the Stream "D" values are quoted for the combination of
* six stars in the two separated pointings along the stream, and
* therefore the numbers in the table are simply duplicated.
*Note (3): Stream widths derived from Gaussian fits (quoted FWHM) to
* the integrated profile in the region defined in Ibata et al.
* (2007ApJ...671.1591I) (their fig. 31). At the distance of M31
* (785kpc - McConnachie et al. 2005MNRAS.356..979M) 1{deg}=13kpc.
*Note (4): R_peri_ estimated as 1/5D_stream_ as discussed in section 4.
*Note (5): Mass of stream width estimated from structural parameters (first
* entry) and from {sigma}_v_ (second entry).
*Note (6): L_stream_ from Ibata et al. (2007ApJ...671.1591I), except for
* Stream "Cp" and Stream "Cr" which are discussed in the text.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'stars.dat' ! Properties of candidate M31 halo stars in fields
F7 (table 2), F37 (table 3), F25/26 (table 4),
F36 (table 5), M6 (table 6) and M8 (table 7)
integer*4 nr__1
parameter (nr__1=115) ! Number of records
character*73 ar__1 ! Full-size record
real*8 RA__1 (nr__1) ! (deg) Right Ascension J2000
real*8 Dec_1 (nr__1) ! (deg) Declination J2000
character*2 Str_1 (nr__1) ! Stream designation, as in table1
integer*4 RAh_1 (nr__1) ! (h) Hour of right ascension (J2000)
integer*4 RAm_1 (nr__1) ! (min) Minute of right ascension (J2000)
real*4 RAs_1 (nr__1) ! (s) Second of right ascension (J2000)
character*1 DE__1 (nr__1) ! Declination sign (J2000)
integer*4 DEd_1 (nr__1) ! (deg) Degree of declination (J2000)
integer*4 DEm_1 (nr__1) ! (arcmin) Arcminute of declination (J2000)
real*4 DEs_1 (nr__1) ! (arcsec) Arcsecond of declination (J2000)
real*4 HRV_1 (nr__1) ! (km/s) Heliocentric radial velocity
real*4 e_HRV (nr__1) ! (km/s) HRV uncertainty
real*4 v_Fe_H_p_1 (nr__1) ! ([-]) ? Photometric [Fe/H]
real*8 v_Fe_H__1 (nr__1) ! ([Sun]) ? Spectroscopic [Fe/H] calculated from the
* CaII triplet lines equivalent width
real*4 Vmag (nr__1) ! (mag) V-band magnitude (Johnson-Cousins)
real*4 Imag (nr__1) ! (mag) I-band magnitude (Johnson-Cousins)
real*4 Dist (nr__1) ! (arcmin) ? Distance from the centre of EC4 (only for
* table 4) (1)
*Note (1): At the distance of EC4, 13kpc=1{deg}
C=============================================================================
C Loading file 'table1.dat' ! Properties of DEIMOS fields in the M31 stellar
* streams "A","B","C" and "D".
C Format for file interpretation
1 format(
+ A2,1X,A9,1X,A8,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,
+ F6.1,1X,A1,F4.1,1X,F3.1,1X,F3.1,1X,F4.1,1X,F3.1,1X,F4.1,1X,
+ F3.1,1X,I2,1X,I3,1X,I1,1X,F4.1)
C Effective file loading
open(unit=1,file='table1.dat', status='old')
write(6,*) '....Loading file: table1.dat'
do i__=1,9
read(1,'(A98)')ar__
read(ar__,1)
+ Str(i__),Stream(i__),Field(i__),RAh(i__),RAm(i__),RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__),HRV(i__),u_sigma(i__),
+ sigma(i__),E_sigma(i__),e_sigma_1(i__),v_Fe_H_(i__),
+ e__Fe_H_(i__),v_Fe_H_p(i__),FWHM(i__),Rperi(i__),Mstr(i__),
+ Msv(i__),Lstr(i__)
if(ar__(55:58) .EQ. '') sigma(i__) = rNULL__
if(ar__(60:62) .EQ. '') E_sigma(i__) = rNULL__
if(ar__(64:66) .EQ. '') e_sigma_1(i__) = rNULL__
if(ar__(77:80) .EQ. '') v_Fe_H_p(i__) = rNULL__
if(ar__(82:84) .EQ. '') FWHM(i__) = rNULL__
if(ar__(86:87) .EQ. '') Rperi(i__) = iNULL__
if(ar__(89:91) .EQ. '') Mstr(i__) = iNULL__
if(ar__(93:93) .EQ. '') Msv(i__) = iNULL__
if(ar__(95:98) .EQ. '') Lstr(i__) = rNULL__
c Derive coordinates RA_ and Dec from input data
c (RA_ and Dec are set to rNULL_ when unknown)
RA_(i__) = RAh(i__)
if(RAh(i__) .GE. 0) RA_(i__)=RAh(i__)*15.
if(RAm(i__) .GE. 0) RA_(i__)=RA_(i__)+RAm(i__)/4.
if(RAs(i__) .GE. 0) RA_(i__)=RA_(i__)+RAs(i__)/240.
Dec(i__) = DEd(i__)
if(DEm(i__) .GE. 0) Dec(i__)=Dec(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) Dec(i__)=Dec(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.Dec(i__).GE.0) Dec(i__)=-Dec(i__)
c ..............Just test output...........
write(6,1)
+ Str(i__),Stream(i__),Field(i__),RAh(i__),RAm(i__),RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__),HRV(i__),u_sigma(i__),
+ sigma(i__),E_sigma(i__),e_sigma_1(i__),v_Fe_H_(i__),
+ e__Fe_H_(i__),v_Fe_H_p(i__),FWHM(i__),Rperi(i__),Mstr(i__),
+ Msv(i__),Lstr(i__)
write(6,'(6H Pos: 2F8.4)') RA_(i__),Dec(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'stars.dat' ! Properties of candidate M31 halo stars in fields
* F7 (table 2), F37 (table 3), F25/26 (table 4),
* F36 (table 5), M6 (table 6) and M8 (table 7)
C Format for file interpretation
2 format(
+ A2,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F6.1,1X,F6.3,
+ 1X,F6.2,1X,F7.4,1X,F5.2,1X,F5.2,1X,F5.2)
C Effective file loading
open(unit=1,file='stars.dat', status='old')
write(6,*) '....Loading file: stars.dat'
do i__=1,115
read(1,'(A73)')ar__1
read(ar__1,2)
+ Str_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
+ DEd_1(i__),DEm_1(i__),DEs_1(i__),HRV_1(i__),e_HRV(i__),
+ v_Fe_H_p_1(i__),v_Fe_H__1(i__),Vmag(i__),Imag(i__),Dist(i__)
if(ar__1(42:47) .EQ. '') v_Fe_H_p_1(i__) = rNULL__
if(ar__1(49:55) .EQ. '') v_Fe_H__1(i__) = rNULL__
if(ar__1(69:73) .EQ. '') Dist(i__) = rNULL__
c Derive coordinates RA__1 and Dec_1 from input data
c (RA__1 and Dec_1 are set to rNULL_ when unknown)
RA__1(i__) = RAh_1(i__)
if(RAh_1(i__) .GE. 0) RA__1(i__)=RAh_1(i__)*15.
if(RAm_1(i__) .GE. 0) RA__1(i__)=RA__1(i__)+RAm_1(i__)/4.
if(RAs_1(i__) .GE. 0) RA__1(i__)=RA__1(i__)+RAs_1(i__)/240.
Dec_1(i__) = DEd_1(i__)
if(DEm_1(i__) .GE. 0) Dec_1(i__)=Dec_1(i__)+DEm_1(i__)/60.
if(DEs_1(i__) .GE. 0) Dec_1(i__)=Dec_1(i__)+DEs_1(i__)/3600.
if(DE__1(i__).EQ.'-'.AND.Dec_1(i__).GE.0) Dec_1(i__)=-Dec_1(i__)
c ..............Just test output...........
write(6,2)
+ Str_1(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),DE__1(i__),
+ DEd_1(i__),DEm_1(i__),DEs_1(i__),HRV_1(i__),e_HRV(i__),
+ v_Fe_H_p_1(i__),v_Fe_H__1(i__),Vmag(i__),Imag(i__),Dist(i__)
write(6,'(6H Pos: 2F8.4)') RA__1(i__),Dec_1(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end