Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/380/590 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-20 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/380/590 30 DENIS late-M dwarfs between 15 and 30pc (Phan-Bao+, 2001) *================================================================================ *New neighbours: IV. 30 DENIS late-M dwarfs between 15 and 30 parsecs. * Phan-Bao N., Guibert J., Crifo F., Delfosse X., Forveille T., * Borsenberger J., Epchtein N., Fouque P., Simon G. * <Astron. Astrophys., 380, 590-598 (2001)> * =2001A&A...380..590P C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table45.dat' ! Proper motion, MAMA and DENIS photometry and estimated distances or the 30 DENIS red dwarf candidates (tables 4 & 5 of the paper) integer*4 nr__ parameter (nr__=30) ! Number of records character*96 ar__ ! Full-size record character*15 DENIS ! DENIS name (based on J2000 position) character*1 New ! [*] Not previously known as a high proper * motion star real*4 pmRA ! (arcsec/yr) Proper motion in right ascension real*4 pmDE ! (arcsec/yr) Proper motion in declination real*4 pm ! (arcsec/yr) Total proper motion real*4 pmL ! (arcsec/yr) ? Total proper motion (1) real*4 Bmag ! (mag) ? B magnitude from the SRC-J plate real*4 Rmag ! (mag) R magnitude from the plates POSS I, SRC-R * and ESO-R real*4 Imag ! (mag) DENIS I magnitude real*4 I_J ! (mag) DENIS I-J colour index real*4 J_K ! (mag) DENIS J-K colour index real*4 IMAG_1 ! (mag) Absolute I band magnitude (2) real*4 KMAG ! (mag) Absolute K band magnitude (3) real*4 DistI ! (pc) Estimated distance from IMAG real*4 DistK ! (pc) Estimated distance from KMAG real*4 Vt ! (km/s) Tangential velocity (computed from DistI * and proper motion) *Note (1): Literature total proper motion, from Luyten catalogues * (Cat. <I/98>, <I/87>) or Wroblewski & Torres 1994 (Cat. * <J/A+AS/105/179>) when available *Note (2): Absolute I-band magnitude estimated from the * (I-J, absolute magnitude) relation of Delfosse, 1997, * Ph.D. thesis, Grenoble University. *Note (3): Absolute K-band magnitude estimated from the * (I-K, absolute magnitude) relation of Tinney et al., 1995AJ....110.3014T. C============================================================================= C Loading file 'table45.dat' ! Proper motion, MAMA and DENIS photometry and * estimated distances or the 30 DENIS red dwarf * candidates (tables 4 & 5 of the paper) C Format for file interpretation 1 format( + A15,A1,1X,F6.3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F4.1,1X,F4.1,1X, + F5.2,1X,F4.2,1X,F4.2,1X,F5.2,1X,F5.2,1X,F4.1,1X,F4.1,1X,F5.1) C Effective file loading open(unit=1,status='old',file= +'table45.dat') write(6,*) '....Loading file: table45.dat' do i__=1,30 read(1,'(A96)')ar__ read(ar__,1) + DENIS,New,pmRA,pmDE,pm,pmL,Bmag,Rmag,Imag,I_J,J_K,IMAG_1,KMAG, + DistI,DistK,Vt if(ar__(38:42) .EQ. '') pmL = rNULL__ if(ar__(44:47) .EQ. '') Bmag = rNULL__ c ..............Just test output........... write(6,1) + DENIS,New,pmRA,pmDE,pm,pmL,Bmag,Rmag,Imag,I_J,J_K,IMAG_1,KMAG, + DistI,DistK,Vt c .......End.of.Just test output........... end do close(1) C============================================================================= stop end