Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/527/A63 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/A+A/527/A63 Radial velocities of 7 new HARPS planetary systems (Moutou+, 2011) *================================================================================ *The HARPS search for southern extra-solar planets. *XXVII. Seven new planetary systems. * Moutou C., Mayor M., Lo Curto G., Segransan D., Udry S., Bouchy F., Benz W., * Lovis C., Naef D., Pepe F., Queloz D., Santos N.C., Sousa S. * <Astron. Astrophys. 527, A63 (2011)> * =2011A&A...527A..63M C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Star list integer*4 nr__ parameter (nr__=10) ! Number of records character*78 ar__ ! Full-size record character*10 Name ! Star name (HD 33473 is also HD 33473A) character*5 SpT ! MK spectral type real*4 Vmag ! (mag) Johnson V magnitude real*4 B_V ! (mag) Johnson (B-V) color index real*4 plx ! (mas) Trigonometric parallax real*4 L ! (Lsun) Star luminosity integer*4 Teff ! (K) Effective temperature of the star real*4 logg ! ([cm/s2]) Star gravity real*4 v_Fe_H_ ! ([Sun]) Star metallicity real*4 M_ ! (Msun) Star mass real*4 Age ! (Gyr) Estimated age real*4 R_ ! (Rsun) Stellar radius character*1 l_vsini ! [<] Limit flag on vsini real*4 vsini ! (km/s) ?=--- Rotation velocity c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'rvel.dat' ! Radial-velocity time series integer*4 nr__1 parameter (nr__1=318) ! Number of records character*78 ar__1 ! Full-size record character*10 Name_1 ! Name real*8 JD ! (d) Julian Date real*8 RV ! (km/s) Radial velocity real*8 e_RV ! (km/s) 1-sigma error on the radial velocity real*8 FWHM ! (km/s) Full-width-at-half maximum of the * cross-correlation function real*8 Span ! (km/s) Slope of the bisector span real*8 Smw ! Mount Wilson S value real*8 e_Smw ! 1-sigma error on the Mount Wilson S value C============================================================================= C Loading file 'table1.dat' ! Star list C Format for file interpretation 1 format( + A10,1X,A5,1X,F5.2,1X,F6.3,1X,F5.2,1X,F5.2,1X,I4,1X,F4.2,1X, + F5.2,1X,F4.2,1X,F4.1,1X,F5.2,1X,A1,F3.1) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,10 read(1,'(A78)')ar__ read(ar__,1) + Name,SpT,Vmag,B_V,plx,L,Teff,logg,v_Fe_H_,M_,Age,R_,l_vsini, + vsini if (idig(ar__(76:78)).EQ.0) vsini = rNULL__ c ..............Just test output........... write(6,1) + Name,SpT,Vmag,B_V,plx,L,Teff,logg,v_Fe_H_,M_,Age,R_,l_vsini, + vsini c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'rvel.dat' ! Radial-velocity time series C Format for file interpretation 2 format( + A10,1X,F14.6,1X,F9.5,1X,F7.5,1X,F7.5,1X,F8.5,1X,F8.6,1X,F8.6) C Effective file loading open(unit=1,status='old',file= +'rvel.dat') write(6,*) '....Loading file: rvel.dat' do i__=1,318 read(1,'(A78)')ar__1 read(ar__1,2)Name_1,JD,RV,e_RV,FWHM,Span,Smw,e_Smw c ..............Just test output........... write(6,2)Name_1,JD,RV,e_RV,FWHM,Span,Smw,e_Smw c .......End.of.Just test output........... end do close(1) C============================================================================= stop end C Locate position of first digit in string; or return 0 integer function idig(c) character*(*) c character*1 c1 integer lc,i lc=len(c) idig=0 do i=1,lc if(c(i:i).ne.' ') go to 1 end do 1 if(i.gt.lc) return c1=c(i:i) if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1 if(i.gt.lc) return c1=c(i:i) if(c1.ge.'0'.and.c1.le.'9') idig=i return end