FORTRAN Generation
(/./ftp/cats/J/A_A/532/A10)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/532/A10 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-Apr-19
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/532/A10       RACE-OC project. II.                     (Messina+, 2011)
*================================================================================
*RACE-OC project: rotation and variability in the {epsilon} Chamaeleontis,
*Octans, and Argus stellar associations.
*    Messina S., Desidera S., Lanzafame A.C., Turatto M., Guinan E.F.
*   <Astron. Astrophys., 532, A10-10 (2011)>
*   =2011A&A...532A..10M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'tables.dat'	! Summary of period searches (tables 2-4 of the paper)

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

      character*7   Assoc      (nr__) ! Association name
      character*15  Target     (nr__) ! Target name
      character*13  ASAS       (nr__) ! ASAS name (HHMMSS.ss+DDMM.m, J2000)
      real*4        Per        (nr__) ! (d) ? Period
      character*1   n_Per      (nr__) ! [bc] Undetected or inconsistent period (1)
      real*4        e_Per      (nr__) ! (d) ?=- rms uncertainty on Per
      character*9   TS         (nr__) ! ?=- Timeseries sections
      character*1   Qual       (nr__) ! [CLU] Quality for Confirmed, Likely, Undertain
      real*4        Vamp       (nr__) ! (mag) ?=- V-band maximum peak-to-peak light
*                                      curve amplitude
      real*4        Vsig       (nr__) ! (mag) ?=- Photometric precision
      real*4        Vmin       (nr__) ! (mag) Minimum V-band magnitude
      real*4        B_V        (nr__) ! (mag) ?=- B-V colour index
      character*2   n_B_V      (nr__) ! [ad Av] Note on B-V (2)
      character*6   SpType     (nr__) ! MK spectral type
      character*10  Note       (nr__) ! Note about binarity or period origin (3)
      character*9   VName      (nr__) ! Variable name
      character*23  OName      (nr__) ! Other name (IC 2391 cluster only)
