Conversion of standardized ReadMe file for
file /./ftp/cats/J/A_A/341/818 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-Mar-28 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/341/818 s-Cepheid velocity curves (Kienzle+, 1999) *================================================================================ *Structural Properties of s-Cepheid Velocity Curves. Constraining the location *of the {omega}_4_=2{omega}_1_ resonance. * Kienzle F., Moskalik P., Bersier D, Pont F. * <Astron. Astrophys. 341, 818 (1999)> * =1999A&A...341..818K (SIMBAD/NED BibCode) C============================================================================= C Internal variables integer*4 i__ c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'table1.dat' ! Fourier parameters of cepheids integer*4 nr__ parameter (nr__=16) ! Number of records character*193 ar__ ! Full-size record C J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs real*8 RAdeg (nr__) ! (deg) Right Ascension J2000 real*8 DEdeg (nr__) ! (deg) Declination J2000 C ---------------------------------- ! (position vector(s) in degrees) character*8 STAR (nr__) ! Star name according to GCVS real*8 Period (nr__) ! (d) Period real*8 e_Period (nr__) ! (d) One sigma error Period integer*4 M (nr__) ! Number of data points integer*4 N (nr__) ! Number of harmonics fitted real*4 sigma (nr__) ! (km/s) RMS of the residuals real*8 A0 (nr__) ! (km/s) Gamma velocity real*4 e_A0 (nr__) ! (km/s) One sigma error gamma velocity real*4 A1 (nr__) ! (km/s) Amplitude A1 real*4 e_A1 (nr__) ! (km/s) One sigma error amplitude A1 real*4 R21 (nr__) ! Amplitude ratio A2/A1 real*4 e_R21 (nr__) ! One sigma error amplitude ratio R21 real*4 f21 (nr__) ! Phase shift phi2-2*phi1 real*4 e_f21 (nr__) ! One sigma error phase shift f21 real*4 R31 (nr__) ! ?=-9.999 Amplitude ratio A3/A1 real*4 e_R31 (nr__) ! ?=-9.999 One sigma error amplitude ratio R31 real*4 f31 (nr__) ! ?=-9.999 Phase shift phi3-3*phi1 real*4 e_f31 (nr__) ! ?=-9.999 One sigma error phase shift f31 real*4 R41 (nr__) ! ?=-9.999 Amplitude ratio A4/A1 real*4 e_R41 (nr__) ! ?=-9.999 One sigma error amplitude ratio R41 real*4 f41 (nr__) ! ?=-9.999 Phase shift phi4-4*phi1 real*4 e_f41 (nr__) ! ?=-9.999 One sigma error phase shift f41 real*4 R51 (nr__) ! ?=-9.999 Amplitude ratio A5/A1 real*4 e_R51 (nr__) ! ?=-9.999 One sigma error amplitude ratio R51 real*4 f51 (nr__) ! ?=-9.999 Phase shift phi5-5*phi1 real*4 e_f51 (nr__) ! ?=-9.999 One sigma error phase shift f51 integer*4 RAh (nr__) ! (h) Right Ascension J2000 (hours) (1) integer*4 RAm (nr__) ! (min) Right Ascension J2000 (minutes) (1) real*4 RAs (nr__) ! (s) Right Ascension J2000 (seconds) (1) character*1 DE_ (nr__) ! Declination J2000 (sign) (1) integer*4 DEd (nr__) ! (deg) Declination J2000 (degrees) (1) integer*4 DEm (nr__) ! (arcmin) Declination J2000 (minutes) (1) integer*4 DEs (nr__) ! (arcsec) Declination J2000 (seconds) (1) *Note (1): columns added at CDS, values from SIMBAD data-base. c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - C Declarations for 'data.dat' ! Individual CORAVEL velocities integer*4 nr__1 parameter (nr__1=715) ! Number of records character*32 ar__1 ! Full-size record character*8 STAR_1 (nr__1) ! Star name according to GCVS real*8 HJD (nr__1) ! (d) Heliocentric julian day real*4 RV (nr__1) ! (km/s) Radial velocity real*4 e_RV (nr__1) ! (km/s) One sigma error C============================================================================= C Loading file 'table1.dat' ! Fourier parameters of cepheids C Format for file interpretation 1 format( + A8,1X,F8.6,1X,F8.6,1X,I2,1X,I1,1X,F5.3,1X,F7.3,1X,F5.3,1X, + F6.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F5.3,1X,F6.3,1X,F6.3, + 1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X,F6.3,1X, + F6.3,1X,F6.3,1X,F6.3,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,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,16 read(1,'(A193)')ar__ read(ar__,1) + STAR(i__),Period(i__),e_Period(i__),M(i__),N(i__),sigma(i__), + A0(i__),e_A0(i__),A1(i__),e_A1(i__),R21(i__),e_R21(i__), + f21(i__),e_f21(i__),R31(i__),e_R31(i__),f31(i__),e_f31(i__), + R41(i__),e_R41(i__),f41(i__),e_f41(i__),R51(i__),e_R51(i__), + f51(i__),e_f51(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__), + DEd(i__),DEm(i__),DEs(i__) RAdeg(i__) = rNULL__ DEdeg(i__) = rNULL__ c Derive coordinates RAdeg and DEdeg from input data c (RAdeg and DEdeg are set to rNULL__ when unknown) if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15. if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4. if(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240. if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__) if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60. if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600. if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__) c ..............Just test output........... write(6,1) + STAR(i__),Period(i__),e_Period(i__),M(i__),N(i__),sigma(i__), + A0(i__),e_A0(i__),A1(i__),e_A1(i__),R21(i__),e_R21(i__), + f21(i__),e_f21(i__),R31(i__),e_R31(i__),f31(i__),e_f31(i__), + R41(i__),e_R41(i__),f41(i__),e_f41(i__),R51(i__),e_R51(i__), + f51(i__),e_f51(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__), + DEd(i__),DEm(i__),DEs(i__) write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= C Loading file 'data.dat' ! Individual CORAVEL velocities C Format for file interpretation 2 format(A8,1X,F11.3,1X,F6.2,1X,F4.2) C Effective file loading open(unit=1,status='old',file= +'data.dat') write(6,*) '....Loading file: data.dat' do i__=1,715 read(1,'(A32)')ar__1 read(ar__1,2)STAR_1(i__),HJD(i__),RV(i__),e_RV(i__) c ..............Just test output........... write(6,2)STAR_1(i__),HJD(i__),RV(i__),e_RV(i__) c .......End.of.Just test output........... end do close(1) C============================================================================= stop end