CDS.headStuff2
FORTRAN Generation
Conversion of standardized ReadMe file for
catalog 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-May-03 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/A45 HD 147018, 171238 and 204313 radial velocities (Segransan+, 2010) *================================================================================ *The CORALIE survey for southern extrasolar planets. *XVI. Discovery of a planetary system around HD 147018 and of two long period and *massive planets orbiting HD 171238 and HD 204313. * Segransan D., Udry S., Mayor M., Naef D., Pepe F., Queloz D., Santos N.C., * Demory B-O., Figueira P., Gillon M., Marmier M., Megevand D., Sosnowska D., * Tamuz O., Triaud A.H.M.J. * <Astron. Astrophys. 511, A45 (2010)> * =2010A&A...511A..45S C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Radial velocity measurements for HD 147018 integer*4 nr__ parameter (nr__=101) ! Number of records character*37 ar__ ! Full-size record real*8 BJD ! (d) Barycentric Julian date real*8 RV ! (km/s) Barycentric radial velocity (1) real*8 e_RV ! (km/s) Full RV uncertainty character*3 Inst ! [C98,C07] Instrument (2) *Note (1): The CORALIE Echelle spectrograph was upgraded in July 2007 which * affected the instrument zero point. We decided to refer to the * original CORALIE as CORALIE-98 and to the upgraded one as CORALIE-07. * When using both set of data, the instrumental zero point should be * adjusted. *Note (2): Instrument used as follows: * C98 = CORALIE-98 * C07 = CORALIE-07 C============================================================================= C Loading file 'table1.dat' ! Radial velocity measurements for HD 147018 C Format for file interpretation 1 format(F14.6,2X,F9.5,1X,F7.5,1X,A3) C Effective file loading open(unit=1,status='old',file= +'J/A+A/511/A45/table1.dat') write(6,*) '....Loading file: table1.dat' do i__=1,101 read(1,'(A37)')ar__ read(ar__,1)BJD,RV,e_RV,Inst c ..............Just test output........... write(6,1)BJD,RV,e_RV,Inst c .......End.of.Just test output........... end do close(1) C============================================================================= stop end