Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/129/2428 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/AJ/129/2428 M dwarf-white dwarf binary systems (Silvestri+, 2005) *================================================================================ *The chromospheric activity and ages of M dwarf stars in wide binary systems. * Silvestri N.M., Hawley S.L., Oswalt T.D. * <Astron. J., 129, 2428-2450 (2005)> * =2005AJ....129.2428S C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Complete M dwarf-white dwarf wide binary target list integer*4 nr__ parameter (nr__=203) ! Number of records character*118 ar__ ! Full-size record C B1950.0 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg ! (deg) Right Ascension B1950.0 real*8 DEdeg ! (deg) Declination B1950.0 C ---------------------------------- ! (position vector(s) in degrees) character*11 ID1 ! Identifier of the binary system primary * component character*11 ID2 ! Identifier of the binary system secondary * component integer*4 RAh ! (h) Hour of Right Ascension (B1950.0) integer*4 RAm ! (min) Minute of Right Ascension (B1950.0) integer*4 RAs ! (s) Second of Right Ascension (B1950.0) character*1 DE_ ! Sign of the Declination (B1950.0) integer*4 DEd ! (deg) Degree of Declination (B1950.0) integer*4 DEm ! (arcmin) Arcminute of Declination (B1950.0) integer*4 DEs ! (arcsec) Arcsecond of Declination (B1950.0) real*4 Vmag1 ! (mag) ? Primary V band magnitude (1) character*6 SpType1 ! Primary MK spectral type (2) real*4 Vmag2 ! (mag) ? Secondary V band magnitude (1) character*6 SpType2 ! Secondary MK spectral type (2) character*8 Site ! Telecope observatory (see table2) character*14 Dates ! The U.T. dates of the observation (mm/yy) integer*4 ExpTime ! (s) ? Exposure time real*4 pm ! (arcsec/yr) Total proper motion real*4 pmPA ! (deg) Direction of proper motion (3) integer*4 PA ! (deg) ? Position angle centered on the primary (3) integer*4 Sep ! (arcsec) Component separation *Note (1): Single-precision V magnitude values are m_pg_ magnitudes from * Luyten's original survey, all others are V magnitudes from * Smith (1997, Ph.D. thesis, Florida Inst. Technol.). *Note (2): Spectral types for the WD and dM stars were determined from * low-resolution (~7-15{AA}) spectra (Oswalt, Hintzen, & Luyten * 1998ApJS...66..391O; Oswalt et al. 1991, in White Dwarfs, ed. * G. Vauclair & E.M. Sion (NATO ASI Ser. C, 336; Dordrecht: Kluwer), * 379 and 1993, in White Dwarfs: Advances in Observation and Theory, * ed. M.A. Barstow (NATO ASI Ser. C, 403; Dordrecht: Kluwer), 419). * Improved dM spectral types are given in Table 3. We have made no * attempt to improve upon the WD spectral types in this study. *Note (3): Measured east of north. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table2.dat' ! Journal of the observations integer*4 nr__1 parameter (nr__1=24) ! Number of records character*85 ar__1 ! Full-size record character*11 ObsDate ! ("YYYY/MMM/DD") Date of observation (UT) character*4 Site_1 ! [APO CTIO] Site of observation character*1 l_Seeing ! [~] Limit flag on Seeing real*4 Seeing ! (arcsec) ? Seeing character*62 Notes ! Notes c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table3.dat' ! Equivalent widths and band-head flux ratios integer*4 nr__2 parameter (nr__2=140) ! Number of records character*95 ar__2 ! Full-size record C B1950 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg_1 ! (deg) Right Ascension B1950 real*8 DEdeg_1 ! (deg) Declination B1950 C ---------------------------------- ! (position vector(s) in degrees) character*10 ID ! The dM identifier character*1 n_ID ! Note about the components (G1) integer*4 RAh_1 ! (h) Hour of Right Ascension (B1950) integer*4 RAm_1 ! (min) Minute of Right Ascension (B1950) integer*4 RAs_1 ! (s) Second of Right Ascension (B1950) character*1 DE__1 ! Sign of the Declination (B1950) integer*4 DEd_1 ! (deg) Degree of Declination (B1950) integer*4 DEm_1 ! (arcmin) Arcminute of Declination (B1950) integer*4 DEs_1 ! (arcsec) Arcsecond of Declination (B1950) real*4 EW_Ha ! (0.1nm) H{alpha} (65630.1nm) equivalent width (1) real*4 E_EW_Ha ! (0.1nm) Upper limit error on EW(Ha) real*4 e_EW_Ha_1 ! (0.1nm) Lower limit error on EW(Ha) real*4 CaH1 ! CaH1 (63850.1nm) flux ratio real*4 CaH2 ! CaH2 (68300.1nm) flux ratio real*4 CaH3 ! CaH3 (69750.1nm) flux ratio real*4 TiO1 ! TiO1 (67200.1nm) flux ratio real*4 TiO2 ! TiO2 (70590.1nm) flux ratio real*4 TiO3 ! TiO3 (70940.1nm) flux ratio real*4 TiO4 ! TiO4 (71320.1nm) flux ratio real*4 TiO5 ! TiO5 (70500.1nm) flux ratio character*5 SpType ! The dM spectral type (2) integer*4 Note ! Note (G2) *Note (1): In units of Angstroms. *Note (2): Improved dM spectral types based on TiO5 band-head ratios. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table4.dat' ! Parameters for the dMe and dM(e) stars integer*4 nr__3 parameter (nr__3=37) ! Number of records character*51 ar__3 ! Full-size record C B1950.0 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg_2 ! (deg) Right Ascension B1950.0 real*8 DEdeg_2 ! (deg) Declination B1950.0 C ---------------------------------- ! (position vector(s) in degrees) character*5 Type ! Star type (dMe or dM(e) stars) character*10 ID_1 ! The dM identifier integer*4 RAh_2 ! (h) Hour of Right Ascension (B1950.0) integer*4 RAm_2 ! (min) Minute of Right Ascension (B1950.0) integer*4 RAs_2 ! (s) Second of Right Ascension (B1950.0) character*1 DE__2 ! Sign of the Declination (B1950.0) integer*4 DEd_2 ! (deg) Degree of the Declination (B1950.0) integer*4 DEm_2 ! (arcmin) Arcminute of the Declination (B1950.0) integer*4 DEs_2 ! (arcsec) Arcsecond of the Declination (B1950.0) real*4 V_I ! (mag) V-I color index real*4 vmag ! (mag) Visual magnitude real*4 Mass ! (solMass) Mass c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table5.dat' ! Complete space motions for 161 M dwarf stars integer*4 nr__4 parameter (nr__4=161) ! Number of records character*99 ar__4 ! Full-size record C B1950 position composed of: RAhour DEdeg character*10 ID_2 ! The dM identifier character*1 n_ID_1 ! Note about the components (G1) real*8 RAhour ! (h) Hour of right Ascension (B1950) real*8 DEdeg_3 ! (deg) Degree of Declination (B1950) real*4 pm_1 ! (arcsec/yr) Proper motion integer*4 pmPA_1 ! (deg) Direction of proper motion real*4 RV ! (km/s) Radial velocity real*4 e_RV ! (km/s) ? Uncertainty in RV real*4 Uvel ! (km/s) Velocity towards the Galactic anticenter * relative to the LSR real*4 e_Uvel ! (km/s) ? Uncertainty in Uvel real*4 Vvel ! (km/s) Velocity in the direction of galactic * rotation relative to the LSR real*4 e_Vvel ! (km/s) ? Uncertainty in Vvel real*4 Wvel ! (km/s) Velocity toward the North Galactic Pole * relative to the LSR real*4 e_Wvel ! (km/s) ? Uncertainty in Wvel real*4 SpVel ! (km/s) Full space velocity real*4 e_SpVel ! (km/s) ? Uncertainty in SpVel character*3 Note_1 ! Comma separated notes (G2) C============================================================================= C Loading file 'table1.dat' ! Complete M dwarf-white dwarf wide binary target list C Format for file interpretation 1 format( + A11,3X,A11,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,I2,1X,F5.2,1X, + A6,1X,F5.2,1X,A6,1X,A8,1X,A14,1X,I4,1X,F4.2,1X,F5.1,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,203 read(1,'(A118)')ar__ read(ar__,1) + ID1,ID2,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag1,SpType1,Vmag2, + SpType2,Site,Dates,ExpTime,pm,pmPA,PA,Sep if(ar__(46:50) .EQ. '') Vmag1 = rNULL__ if(ar__(59:63) .EQ. '') Vmag2 = rNULL__ if(ar__(96:99) .EQ. '') ExpTime = iNULL__ if(ar__(112:114) .EQ. '') PA = 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) + ID1,ID2,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag1,SpType1,Vmag2, + SpType2,Site,Dates,ExpTime,pm,pmPA,PA,Sep write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table2.dat' ! Journal of the observations C Format for file interpretation 2 format(A11,1X,A4,1X,A1,F4.1,1X,A62) C Effective file loading open(unit=1,status='old',file= +'table2.dat') write(6,*) '....Loading file: table2.dat' do i__=1,24 read(1,'(A85)')ar__1 read(ar__1,2)ObsDate,Site_1,l_Seeing,Seeing,Notes if(ar__1(19:22) .EQ. '') Seeing = rNULL__ c ..............Just test output........... write(6,2)ObsDate,Site_1,l_Seeing,Seeing,Notes c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table3.dat' ! Equivalent widths and band-head flux ratios C Format for file interpretation 3 format( + A10,1X,A1,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,I2,1X,F5.2,1X, + F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2, + 1X,F4.2,1X,F4.2,1X,A5,1X,I1) C Effective file loading open(unit=1,status='old',file= +'table3.dat') write(6,*) '....Loading file: table3.dat' do i__=1,140 read(1,'(A95)')ar__2 read(ar__2,3) + ID,n_ID,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,EW_Ha, + E_EW_Ha,e_EW_Ha_1,CaH1,CaH2,CaH3,TiO1,TiO2,TiO3,TiO4,TiO5, + SpType,Note 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) + ID,n_ID,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,EW_Ha, + E_EW_Ha,e_EW_Ha_1,CaH1,CaH2,CaH3,TiO1,TiO2,TiO3,TiO4,TiO5, + SpType,Note write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table4.dat' ! Parameters for the dMe and dM(e) stars C Format for file interpretation 4 format( + A5,1X,A10,1X,I2,1X,I2,1X,I2,1X,A1,I2,1X,I2,1X,I2,1X,F4.2,1X, + F5.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'table4.dat') write(6,*) '....Loading file: table4.dat' do i__=1,37 read(1,'(A51)')ar__3 read(ar__3,4) + Type,ID_1,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,V_I,vmag, + Mass 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,4) + Type,ID_1,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,V_I,vmag, + Mass write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2 c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table5.dat' ! Complete space motions for 161 M dwarf stars C Format for file interpretation 5 format( + A10,1X,A1,1X,F7.4,1X,F8.4,1X,F4.2,1X,I3,1X,F5.1,1X,F4.1,1X, + F6.1,1X,F4.1,1X,F6.1,1X,F4.1,1X,F6.1,1X,F4.1,1X,F5.1,1X,F3.1, + 1X,A3) C Effective file loading open(unit=1,status='old',file= +'table5.dat') write(6,*) '....Loading file: table5.dat' do i__=1,161 read(1,'(A99)')ar__4 read(ar__4,5) + ID_2,n_ID_1,RAhour,DEdeg_3,pm_1,pmPA_1,RV,e_RV,Uvel,e_Uvel, + Vvel,e_Vvel,Wvel,e_Wvel,SpVel,e_SpVel,Note_1 if(ar__4(46:49) .EQ. '') e_RV = rNULL__ if(ar__4(58:61) .EQ. '') e_Uvel = rNULL__ if(ar__4(70:73) .EQ. '') e_Vvel = rNULL__ if(ar__4(82:85) .EQ. '') e_Wvel = rNULL__ if(ar__4(93:95) .EQ. '') e_SpVel = rNULL__ c ..............Just test output........... write(6,5) + ID_2,n_ID_1,RAhour,DEdeg_3,pm_1,pmPA_1,RV,e_RV,Uvel,e_Uvel, + Vvel,e_Vvel,Wvel,e_Wvel,SpVel,e_SpVel,Note_1 c .......End.of.Just test output........... end do close(1) C============================================================================= stop end