FORTRAN Generation
(/./ftp/cats/J/MNRAS/413/2218)

Conversion of standardized ReadMe file for file /./ftp/cats/J/MNRAS/413/2218 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.5, on 2014-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__=-1.e37)     	! NULL real number
      parameter  (iNULL__=-2147483647)	! NULL int  number

C=============================================================================
Cat. J/MNRAS/413/2218    Stellar rotation in Hyades and Praesepe     (Delorme+, 2011)
*================================================================================
*Stellar rotation in the Hyades and Praesepe: gyrochronology and braking
*time-scale.
*    Delorme P., Cameron A.C., Hebb L., Rostron J., Lister T.A., Norton A.J.,
*    Pollacco D., West R.G.
*   <Mon. Not. R. Astron. Soc., 413, 2218-2234 (2011)>
*   =2011MNRAS.413.2218D
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Hyades SuperWASP fields used in this survey

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

      real*8        RA_         ! (deg) Right Ascension J2000
      real*8        Dec         ! (deg)     Declination J2000
      integer*4     RAh         ! (h) Field centre right ascension (J2000)
      integer*4     RAm         ! (min) Field centre right ascension (J2000)
      character*1   DE_         ! Field centre declination sign (J2000)
      integer*4     DEd         ! (deg) Field centre declination (J2000)
      integer*4     DEm         ! (arcmin) Field centre declination (J2000)
      integer*4     Nimg        ! Number of images
      integer*4     Nnig        ! Usable nights
      character*10  Date        ! ("YYYY-MM-DD") First night date
      integer*4     Nb          ! Baseline (nights)

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

C  Declarations for 'table2.dat'	! Hyades members with SuperWASP rotation periods

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

      character*19  SWASP       ! Swasp designation (JHHMMSS.ss+DDMMSS.s)
      character*12  USNO        ! USNO B-1.0 designation
      character*3   X           ! [Yes/No ] X-ray activity? (table2 only) (1)
      real*4        Per         ! (d) Rotation (spin) period (2)
      real*4        dPer        ! (d) ? Difference between the two period
*                                    determinations (2)
      real*4        J_Ks        ! (mag) 2MASS J-Ks colour index
      real*4        Ksmag       ! (mag) 2MASS Ks magnitude
      real*4        Vmag        ! (mag) ?=- V magnitude
      real*4        Dist        ! (deg) Distance to the cluster centre
      real*4        pmRA        ! (mas) Proper motion along RA
      real*4        e_pmRA      ! (mas) rms uncertainty on pmRA
      real*4        pmDE        ! (mas) Proper motion along DE
      real*4        e_pmDE      ! (mas) rms uncertainty on pmDE
      real*4        plx         ! (mas) ?=- Parallax (table2 only)
      real*4        Mmb         ! Membership probability
*Note (1): traces whether or not Stern, Schmitt & Kahabka (1995,
*          Cat. J/ApJ/448/683) reported X-ray activity.
*Note (2): if the object has been identified on two different seasons, the
*     period given is the average of the two periods whose difference is
*     indicated in dPer.

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

C  Declarations for 'table4.dat'	! Praesepe members with SuperWASP rotation periods

      integer*4 nr__2
      parameter (nr__2=52)	! Number of records
      character*113 ar__2  	! Full-size record

      character*19  SWASP_1     ! Swasp designation (JHHMMSS.ss+DDMMSS.s)
      character*12  USNO_1      ! USNO B-1.0 designation
      character*3   X_1         ! [Yes/No ] X-ray activity? (table2 only) (1)
      real*4        Per_1       ! (d) Rotation (spin) period (2)
      real*4        dPer_1      ! (d) ? Difference between the two period
*                                    determinations (2)
      real*4        J_Ks_1      ! (mag) 2MASS J-Ks colour index
      real*4        Ksmag_1     ! (mag) 2MASS Ks magnitude
      real*4        Vmag_1      ! (mag) ?=- V magnitude
      real*4        Dist_1      ! (deg) Distance to the cluster centre
      real*4        pmRA_1      ! (mas) Proper motion along RA
      real*4        e_pmRA_1    ! (mas) rms uncertainty on pmRA
      real*4        pmDE_1      ! (mas) Proper motion along DE
      real*4        e_pmDE_1    ! (mas) rms uncertainty on pmDE
      real*4        plx_1       ! (mas) ?=- Parallax (table2 only)
      real*4        Mmb_1       ! Membership probability