*Note (1): Notes on Period as follows:
*   b = period undetected in the periodogram of the complete time series
*   c = vsini inconsistent with v_eq_=2{pi}R/P
*Note (2): Notes on B-V as follows:
*   a = ASAS very sparse observations
*   d = from spectral type
*   Av = Vmag and B-V corrected for reddening.
*Note (3): Notes use the abbreviations:
*    V = visual companion
*    B = binary system
*    Plit = period as given in the literature
*    PACVS = period in ACVS (ASAS Catalog of Variable Stars (see Cat. II/264)
*    SB = binary system

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

C  Declarations for 'tableb1.dat'	! Summary of period search of 71 targets in Paper I
                             and of seven recently added members with
                             photometry timeseries in the SuperWASP archive

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

      character*18  Assoc_1    (nr__1) ! Association name
      character*18  Target_1   (nr__1) ! Target name
      character*27  OName_1    (nr__1) ! SuperWASP/ASAS name
      real*8        Per_1      (nr__1) ! (d) ?=- Period
      real*4        e_Per_1    (nr__1) ! (d) ?=- rms uncertainty on Per
      character*5   Seg        (nr__1) ! Timeserie segment
      character*24  Note_1     (nr__1) ! Note on period

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

C  Declarations for 'tableb2.dat'	! Summary of period search based on ASAS/superWASP
                            (SW) photometry

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

      character*18  Assoc_2    (nr__2) ! Association name
      character*15  Target_2   (nr__2) ! Target name
      real*8        JDi        (nr__2) ! (d) Initial Julian date (JD-2450000)
      real*8        JDf        (nr__2) ! (d) Final Julian date (JD-2450000)
      real*8        Per_2      (nr__2) ! (d) ?=- Period
      real*4        e_Per_2    (nr__2) ! (d) ?=- rms uncertainty on Per
      real*4        Npow       (nr__2) ! Normalised power
      real*4        P99        (nr__2) ! Power at 99% confidence level
      character*11  Note_2     (nr__2) ! Note

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

C  Declarations for 'tableb.dat'	! Summary data from the literature and mass and radius
                            derived from evolutionary tracks
                            (tables B3-B5 of the paper)

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

C  J2000 position composed of: RAh RAm RAs DE- DEd DEm DEs
      real*8        RAdeg      (nr__3) ! (deg) Right Ascension J2000
      real*8        DEdeg      (nr__3) ! (deg)     Declination J2000
C  ---------------------------------- ! (position vector(s) in degrees)

      character*7   Assoc_3    (nr__3) ! Association name
      character*15  Target_3   (nr__3) ! Target name
      integer*4     RAh        (nr__3) ! (h) Right ascension (J2000)
      integer*4     RAm        (nr__3) ! (min) Right ascension (J2000)
      real*4        RAs        (nr__3) ! (s) Right ascension (J2000)
      character*1   DE_        (nr__3) ! Declination sign (J2000)
      integer*4     DEd        (nr__3) ! (deg) Declination (J2000)
      integer*4     DEm        (nr__3) ! (arcmin) Declination (J2000)
      real*4        DEs        (nr__3) ! (arcsec) Declination (J2000)
      real*4        Vmag       (nr__3) ! (mag) V magnitude
      real*4        v_B_V      (nr__3) ! (mag) ?=- B-V colour index (from literature)
      real*4        v_V_I      (nr__3) ! (mag) ?=- V-I colour index (from literature)
      real*4        VMAG_1     (nr__3) ! (mag) Absolute V magnitude
      real*4        Dist       (nr__3) ! (pc) Distance
      character*1   l_vsini    (nr__3) ! Limit flag on vsini
      real*4        vsini      (nr__3) ! (km/s) ?=- Rotational velocity
      real*4        Mass       (nr__3) ! (Msun) ?=- Mass
      real*4        Rad        (nr__3) ! (Rsun) ?=- Radius
      character*7   SpT_l      (nr__3) ! MK spectral type from literature
      character*7   MGR        (nr__3) ! Membership to association (1)
      character*1   r_Vmag     (nr__3) ! [ATLP] Reference for Vmag (2)
      integer*4     r__V_I     (nr__3) ! [0/7] Reference for V-I and B-V (3)
      character*2   n_Vmag     (nr__3) ! [Av] Av when corrected for extinction
*Note (1): The association names are:
*   Arg     = Argus (table B5)
*   Oct     = Octans (table B4)
*   eps Cha = {epsilon} Cha (table B3)
*   eta Cha = {eta} Cha (table B3)
*Note (2): Reference for Vmag as follows:
*   A = ASAS (Cat. II/264)
*   T = Torres et al. (2006, Cat. J/A+A/460/695)
*   L = Lawson et al. (2002MNRAS.329L..29L)
*   P = Platais et al. (2007, Cat. J/A+A/461/509)
*Note (3): References for V-I as follows:
*   0 = V-I form Torres et al. (2006, Cat. J/A+A/460/695)
*   1 = V-I form Alcala et al. (1995, Cat. J/A+AS/114/109)
*   2 = V-I form from Sp.Type
*   3 = V-I form from Lawson et al.  (2001MNRAS.321...57L, 2002MNRAS.329L..29L)
*   4 = B-V and V-I from Torres et al. (2006, Cat. J/A+A/460/695)
*   5 = B-V from Torres et al. (2006, Cat. J/A+A/460/695) and V-I from Sp.Type
*   6 = B-V and V-I from Patten & Simon (1996ApJS..106..489P)
*   7 = B-V from Platais et al. (2007, Cat. J/A+A/461/509) and V-I from Sp.Type

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

C  Loading file 'tables.dat'	! Summary of period searches (tables 2-4 of the paper)

C  Format for file interpretation

    1 format(
     +  A7,1X,A15,1X,A13,1X,F6.3,A1,1X,F5.3,1X,A9,1X,A1,1X,F4.2,1X,
     +  F4.2,1X,F5.2,1X,F4.2,A2,1X,A6,2X,A10,1X,A9,1X,A23)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tables.dat')
      write(6,*) '....Loading file: tables.dat'
      do i__=1,99
        read(1,'(A139)')ar__
        read(ar__,1)
     +  Assoc(i__),Target(i__),ASAS(i__),Per(i__),n_Per(i__),
     +  e_Per(i__),TS(i__),Qual(i__),Vamp(i__),Vsig(i__),Vmin(i__),
     +  B_V(i__),n_B_V(i__),SpType(i__),Note(i__),VName(i__),
     +  OName(i__)
        if(ar__(39:44) .EQ. '') Per(i__) = rNULL__
        if (idig(ar__(47:51)).EQ.0) e_Per(i__) =  rNULL__
        if (idig(ar__(65:68)).EQ.0) Vamp(i__) =  rNULL__
        if (idig(ar__(70:73)).EQ.0) Vsig(i__) =  rNULL__
        if (idig(ar__(81:84)).EQ.0) B_V(i__) =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Assoc(i__),Target(i__),ASAS(i__),Per(i__),n_Per(i__),
     +  e_Per(i__),TS(i__),Qual(i__),Vamp(i__),Vsig(i__),Vmin(i__),
     +  B_V(i__),n_B_V(i__),SpType(i__),Note(i__),VName(i__),
     +  OName(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tableb1.dat'	! Summary of period search of 71 targets in Paper I
*                             and of seven recently added members with
*                             photometry timeseries in the SuperWASP archive

C  Format for file interpretation

    2 format(A18,1X,A18,1X,A27,F7.4,2X,F6.4,1X,A5,4X,A24)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tableb1.dat')
      write(6,*) '....Loading file: tableb1.dat'
      do i__=1,78
        read(1,'(A114)')ar__1
        read(ar__1,2)
     +  Assoc_1(i__),Target_1(i__),OName_1(i__),Per_1(i__),
     +  e_Per_1(i__),Seg(i__),Note_1(i__)
        if (idig(ar__1(66:72)).EQ.0) Per_1(i__) =  rNULL__
        if (idig(ar__1(75:80)).EQ.0) e_Per_1(i__) =  rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Assoc_1(i__),Target_1(i__),OName_1(i__),Per_1(i__),
     +  e_Per_1(i__),Seg(i__),Note_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tableb2.dat'	! Summary of period search based on ASAS/superWASP
*                            (SW) photometry

C  Format for file interpretation

    3 format(
     +  A18,2X,A15,3X,F9.4,1X,F9.4,1X,F7.4,1X,F6.4,1X,F6.2,2X,F5.2,1X,
     +  A11)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tableb2.dat')
      write(6,*) '....Loading file: tableb2.dat'
      do i__=1,486
        read(1,'(A98)')ar__2
        read(ar__2,3)
     +  Assoc_2(i__),Target_2(i__),JDi(i__),JDf(i__),Per_2(i__),
     +  e_Per_2(i__),Npow(i__),P99(i__),Note_2(i__)
        if (idig(ar__2(59:65)).EQ.0) Per_2(i__) =  rNULL__
        if (idig(ar__2(67:72)).EQ.0) e_Per_2(i__) =  rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Assoc_2(i__),Target_2(i__),JDi(i__),JDf(i__),Per_2(i__),
     +  e_Per_2(i__),Npow(i__),P99(i__),Note_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'tableb.dat'	! Summary data from the literature and mass and radius
*                            derived from evolutionary tracks
*                            (tables B3-B5 of the paper)

C  Format for file interpretation

    4 format(
     +  A7,1X,A15,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,F5.2,
     +  1X,F4.2,1X,F4.2,1X,F5.2,1X,F5.1,1X,A1,F6.2,1X,F3.1,1X,F4.2,1X,
     +  A7,1X,A7,1X,A1,1X,I1,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'tableb.dat')
      write(6,*) '....Loading file: tableb.dat'
      do i__=1,99
        read(1,'(A116)')ar__3
        read(ar__3,4)
     +  Assoc_3(i__),Target_3(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),DEs(i__),Vmag(i__),v_B_V(i__),
     +  v_V_I(i__),VMAG_1(i__),Dist(i__),l_vsini(i__),vsini(i__),
     +  Mass(i__),Rad(i__),SpT_l(i__),MGR(i__),r_Vmag(i__),
     +  r__V_I(i__),n_Vmag(i__)
        if (idig(ar__3(56:59)).EQ.0) v_B_V(i__) =  rNULL__
        if (idig(ar__3(61:64)).EQ.0) v_V_I(i__) =  rNULL__
        if (idig(ar__3(79:84)).EQ.0) vsini(i__) =  rNULL__
        if (idig(ar__3(86:88)).EQ.0) Mass(i__) =  rNULL__
        if (idig(ar__3(90:93)).EQ.0) Rad(i__) =  rNULL__
        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,4)
     +  Assoc_3(i__),Target_3(i__),RAh(i__),RAm(i__),RAs(i__),
     +  DE_(i__),DEd(i__),DEm(i__),DEs(i__),Vmag(i__),v_B_V(i__),
     +  v_V_I(i__),VMAG_1(i__),Dist(i__),l_vsini(i__),vsini(i__),
     +  Mass(i__),Rad(i__),SpT_l(i__),MGR(i__),r_Vmag(i__),
     +  r__V_I(i__),n_Vmag(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end