FORTRAN Generation
(/./ftp/cats/J/ApJ/835/251)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/835/251 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/ApJ/835/251  Radial velocities and BVIc LCs of the EB* CU Cnc  (Wilson+, 2017)
*================================================================================
*The M dwarf eclipsing binary CU Cancri.
*    Wilson R.E., Pilachowski C.A., Terrell D.
*   <Astrophys. J., 835, 251-251 (2017)>
*   =2017ApJ...835..251W    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Radial velocity observations with
                               the Phoenix Spectrometer

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

      real*8        HJD         ! (d) Midpoint Heliocentric Julian date; HJD-2450000
      integer*4     Exp         ! (s) [600/900] Integration time
      real*4        RV1         ! (km/s) [-55/72] Radial velocity of the Primary
      real*4        RV2         ! (km/s) [-71/68] Radial velocity of the Secondary
      real*4        R           ! [3/19] Tonry-Davis (1979AJ.....84.1511T)
*                                    "R" value (1)
      real*4        sig         ! (km/s) [0.5/1.4]? Standard deviation of the four
*                                    independent measurements
*Note (1): The R value is the height of the cross-correlation peak divided by
*          the noise in the cross-correlation function. Observations with
*          R's above three are ordinarily considered reliable.

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

C  Declarations for 'table3.dat'	! *Light curves in B, V , and I_C_ bands

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

      real*8        HJD_B       ! (d) ?=0 Heliocentric Julian Date of B band
*                                  observation
      real*4        delBmag     ! (mag) [-0.6/0.4]?=0 Differential B band magnitude
      real*8        HJD_V       ! (d) Heliocentric Julian Date of V band observation
      real*4        delVmag     ! (mag) [-0.9/-0.4] Differential V band magnitude
      real*8        HJD_Ic      ! (d) ?=0 Heliocentric Julian Date of I_c_ band
*                                  observation
      real*4        delIcmag    ! (mag) [-2.8/-2.5]?=0 Differential I_c_ band magnitude

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

C  Loading file 'table1.dat'	! Radial velocity observations with
*                               the Phoenix Spectrometer

C  Format for file interpretation

    1 format(F11.5,1X,I3,1X,F6.2,1X,F6.2,1X,F4.1,1X,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,48
        read(1,'(A38)')ar__
        read(ar__,1)HJD,Exp,RV1,RV2,R,sig
        if(ar__(36:38) .EQ. '') sig = rNULL__
c    ..............Just test output...........
        write(6,1)HJD,Exp,RV1,RV2,R,sig
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! *Light curves in B, V , and I_C_ bands

C  Format for file interpretation

    2 format(F12.4,1X,F6.3,1X,F12.4,1X,F6.3,1X,F12.4,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,823
        read(1,'(A59)')ar__1
        read(ar__1,2)HJD_B,delBmag,HJD_V,delVmag,HJD_Ic,delIcmag
c    ..............Just test output...........
        write(6,2)HJD_B,delBmag,HJD_V,delVmag,HJD_Ic,delIcmag
c    .......End.of.Just test output...........
      end do
      close(1)

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