*Note (1): traces whether or not Stern, Schmitt & Kahabka (1995,
*          Cat. J/ApJ/448/683) reported X-ray activity.
*Note (2): if the object has been identified on two different seasons, the
*     period given is the average of the two periods whose difference is
*     indicated in dPer.

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

C  Declarations for 'tablea1.dat'	! Cross-identifications and B, V photometry from
                             the literature of rotational variables with
                             Hyades membership probabilities greater than 0.5

      integer*4 nr__3
      parameter (nr__3=62)	! Number of records
      character*77 ar__3  	! Full-size record

      character*19  SWASP_2     ! Swasp designation (JHHMMSS.ss+DDMMSS.s)
      character*12  USNO_2      ! USNO B-1.0 designation
      character*18  OName       ! Cluster member ID
      character*4   SpType      ! MK spectral type
      real*4        Vmagl       ! (mag) ? Literature V magnitude
      real*4        B_Vl        ! (mag) ? Literature B-V colour index
      integer*4     Ref         ! ? Reference for photometry (1)
*Note (1): References as follows:
*   1 = Upgren, Weis & Deluca (1979AJ.....84.1586U)
*   2 = Weis (1983PASP...95...29W)
*   3 = Upgren, Weis & Hanson (1985AJ.....90.2039U)
*   4 = Weis & Hanson (1988AJ.....96..148W)
*   5 = Stauffer (1982AJ.....87..899S)
*  11 = Klein Wassink (1927PGro...41....1K)
*  12 = Jones & Stauffer (1991AJ....102.1080J)
*  13 = Johnson (1952ApJ...116..640J)
*  14 = Upgren et al. (1979AJ.....84.1586U)
*  15 = Weis (1981PASP...93..437W)
*  16 = Mermilliod et al. (1990A&A...235..114M)

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

C  Declarations for 'tablea2.dat'	! Cross-identifications and B, V photometry from
                             the literature of rotational variables with
                             Praesepe membership probabilities greater than 0.5

      integer*4 nr__4
      parameter (nr__4=52)	! Number of records
      character*77 ar__4  	! Full-size record

      character*19  SWASP_3     ! Swasp designation (JHHMMSS.ss+DDMMSS.s)
      character*12  USNO_3      ! USNO B-1.0 designation
      character*18  OName_1     ! Cluster member ID
      character*4   SpType_1    ! MK spectral type
      real*4        Vmagl_1     ! (mag) ? Literature V magnitude
      real*4        B_Vl_1      ! (mag) ? Literature B-V colour index
      integer*4     Ref_1       ! ? Reference for photometry (1)
*Note (1): References as follows:
*   1 = Upgren, Weis & Deluca (1979AJ.....84.1586U)
*   2 = Weis (1983PASP...95...29W)
*   3 = Upgren, Weis & Hanson (1985AJ.....90.2039U)
*   4 = Weis & Hanson (1988AJ.....96..148W)
*   5 = Stauffer (1982AJ.....87..899S)
*  11 = Klein Wassink (1927PGro...41....1K)
*  12 = Jones & Stauffer (1991AJ....102.1080J)
*  13 = Johnson (1952ApJ...116..640J)
*  14 = Upgren et al. (1979AJ.....84.1586U)
*  15 = Weis (1981PASP...93..437W)
*  16 = Mermilliod et al. (1990A&A...235..114M)

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

C  Loading file 'table1.dat'	! Hyades SuperWASP fields used in this survey

C  Format for file interpretation

    1 format(I2,1X,I2,1X,A1,I2,1X,I2,1X,I4,1X,I2,1X,A10,1X,I3)

C  Effective file loading

      open(unit=1,file='table1.dat', status='old')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,21
        read(1,'(A35)')ar__
        read(ar__,1)RAh,RAm,DE_,DEd,DEm,Nimg,Nnig,Date,Nb
c       Derive coordinates RA_ and Dec from input data
c       (RA_ and Dec are set to rNULL_ when unknown)
        RA_ = RAh
        if(RAh .GE. 0) RA_=RAh*15.
        if(RAm .GE. 0) RA_=RA_+RAm/4.
        Dec = DEd
        if(DEm .GE. 0) Dec=Dec+DEm/60.
        if(DE_.EQ.'-'.AND.Dec.GE.0) Dec=-Dec
c    ..............Just test output...........
        write(6,1)RAh,RAm,DE_,DEd,DEm,Nimg,Nnig,Date,Nb
        write(6,'(6H Pos: 2F8.4)') RA_,Dec
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Hyades members with SuperWASP rotation periods

