Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/132/866 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-Apr-19 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/132/866 New M dwarfs in solar neighborhood (Riaz+, 2006) *================================================================================ *Identification of new M dwarfs in the solar neighborhood. * Riaz B., Gizis J.E., Harvin J. * <Astron. J., 132, 866-872 (2006)> * =2006AJ....132..866R C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Observed and derived quantities of nearby M stars integer*4 nr__ parameter (nr__=1063) ! Number of records character*113 ar__ ! Full-size record character*16 v2M ! The 2MASS identification (1) real*4 CaH1 ! ? The CaH1 index real*4 CaH2 ! ? The CaH2 index real*4 CaH3 ! ? The CaH3 index real*4 TiO5 ! The TiO5 index (bandheads at 650 and 705nm) real*4 Jmag ! (mag) 2MASS J band magnitude real*4 Hmag ! (mag) 2MASS H band magnitude real*4 Kmag ! (mag) 2MASS K band magnitude character*4 SpType ! MK spectral type, mainly from TiO5 index real*4 EWHa ! (0.1nm) ? H{alpha} equivalent width in Angstroms real*4 log_LX_Lbol ! ([-]) Log of the X-ray to Bolometric luminosities integer*4 Vtan ! (km/s) ? Tangential velocity integer*4 Dist ! (pc) Spectroscopic distance integer*4 pDist ! (pc) ? Distance from parallax character*29 OName ! Other name(s) of the star (2) *Note (1): Format is HHMMSSs+DDMMSS for 2MASS-I = Cat. II/241, * or HHMMSSss+DDMMSSs for 2MASS-Final = Cat. II/246. *Note (2): errors detected and corrected at CDS are marked (*), see the * "History" section below. C============================================================================= C Loading file 'table1.dat' ! Observed and derived quantities of nearby M stars C Format for file interpretation 1 format( + A16,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F5.2,1X,F5.2, + 1X,A4,1X,F5.1,1X,F5.2,1X,I3,1X,I4,1X,I2,1X,A29) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,1063 read(1,'(A113)')ar__ read(ar__,1) + v2M,CaH1,CaH2,CaH3,TiO5,Jmag,Hmag,Kmag,SpType,EWHa, + log_LX_Lbol,Vtan,Dist,pDist,OName if(ar__(18:21) .EQ. '') CaH1 = rNULL__ if(ar__(23:26) .EQ. '') CaH2 = rNULL__ if(ar__(28:31) .EQ. '') CaH3 = rNULL__ if(ar__(61:65) .EQ. '') EWHa = rNULL__ if(ar__(73:75) .EQ. '') Vtan = iNULL__ if(ar__(82:83) .EQ. '') pDist = iNULL__ c ..............Just test output........... write(6,1) + v2M,CaH1,CaH2,CaH3,TiO5,Jmag,Hmag,Kmag,SpType,EWHa, + log_LX_Lbol,Vtan,Dist,pDist,OName c .......End.of.Just test output........... end do close(1) C============================================================================= stop end