Conversion of standardized ReadMe file for
file /./ftp/cats/J/ApJ/704/531 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 2024-Mar-29 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/704/531 The coevality of young binary systems (Kraus+, 2009) *================================================================================ *The coevality of young binary systems. * Kraus A.L., Hillenbrand L.A. * <Astrophys. J., 704, 531-547 (2009)> * =2009ApJ...704..531K C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Binary sample: observed and inferred properties integer*4 nr__ parameter (nr__=73) ! Number of records character*108 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*12 Name ! Name 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) character*2 SB ! Spectroscopic binary ("Sep" is null) real*8 Sep ! (mas) ? Separation real*4 e_Sep ! (mas) ? Uncertainty in Sep character*1 n_Flux ! [JHK] Band in which "Flux" is measured real*4 Flux ! (mag) 2MASS magnitude in "Band" character*5 SpT ! MK spectral type real*4 e_SpT ! Spectral type uncertainty real*4 Av ! (mag) Extinction integer*4 Teff ! (K) Effective temperature integer*4 e_Teff ! (K) Teff uncertainty real*4 Mbol ! (mag) Bolometric magnitude character*2 Warm ! [Y/N? ] Warm disk? character*14 Ref ! References (see refs.dat file) c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Derived ages and masses integer*4 nr__1 parameter (nr__1=73) ! Number of records character*114 ar__1 ! Full-size record character*12 Name_1 ! Name real*4 Mass ! (Msun) ? Adopted inferred mass from our hybrid system real*4 E_Mass ! (Msun) ? Positive error in Mass real*4 e_Mass_1 ! (Msun) ? Negative error in Mass character*1 l_logtau ! Limit flag on logtau real*4 logtau ! ([yr]) Adopted inferred age from our hybrid system real*4 E_logtau ! ([yr]) ? Positive error in logtau real*4 e_logtau_1 ! ([yr]) ? Negative error in logtau real*4 MassL ! (Msun) ? Mass from the Lyon models (1) real*4 E_MassL ! (Msun) ? Positive error in MassL real*4 e_MassL_1 ! (Msun) ? Negative error in MassL character*1 l_logtauL ! Limit flag on logtauL real*4 logtauL ! ([yr]) Age from the Lyon models (1) real*4 E_logtauL ! ([yr]) ? Positive error in logtauL real*4 e_logtauL_1 ! ([yr]) ? Negative error in logtauL real*4 MassD ! (Msun) ? Mass from the DM97 model (2) real*4 E_MassD ! (Msun) ? Positive error in MassD real*4 e_MassD_1 ! (Msun) ? Negative error in MassD character*1 l_logtauD ! Limit flag on logtauD real*4 logtauD ! ([yr]) Age from the DM97 model (2) real*4 E_logtauD ! ([yr]) ? Positive error in logtauD real*4 e_logtauD_1 ! ([yr]) ? Negative error in logtauD *Note (1): (Baraffe et al. 1998, Cat. J/A+A/337/403; Chabrier et al. * 2000ApJ...542..464C) *Note (2): D'Antona & Mazzitelli (1997MmSAI..68..807D) c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'tablea1.dat' ! Single-star sample: observed properties integer*4 nr__2 parameter (nr__2=121) ! Number of records character*131 ar__2 ! 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*22 Name_2 ! Star name 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) real*4 Jmag ! (mag) 2MASS J-band magnitude character*5 SpT_1 ! MK spectral type real*4 e_SpT_1 ! SpT uncertainty real*4 Av_1 ! (mag) Extinction integer*4 Teff_1 ! (K) Effective temperature integer*4 e_Teff_1 ! (K) Teff uncertainty real*4 Mbol_1 ! (mag) Bolometric mass character*1 l_Mass ! [-] Nonphysical mass (1) real*4 Mass_1 ! (Msun) Mass real*4 E_Mass_2 ! (Msun) Positive error in Mass real*4 e_Mass_3 ! (Msun) Negative error in Mass character*1 l_logtau_1 ! [-] Nonphysical age (1) real*4 logtau_1 ! ([yr]) Age real*4 E_logtau_2 ! ([yr]) Positive error in Age real*4 e_logtau_3 ! ([yr]) Negative error in Age character*10 Ref_1 ! References (see refs.dat file) *Note (1): Some systems that sit extremely high or low in the HR diagram exceed * the limits of the models and have nonphysical derived quantities * (i.e., negative masses). c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'refs.dat' ! References integer*4 nr__3 parameter (nr__3=51) ! Number of records character*65 ar__3 ! Full-size record integer*4 Ref_2 ! Reference number character*19 BibCode ! Bibcode character*21 Aut ! Authors character*20 Comm ! Comment C============================================================================= C Loading file 'table1.dat' ! Binary sample: observed and inferred properties C Format for file interpretation 1 format( + A12,1X,I1,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,A2,1X,F7.1, + 1X,F4.1,1X,A1,1X,F5.2,1X,A5,1X,F4.2,1X,F4.1,1X,I4,1X,I3,1X, + F5.2,1X,A2,1X,A14) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,73 read(1,'(A108)')ar__ read(ar__,1) + Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs,SB,Sep,e_Sep,n_Flux,Flux,SpT, + e_SpT,Av,Teff,e_Teff,Mbol,Warm,Ref if(ar__(40:46) .EQ. '') Sep = rNULL__ if(ar__(48:51) .EQ. '') e_Sep = rNULL__ 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,SB,Sep,e_Sep,n_Flux,Flux,SpT, + e_SpT,Av,Teff,e_Teff,Mbol,Warm,Ref write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Derived ages and masses C Format for file interpretation 2 format( + A12,1X,F5.3,1X,F5.3,1X,F5.3,1X,A1,F4.2,1X,F4.2,1X,F4.2,1X, + F5.3,1X,F5.3,1X,F5.3,1X,A1,F4.2,1X,F4.2,1X,F4.2,1X,F5.3,1X, + F5.3,1X,F5.3,1X,A1,F4.2,1X,F4.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,73 read(1,'(A114)')ar__1 read(ar__1,2) + Name_1,Mass,E_Mass,e_Mass_1,l_logtau,logtau,E_logtau, + e_logtau_1,MassL,E_MassL,e_MassL_1,l_logtauL,logtauL, + E_logtauL,e_logtauL_1,MassD,E_MassD,e_MassD_1,l_logtauD, + logtauD,E_logtauD,e_logtauD_1 if(ar__1(14:18) .EQ. '') Mass = rNULL__ if(ar__1(20:24) .EQ. '') E_Mass = rNULL__ if(ar__1(26:30) .EQ. '') e_Mass_1 = rNULL__ if(ar__1(38:41) .EQ. '') E_logtau = rNULL__ if(ar__1(43:46) .EQ. '') e_logtau_1 = rNULL__ if(ar__1(48:52) .EQ. '') MassL = rNULL__ if(ar__1(54:58) .EQ. '') E_MassL = rNULL__ if(ar__1(60:64) .EQ. '') e_MassL_1 = rNULL__ if(ar__1(72:75) .EQ. '') E_logtauL = rNULL__ if(ar__1(77:80) .EQ. '') e_logtauL_1 = rNULL__ if(ar__1(82:86) .EQ. '') MassD = rNULL__ if(ar__1(88:92) .EQ. '') E_MassD = rNULL__ if(ar__1(94:98) .EQ. '') e_MassD_1 = rNULL__ if(ar__1(106:109) .EQ. '') E_logtauD = rNULL__ if(ar__1(111:114) .EQ. '') e_logtauD_1 = rNULL__ c ..............Just test output........... write(6,2) + Name_1,Mass,E_Mass,e_Mass_1,l_logtau,logtau,E_logtau, + e_logtau_1,MassL,E_MassL,e_MassL_1,l_logtauL,logtauL, + E_logtauL,e_logtauL_1,MassD,E_MassD,e_MassD_1,l_logtauD, + logtauD,E_logtauD,e_logtauD_1 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'tablea1.dat' ! Single-star sample: observed properties C Format for file interpretation 3 format( + A22,2X,I1,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,1X,A5, + 1X,F4.2,1X,F4.1,1X,I4,1X,I3,1X,F5.2,1X,A1,F5.3,1X,F5.3,1X, + F5.3,1X,A1,F4.2,1X,F5.2,1X,F5.2,1X,A10) C Effective file loading open(unit=1,status='old',file= +'tablea1.dat') write(6,*) '....Loading file: tablea1.dat' do i__=1,121 read(1,'(A131)')ar__2 read(ar__2,3) + Name_2,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Jmag,SpT_1, + e_SpT_1,Av_1,Teff_1,e_Teff_1,Mbol_1,l_Mass,Mass_1,E_Mass_2, + e_Mass_3,l_logtau_1,logtau_1,E_logtau_2,e_logtau_3,Ref_1 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,3) + Name_2,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Jmag,SpT_1, + e_SpT_1,Av_1,Teff_1,e_Teff_1,Mbol_1,l_Mass,Mass_1,E_Mass_2, + e_Mass_3,l_logtau_1,logtau_1,E_logtau_2,e_logtau_3,Ref_1 write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'refs.dat' ! References C Format for file interpretation 4 format(I2,1X,A19,1X,A21,1X,A20) C Effective file loading open(unit=1,status='old',file= +'refs.dat') write(6,*) '....Loading file: refs.dat' do i__=1,51 read(1,'(A65)')ar__3 read(ar__3,4)Ref_2,BibCode,Aut,Comm c ..............Just test output........... write(6,4)Ref_2,BibCode,Aut,Comm c .......End.of.Just test output........... end do close(1) C============================================================================= stop end