C  Format for file interpretation

    2 format(
     +  6X,A19,1X,A12,1X,A3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.2,2X,F5.2,
     +  1X,F4.1,1X,F5.1,1X,F4.1,1X,F5.1,1X,F4.1,1X,F5.2,1X,F5.3)

C  Effective file loading

      open(unit=1,file='table2.dat', status='old')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,62
        read(1,'(A113)')ar__1
        read(ar__1,2)
     +  SWASP,USNO,X,Per,dPer,J_Ks,Ksmag,Vmag,Dist,pmRA,e_pmRA,pmDE,
     +  e_pmDE,plx,Mmb
        if(ar__1(51:55) .EQ. '') dPer = rNULL__
        if (Vmag .EQ. 2.2233e-322) Vmag =  rNULL__
        if (plx .EQ. 2.2233e-322) plx =  rNULL__
c    ..............Just test output...........
        write(6,2)
     +  SWASP,USNO,X,Per,dPer,J_Ks,Ksmag,Vmag,Dist,pmRA,e_pmRA,pmDE,
     +  e_pmDE,plx,Mmb
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Praesepe members with SuperWASP rotation periods

C  Format for file interpretation

    3 format(
     +  6X,A19,1X,A12,1X,A3,1X,F6.3,1X,F5.3,1X,F5.3,1X,F5.2,2X,F5.2,
     +  1X,F4.1,1X,F5.1,1X,F4.1,1X,F5.1,1X,F4.1,1X,F5.2,1X,F5.3)

C  Effective file loading

      open(unit=1,file='table4.dat', status='old')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,52
        read(1,'(A113)')ar__2
        read(ar__2,3)
     +  SWASP_1,USNO_1,X_1,Per_1,dPer_1,J_Ks_1,Ksmag_1,Vmag_1,Dist_1,
     +  pmRA_1,e_pmRA_1,pmDE_1,e_pmDE_1,plx_1,Mmb_1
        if(ar__2(51:55) .EQ. '') dPer_1 = rNULL__
        if (Vmag_1 .EQ. 2.2233e-322) Vmag_1 =  rNULL__
        if (plx_1 .EQ. 2.2233e-322) plx_1 =  rNULL__
c    ..............Just test output...........
        write(6,3)
     +  SWASP_1,USNO_1,X_1,Per_1,dPer_1,J_Ks_1,Ksmag_1,Vmag_1,Dist_1,
     +  pmRA_1,e_pmRA_1,pmDE_1,e_pmDE_1,plx_1,Mmb_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablea1.dat'	! Cross-identifications and B, V photometry from
*                             the literature of rotational variables with
*                             Hyades membership probabilities greater than 0.5

C  Format for file interpretation

    4 format(6X,A19,1X,A12,1X,A18,1X,A4,2X,F5.2,1X,F4.2,1X,I2)

C  Effective file loading

      open(unit=1,file='tablea1.dat', status='old')
      write(6,*) '....Loading file: tablea1.dat'
      do i__=1,62
        read(1,'(A77)')ar__3
        read(ar__3,4)SWASP_2,USNO_2,OName,SpType,Vmagl,B_Vl,Ref
        if(ar__3(65:69) .EQ. '') Vmagl = rNULL__
        if(ar__3(71:74) .EQ. '') B_Vl = rNULL__
        if(ar__3(76:77) .EQ. '') Ref = iNULL__
c    ..............Just test output...........
        write(6,4)SWASP_2,USNO_2,OName,SpType,Vmagl,B_Vl,Ref
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tablea2.dat'	! Cross-identifications and B, V photometry from
*                             the literature of rotational variables with
*                             Praesepe membership probabilities greater than 0.5

C  Format for file interpretation

    5 format(6X,A19,1X,A12,1X,A18,1X,A4,2X,F5.2,1X,F4.2,1X,I2)

C  Effective file loading

      open(unit=1,file='tablea2.dat', status='old')
      write(6,*) '....Loading file: tablea2.dat'
      do i__=1,52
        read(1,'(A77)')ar__4
        read(ar__4,5)
     +  SWASP_3,USNO_3,OName_1,SpType_1,Vmagl_1,B_Vl_1,Ref_1
        if(ar__4(65:69) .EQ. '') Vmagl_1 = rNULL__
        if(ar__4(71:74) .EQ. '') B_Vl_1 = rNULL__
        if(ar__4(76:77) .EQ. '') Ref_1 = iNULL__
c    ..............Just test output...........
        write(6,5)
     +  SWASP_3,USNO_3,OName_1,SpType_1,Vmagl_1,B_Vl_1,Ref_1
c    .......End.of.Just test output...........
      end do
      close(1)

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