FORTRAN Generation
(/./ftp/cats/J/A_A/601/A14)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/601/A14 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-16
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/601/A14        Radial velocities of magnetic Ap stars       (Mathys, 2017)
*================================================================================
*Ap stars with magnetically resolved lines:
*Magnetic field determinations from Stokes I and V spectra.
*    Mathys G.
*    <Astron. Astrophys. 601, A14 (2017)>
*    =2017A&A...601A..14M        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'table1.dat'	! Ap stars with resolved magnetically split lines:
                              stars for which new measurements of the mean
                              magnetic field modulus are presented in this paper

      integer*4 nr__
      parameter (nr__=43)	! Number of records
      character*107 ar__   	! Full-size record

      integer*4     HD_HDE      ! HD/HDE star number
      character*13  OName       ! Other id.
      real*4        Vmag        ! (mag) V magnitude
      character*10  SpType      ! MK spectral type
      character*2   l_Per       ! [> ] Limit flag on Per
      real*8        Per         ! (d) ? Period
      character*1   u_Per       ! [:?] Uncertaitny flag on  Per
      character*1   x_Per       ! [dy] Unit for Period
      real*4        Per2        ! ? Second possible period for HD 70331
      character*1   x_Per2      ! [d] Unit for Period2
      integer*4     r_Per       ! ? Period reference (1)
      real*8        HJD0        ! (d) ? Phase origin (Julian Date)
      character*20  n_HJD0      ! Phase origin information
      integer*4     r_HJD0      ! ? Reference for HJD0
*Note (1): References as follows:
*            1 = Romanyuk et al. (2014AstBu..69..427R)
*            2 = Mathys et al. (1997A&AS..124..475M)
*            3 = Metlova et al. (2014AstBu..69..315M)
*            4 = Wade et al. (2000A&A...355.1080W)
*            5 = Mathys et al. (2016, Cat. J/A+A/586/A85)
*            6 = Wade et al. (1999, Cat. J/A+A/347/164)
*            7 = Hill et al. (1998MNRAS.297..236H)
*            8 = Adelman (1997, Cat. J/PASP/109/9)
*            9 = Adelman (1981A&AS...44..265A, Cat. III/89)
*           10 = Preston (1970ApJ...160.1059P)
*           11 = Kurtz (1989MNRAS.238..261K)
*           12 = Bailey et al. (2011A&A...535A..25B)
*           13 = Mathys et al. (2007, Cat. J/A+AS/123/353)
*           14 = Mathys (1991A&AS...89..121M)
*           15 = Landstreet (unpublished cited by Mathys 1991A&AS...89..121M)
*           16 = Wolff (1969ApJ...158.1231W)
*           17 = Adelman (2006PASP..118...77A)
*           18 = Wade et al. (1996A&A...313..209W)
*           19 = Wade et al. (1997MNRAS.292..748W)
*           20 = Bychkov et al. (2016MNRAS.455.2567B)
*           21 = Manfroid & Mathys (1997A&A...320..497M)

c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

C  Declarations for 'apres_rv.dat'	! *Radial velocity measured at multiple epochs
                              for 42 Ap stars (table 7)

      integer*4 nr__1
      parameter (nr__1=1297)	! Number of records
      character*28 ar__1  	! Full-size record

      integer*4     HD_HDE_1    ! HD/HDE star number
      real*8        HJD         ! Heliocentric Julian Date of the observation
      real*4        HRV         ! (km/s) Heliocentric radial velocity
      real*4        s_HRV       ! (km/s) Uncertainty of the measured radial velocity

C=============================================================================

C  Loading file 'table1.dat'	! Ap stars with resolved magnetically split lines:
*                              stars for which new measurements of the mean
*                              magnetic field modulus are presented in this paper

C  Format for file interpretation

    1 format(
     +  I6,1X,A13,1X,F6.3,1X,A10,2X,A2,F10.5,A1,A1,1X,F6.4,A1,7X,I2,
     +  1X,F11.3,1X,A20,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,43
        read(1,'(A107)')ar__
        read(ar__,1)
     +  HD_HDE,OName,Vmag,SpType,l_Per,Per,u_Per,x_Per,Per2,x_Per2,
     +  r_Per,HJD0,n_HJD0,r_HJD0
        if(ar__(43:52) .EQ. '') Per = rNULL__
        if(ar__(56:61) .EQ. '') Per2 = rNULL__
        if(ar__(70:71) .EQ. '') r_Per = iNULL__
        if(ar__(73:83) .EQ. '') HJD0 = rNULL__
        if(ar__(106:107) .EQ. '') r_HJD0 = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  HD_HDE,OName,Vmag,SpType,l_Per,Per,u_Per,x_Per,Per2,x_Per2,
     +  r_Per,HJD0,n_HJD0,r_HJD0
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================

C  Loading file 'apres_rv.dat'	! *Radial velocity measured at multiple epochs
*                              for 42 Ap stars (table 7)

C  Format for file interpretation

    2 format(I6,1X,F11.3,1X,F5.1,1X,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'apres_rv.dat')
      write(6,*) '....Loading file: apres_rv.dat'
      do i__=1,1297
        read(1,'(A28)')ar__1
        read(ar__1,2)HD_HDE_1,HJD,HRV,s_HRV
c    ..............Just test output...........
        write(6,2)HD_HDE_1,HJD,HRV,s_HRV
c    .......End.of.Just test output...........
      end do
      close(1)

C=============================================================================
      stop
      end