Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/511/A54 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/511/A54 Magnetic cycles and radial-velocity for 8 stars (Santos+, 2010) *================================================================================ *Do stellar magnetic cycles influence the measurement of precise radial *velocities? * Santos N.C., Gomes da Silva J., Lovis C., Melo C. * <Astron. Astrophys. 511, A54 (2010)> * =2010A&A...511A..54S C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! List of target stars integer*4 nr__ parameter (nr__=8) ! Number of records character*59 ar__ ! Full-size record integer*4 HD (nr__) ! Star HD number character*1 m_HD (nr__) ! Multiplicity index on HD real*4 Vmag (nr__) ! (mag) V magnitude real*4 B_V (nr__) ! (mag) B-V colour index character*7 SpType (nr__) ! MK spectral type integer*4 Prot (nr__) ! (d) Rotational period (1) character*10 ObsF (nr__) ! ("YYYY/MM/DD") First observation date character*10 ObsL (nr__) ! ("YYYY/MM/DD") Last observation date integer*4 N (nr__) ! Number of nights each star was observed integer*4 v_S_N_ (nr__) ! Average signal-to-noise ratio of individual * spectra in HARPS order 6 * (near {lambda}=4000{AA}) *Note (1): From Baliunas et al., 1996ApJ...457L..99B. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table5.dat' ! CaII S activity level as a function of time integer*4 nr__1 parameter (nr__1=241) ! Number of records character*37 ar__1 ! Full-size record integer*4 HD_1 (nr__1) ! Star HD number real*8 BJD (nr__1) ! (d) Barycentric Julian date real*4 SMW (nr__1) ! CaII activity level in MW scale (S_MW_ scale, * see Baliunas et al. 1995ApJ...438..269B) real*4 e_SMW (nr__1) ! Statistical error in SMW c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table6.dat' ! H{alpha} activity level as a function of time integer*4 nr__2 parameter (nr__2=275) ! Number of records character*39 ar__2 ! Full-size record integer*4 HD_2 (nr__2) ! Star HD number real*8 BJD_1 (nr__2) ! (d) Barycentric Julian date real*8 Halpha (nr__2) ! H{alpha} activity level real*8 e_Halpha (nr__2) ! Statistical error in H{alpha} c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table7.dat' ! HeI D3 activity level as a function of time integer*4 nr__3 parameter (nr__3=275) ! Number of records character*39 ar__3 ! Full-size record integer*4 HD_3 (nr__3) ! Star HD number real*8 BJD_2 (nr__3) ! (d) Barycentric Julian date real*8 HeI (nr__3) ! HeI activity level real*8 e_HeI (nr__3) ! Statistical error in HeI c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table8.dat' ! Yearly averages of CaII-S, RV, BIS, FWHM, and Contrast integer*4 nr__4 parameter (nr__4=35) ! Number of records character*125 ar__4 ! Full-size record integer*4 HD_4 (nr__4) ! Star HD number integer*4 Year (nr__4) ! (yr) Year of the measurements real*8 BJD1 (nr__4) ! (d) ?=- Average Barycentric Julian Date for * SMW values real*8 BJD2 (nr__4) ! (d) Average Barycentric Julian Date for RV, FWHM, * BIS, and Contrast values real*8 v_SMW_ (nr__4) ! ?=- Average activity level in MW scale real*8 e__SMW_ (nr__4) ! ?=- rms uncertainty on <SMW> real*8 v_RV_ (nr__4) ! (km/s) Average radial velocity real*4 e__RV_ (nr__4) ! (km/s) rms uncertainty on <RV> real*8 v_BIS_ (nr__4) ! (km/s) Average Bisector Inverse Slope (BIS) value (1) real*8 e__BIS_ (nr__4) ! (km/s) rms uncertainty on <BIS> real*8 v_Cont_ (nr__4) ! (%) Average Cross-Correlation Function's Contrast * value (1) real*8 e__Cont_ (nr__4) ! (%) rms uncertainty on <Contrast> real*8 v_FWHM_ (nr__4) ! (km/s) Average FWHM value (1) real*8 e__FWHM_ (nr__4) ! (km/s) rms uncertainty on <FWHM> *Note (1): Parameters of the HARPS cross-correlation function. C============================================================================= C Loading file 'table1.dat' ! List of target stars C Format for file interpretation 1 format( + 2X,I6,A1,1X,F4.2,1X,F5.3,1X,A7,1X,I2,1X,A10,1X,A10,1X,I2,1X,I2) C Effective file loading open(unit=1,status='old',file= +'table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,8 read(1,'(A59)')ar__ read(ar__,1) + HD(i__),m_HD(i__),Vmag(i__),B_V(i__),SpType(i__),Prot(i__), + ObsF(i__),ObsL(i__),N(i__),v_S_N_(i__) c ..............Just test output........... write(6,1) + HD(i__),m_HD(i__),Vmag(i__),B_V(i__),SpType(i__),Prot(i__), + ObsF(i__),ObsL(i__),N(i__),v_S_N_(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table5.dat' ! CaII S activity level as a function of time C Format for file interpretation 2 format(2X,I6,1X,F14.6,1X,F6.4,1X,F6.4) C Effective file loading open(unit=1,status='old',file= +'table5.dat') write(6,*) '....Loading file: table5.dat' do i__=1,241 read(1,'(A37)')ar__1 read(ar__1,2)HD_1(i__),BJD(i__),SMW(i__),e_SMW(i__) c ..............Just test output........... write(6,2)HD_1(i__),BJD(i__),SMW(i__),e_SMW(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table6.dat' ! H{alpha} activity level as a function of time C Format for file interpretation 3 format(2X,I6,1X,F14.6,1X,F7.5,1X,F7.5) C Effective file loading open(unit=1,status='old',file= +'table6.dat') write(6,*) '....Loading file: table6.dat' do i__=1,275 read(1,'(A39)')ar__2 read(ar__2,3)HD_2(i__),BJD_1(i__),Halpha(i__),e_Halpha(i__) c ..............Just test output........... write(6,3)HD_2(i__),BJD_1(i__),Halpha(i__),e_Halpha(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table7.dat' ! HeI D3 activity level as a function of time C Format for file interpretation 4 format(2X,I6,1X,F14.6,1X,F7.5,1X,F7.5) C Effective file loading open(unit=1,status='old',file= +'table7.dat') write(6,*) '....Loading file: table7.dat' do i__=1,275 read(1,'(A39)')ar__3 read(ar__3,4)HD_3(i__),BJD_2(i__),HeI(i__),e_HeI(i__) c ..............Just test output........... write(6,4)HD_3(i__),BJD_2(i__),HeI(i__),e_HeI(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'table8.dat' ! Yearly averages of CaII-S, RV, BIS, FWHM, * and Contrast C Format for file interpretation 5 format( + 2X,I6,1X,I4,1X,F14.6,1X,F14.6,1X,F7.5,1X,F7.5,1X,F8.4,1X,F6.4, + 1X,F8.5,1X,F7.5,1X,F8.5,1X,F7.5,1X,F7.5,1X,F7.5) C Effective file loading open(unit=1,status='old',file= +'table8.dat') write(6,*) '....Loading file: table8.dat' do i__=1,35 read(1,'(A125)')ar__4 read(ar__4,5) + HD_4(i__),Year(i__),BJD1(i__),BJD2(i__),v_SMW_(i__), + e__SMW_(i__),v_RV_(i__),e__RV_(i__),v_BIS_(i__),e__BIS_(i__), + v_Cont_(i__),e__Cont_(i__),v_FWHM_(i__),e__FWHM_(i__) if (idig(ar__4(15:28)).EQ.0) BJD1(i__) = rNULL__ if (idig(ar__4(45:51)).EQ.0) v_SMW_(i__) = rNULL__ if (idig(ar__4(53:59)).EQ.0) e__SMW_(i__) = rNULL__ c ..............Just test output........... write(6,5) + HD_4(i__),Year(i__),BJD1(i__),BJD2(i__),v_SMW_(i__), + e__SMW_(i__),v_RV_(i__),e__RV_(i__),v_BIS_(i__),e__BIS_(i__), + v_Cont_(i__),e__Cont_(i__),v_FWHM_(i__),e__FWHM_(i__) 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