Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/309/749 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-14
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/A+A/309/749 Fundamental plane of early type galaxies (Prugniel+ 1996)
*================================================================================
*The fundamental plane of early-type galaxies: stellar populations and
*mass-to-light ratio
* Prugniel P., Simien F.
* <Astron. Astrophys. 309, 749 (1996)>
* =1996A&A...309..749P
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablea1.dat' ! Catalogue of central velocity dispersion
integer*4 nr__
parameter (nr__=3147) ! Number of records
character*95 ar__ ! Full-size record
C 1950 position composed of: RAh RAm RAs DE- DEd DEm DEs
real*8 RAdeg ! (deg) Right Ascension 1950
real*8 DEdeg ! (deg) Declination 1950
C ---------------------------------- ! (position vector(s) in degrees)
character*11 Name ! Galaxy identifier (1)
integer*4 RAh ! (h) ? Right Ascension 1950 (hours)
integer*4 RAm ! (min) ? Right Ascension 1950 (min)
real*4 RAs ! (s) ? Right Ascension 1950 (sec)
character*1 DE_ ! [+-] Sign of declination
integer*4 DEd ! (deg) ? Declination 1950 (degrees)
integer*4 DEm ! (arcmin) ? Declination 1950 (minutes)
integer*4 DEs ! (arcsec) ? Declination 1950 (seconds)
integer*4 sigmam ! (km/s) ? Adopted central velocity dispersion (2)
character*1 l_sigma ! ? Upper (<) or lower (>) limit
real*4 sigma ! (km/s) Central velocity dispersion (raw) (3)
real*4 e_sigma ! (km/s) ? Mean error on sigma
character*7 Ref_a ! Acronym of the source reference (4)
integer*4 Ref_c ! Numerical code of the source ref (5)
integer*4 Reject ! ? [1 ] Rejection flag, 1=rejected
character*33 Note ! Descriptive note or alternative name
*Note (1): The Name has been adopted by descending the hierarchy:
* (1) Usual name for the dwarf spheroidal galaxy and the Milky Way,
* (2) NGC name,
* (3) IC,
* (4) UGC or ESO,
* (5) PGC (Principal Galaxies Catalogue)
* (6) LEDA (Lyon- Meudon Extragalactic Database) internal identifier.
* For about 50 object left unfolted into this hierarchy we kept the
* designation from the original reference. When Name differed from the
* original designation, the latter is indicated in the field Note.
*Note (2): The velocity dispersions reported here are from absorption lines,
* except for Milky Way and the dwarf spheroidal galaxy: from individual
* stellar velocity, and for the references Hui93 (Hui, X. 1993) and
* Arna+94 (Arnaboldi et al., 1994): from planetary nebulae.
*Note (3): sigmam is a mean of the re-scaled measured velocity dispersion,
* (sigma) weighted by the inverse of the squared mean error (e_sigma).
* The scaling factors are listed in tablea3 (scale).
*Note (4): Refers to tablea3
*Note (5): Refers to tablea3
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablea2.dat' ! Catalogue of maximum velocity of rotation
integer*4 nr__1
parameter (nr__1=883) ! Number of records
character*58 ar__1 ! Full-size record
character*11 Name_1 ! Galaxy identifier (1)
character*2 Axis ! [MJ MI PA] Axis used for rotation measure (2)
character*15 Note_1 ! Note on the galaxy
character*1 l_Vmax ! ? Upper (<) or lower (>) limit
integer*4 Vmax ! (km/s) ? Maximum velocity of Rotation
integer*4 e_Vmax ! (km/s) ? Mean error on Vmax
character*17 Ref_a_1 ! Acronym of the source reference (3)
*Note (1): See tablea1
*Note (2): Indicate the axis along which the rotation has been measured,
* coded as follow:
* MJ: Major axis
* MI: Minor axis
* PA: Pair axis, for binary galaxies
*Note (3): Refers to tablea3
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tablea3.dat' ! Bibliographic references for tablea1 and tablea2
integer*4 nr__2
parameter (nr__2=287) ! Number of records
character*165 ar__2 ! Full-size record
integer*4 Ref_c_1 ! Numerical code of the source ref (1)
character*7 Ref_a_2 ! Acronym of the source reference
real*4 Scale ! ? Scaling factor to be applied (2)
character*147 Ref ! Full text of the reference
*Note (1): References codes in the range [1-138] are present in McElroy
* (1995ApJS..100..105M); numbers in the range [201-351] are not;
* reference 500 gathers new unpublished measurements from
* Observatoire de Haute-Provence observations
*Note (2): The raw measurement of the velocity dispersion (sigma in tablea1)
* has to be multiplied by the scaling factor Scale to convert it in a
* homogeneous scale.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'tableb1.dat' ! Fundamental parameters for the galaxies
in the sample
integer*4 nr__3
parameter (nr__3=427) ! Number of records
character*72 ar__3 ! Full-size record
character*11 Name_2 ! Galaxy identifier (1)
integer*4 SSample ! [1-6] Sub-sample
real*4 Dmod ! (mag) Distance modulus
real*4 Bt ! (mag) Total apparent B magnitude (2)
real*4 mue ! (mag/arcsec2) Mean B surface brightness with r_e (3)
real*4 U_B ! (mag) ?=9.99 U-B color within r_e, corrected (4)
real*4 B_V ! (mag) ?=9.99 B-V color within r_e, corrected (5)
real*4 V_R ! (mag) ?=9.99 V-R color within r_e, corrected (6)
real*4 V_I ! (mag) ?=9.99 V-I color within r_e, corrected (7)
real*4 Mg2 ! (mag) ?=9.999 Mg2 index
integer*4 sigmam_1 ! (km/s) Adopted central velocity dispersion (8)
integer*4 Vmax_1 ! (km/s) ?=999 Maximum velocity of rotation, (9)
real*4 Rfp ! Residual from the Fundamental Plane
*Note (1): See tablea1.
*Note (2): Corrected for galactic absorption (Burstein & Heiles) and k.
*Note (3): Mean B surface brightness within the effective circular aperture.
* Corrected for galactic absorption (Burstein & Heiles), k and
* cosmologic (1+z)**4 dimming.
*Note (4): corrected for Galactic absorption with: E(U-B)=0.20 Ab
* k-corrected with: (U-B)corr=(U-B)raw+0.055*velocity[km/s]*1.e-4
*Note (5): corrected for Galactic absorption with: E(B-V)=0.25 Ab
* k-corrected with: (B-V)corr=(B-V)raw+0.095*velocity[km/s]*1.e-4
*Note (6): corrected for Galactic absorption with: E(V-R)=0.20 Ab
* k-corrected with: (V-R)corr=(V-R)raw+0.030*velocity[km/s]*1.e-4
*Note (7): corrected for Galactic absorption with: E(V-I)=0.35 Ab
* k-corrected with: (V-I)corr=(V-I)raw+0.030*velocity[km/s]*1.e-4
*Note (8): average weighted by the inverse square error of the re-scaled
* measurements
*Note (9): average weighted by the inverse square error of the MJ measurements
C=============================================================================
C Loading file 'tablea1.dat' ! Catalogue of central velocity dispersion
C Format for file interpretation
1 format(
+ 1X,A11,1X,I2,I2,F4.1,A1,I2,I2,I2,1X,I3,3X,A1,F5.1,F5.1,2X,A7,
+ 1X,I3,1X,I1,1X,A33)
C Effective file loading
open(unit=1,status='old',file=
+'tablea1.dat')
write(6,*) '....Loading file: tablea1.dat'
do i__=1,3147
read(1,'(A95)')ar__
read(ar__,1)
+ Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,sigmam,l_sigma,sigma,e_sigma,
+ Ref_a,Ref_c,Reject,Note
if(ar__(14:15) .EQ. '') RAh = iNULL__
if(ar__(16:17) .EQ. '') RAm = iNULL__
if(ar__(18:21) .EQ. '') RAs = rNULL__
if(ar__(23:24) .EQ. '') DEd = iNULL__
if(ar__(25:26) .EQ. '') DEm = iNULL__
if(ar__(27:28) .EQ. '') DEs = iNULL__
if(ar__(30:32) .EQ. '') sigmam = iNULL__
if(ar__(42:46) .EQ. '') e_sigma = rNULL__
if(ar__(61:61) .EQ. '') Reject = iNULL__
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)
+ Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,sigmam,l_sigma,sigma,e_sigma,
+ Ref_a,Ref_c,Reject,Note
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tablea2.dat' ! Catalogue of maximum velocity of rotation
C Format for file interpretation
2 format(1X,A11,1X,A2,1X,A15,1X,A1,I3,1X,I3,1X,A17)
C Effective file loading
open(unit=1,status='old',file=
+'tablea2.dat')
write(6,*) '....Loading file: tablea2.dat'
do i__=1,883
read(1,'(A58)')ar__1
read(ar__1,2)Name_1,Axis,Note_1,l_Vmax,Vmax,e_Vmax,Ref_a_1
if(ar__1(34:36) .EQ. '') Vmax = iNULL__
if(ar__1(38:40) .EQ. '') e_Vmax = iNULL__
c ..............Just test output...........
write(6,2)Name_1,Axis,Note_1,l_Vmax,Vmax,e_Vmax,Ref_a_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tablea3.dat' ! Bibliographic references for tablea1 and tablea2
C Format for file interpretation
3 format(1X,I3,1X,A7,F5.3,1X,A147)
C Effective file loading
open(unit=1,status='old',file=
+'tablea3.dat')
write(6,*) '....Loading file: tablea3.dat'
do i__=1,287
read(1,'(A165)')ar__2
read(ar__2,3)Ref_c_1,Ref_a_2,Scale,Ref
if(ar__2(13:17) .EQ. '') Scale = rNULL__
c ..............Just test output...........
write(6,3)Ref_c_1,Ref_a_2,Scale,Ref
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'tableb1.dat' ! Fundamental parameters for the galaxies
* in the sample
C Format for file interpretation
4 format(
+ 1X,A11,1X,I1,1X,F5.2,1X,F5.2,1X,F5.2,F5.2,1X,F4.2,1X,F4.2,1X,
+ F4.2,1X,F5.3,1X,I3,1X,I3,1X,F5.2)
C Effective file loading
open(unit=1,status='old',file=
+'tableb1.dat')
write(6,*) '....Loading file: tableb1.dat'
do i__=1,427
read(1,'(A72)')ar__3
read(ar__3,4)
+ Name_2,SSample,Dmod,Bt,mue,U_B,B_V,V_R,V_I,Mg2,sigmam_1,
+ Vmax_1,Rfp
c ..............Just test output...........
write(6,4)
+ Name_2,SSample,Dmod,Bt,mue,U_B,B_V,V_R,V_I,Mg2,sigmam_1,
+ Vmax_1,Rfp
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end