Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/600/A19 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.81 (2015-09-23), on 2024-Apr-18 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/600/A19 Spectra of 28 nearby young late-M dwarfs (Phan-Bao+, 2017) *================================================================================ *Detection of lithium in nearby young late-M dwarfs. * Phan-Bao N., Bessell M.S., Nguyen-Thanh D., Martin E.L., Ho P.T.P., * Lee C.F., Parsons H. * <Astron. Astrophys. 600, A19 (2017)> * =2017A&A...600A..19P (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! H{alpha}, Li I 6708{AA} and Na I (8170-8200{AA}) equivalent widths of 28 nearby late-M dwarfs integer*4 nr__ parameter (nr__=28) ! Number of records character*109 ar__ ! Full-size record character*15 DENIS_P (nr__) ! DENIS-P name (JHHMMSS+DDMMSS) (Cat. B/denis) character*1 n_DENIS_P (nr__) ! [a] Note on DENIS-P (1) character*15 OName (nr__) ! Other name character*1 n_OName (nr__) ! [bcd] Note on ONAme (1) character*4 SpType (nr__) ! MK spectral type real*4 Dist (nr__) ! (pc) Distance real*4 e_Dist (nr__) ! (pc) rms uncertainty on Dist character*10 Obs_date (nr__) ! ("date") UT observing date character*1 l_EWHa (nr__) ! Limit flag on EW real*4 EWHa (nr__) ! (0.1nm) H{alpha} equivalent width (2) real*4 e_EWHa (nr__) ! (0.1nm) ? rms uncertainty on EWHa character*1 l_EWLi (nr__) ! Limit flag on EWLi real*4 EWLi (nr__) ! (0.1nm) Lithium equivalent width (2) real*4 e_EWLi (nr__) ! (0.1nm) ? rms uncertainty on EWLi character*1 n_EWLi (nr__) ! [e] Note on EWLi (1) real*4 EWNaI (nr__) ! (0.1nm) ? NaI equivalent width (3) real*4 e_EWNaI (nr__) ! (0.1nm) ? rms uncertainty on EWNaI integer*4 Ref (nr__) ! References for spectral type and distance (4) character*19 FileName (nr__) ! Name of the fits spectrum file in * subdirectory fits *Note (1): Notes as follows: * a = a young binary of M6.5+M9.0 (Reiners et al., 2010A&A...513L...9R) * b = a triple system of M5.5+M8.0+M8.5 (Phan-Bao et al., 2005A&A...439L..19P, * 2006ApJ...645L.153P) * c = a binary with photometric spectral types of M6.0+L1 estimated in * Montagnier et al. (2006A&A...460L..19M) * d = a binary of M8.5+T5.5 (Henry et al., 2004AJ....128.2460H; Biller et al., * 2006ApJ...641L.141B) * e = the lithium is marginally detected *Note (2): The H{alpha} and Li I EWs measured from the medium-resolution spectra. *Note (3): The NaI EWs measured from low-resolution spectra published in * Crifo et al. (2005, Cat. J/A+A/441/653) and * Phan-Bao & Bessell (2006, Cat. J/A+A/446/515) (see Sect. 4.2). *Note (4): References for spectral type and distance as follows: * 1 = Phan-Bao & Bessell (2006, Cat. J/A+A/446/515) * 2 = Phan-Bao et al. (2006MNRAS.366L..40P) * 3 = Crifo et al. (2005, Cat. J/A+A/441/653) * 4 = Phan-Bao et al. (2005A&A...439L..19P) * 5 = this paper C============================================================================= C Loading file 'table1.dat' ! H{alpha}, Li I 6708{AA} and Na I (8170-8200{AA}) * equivalent widths of 28 nearby late-M dwarfs C Format for file interpretation 1 format( + A15,A1,1X,A15,A1,1X,A4,1X,F4.1,1X,F3.1,1X,A10,1X,A1,F5.1,1X, + F3.1,1X,A1,F3.1,1X,F3.1,A1,1X,F3.1,1X,F3.1,1X,I1,1X,A19) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,28 read(1,'(A109)')ar__ read(ar__,1) + DENIS_P(i__),n_DENIS_P(i__),OName(i__),n_OName(i__), + SpType(i__),Dist(i__),e_Dist(i__),Obs_date(i__),l_EWHa(i__), + EWHa(i__),e_EWHa(i__),l_EWLi(i__),EWLi(i__),e_EWLi(i__), + n_EWLi(i__),EWNaI(i__),e_EWNaI(i__),Ref(i__),FileName(i__) if(ar__(67:69) .EQ. '') e_EWHa(i__) = rNULL__ if(ar__(76:78) .EQ. '') e_EWLi(i__) = rNULL__ if(ar__(81:83) .EQ. '') EWNaI(i__) = rNULL__ if(ar__(85:87) .EQ. '') e_EWNaI(i__) = rNULL__ c ..............Just test output........... write(6,1) + DENIS_P(i__),n_DENIS_P(i__),OName(i__),n_OName(i__), + SpType(i__),Dist(i__),e_Dist(i__),Obs_date(i__),l_EWHa(i__), + EWHa(i__),e_EWHa(i__),l_EWLi(i__),EWLi(i__),e_EWLi(i__), + n_EWLi(i__),EWNaI(i__),e_EWNaI(i__),Ref(i__),FileName(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end