FORTRAN Generation
(/./ftp/cats/J/A_A/400/659)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/400/659 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/400/659       UBV(RI)c photometry of active stars. X.  (Cutispoto+, 2003)
*================================================================================
*Long-term monitoring of active stars. X. Photometry collected in 1994.
*    Cutispoto G., Messina S., Rodono M.
*   <Astron. Astrophys. 400, 659 (2003)>
*   =2003A&A...400..659C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'position.dat'	! Star positions from Simbad

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

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

      character*10  Star       (nr__) ! Star names (program, comparison and check)
      integer*4     RAh        (nr__) ! (h) Right ascension (J2000.0)
      integer*4     RAm        (nr__) ! (min) Right ascension (J2000.0)
      real*4        RAs        (nr__) ! (s) Right ascension (J2000.0)
      character*1   DE_        (nr__) ! Declination sign (J2000.0)
      integer*4     DEd        (nr__) ! (deg) Declination (J2000.0)
      integer*4     DEm        (nr__) ! (arcmin) Declination (J2000.0)
      integer*4     DEs        (nr__) ! (arcsec) Declination (J2000.0)

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

C  Declarations for 'table1.dat'	! Summary of photometric observations

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

      character*10  Star_1     (nr__1) ! Program star name (v)
      character*17  OName      (nr__1) ! Other name of program star
      real*8        Epoch      (nr__1) ! (yr) Mean epoch of observations
      character*10  Comp       (nr__1) ! Comparison star (c)
      character*10  Check      (nr__1) ! Check star (ck)
      integer*4     v_c        (nr__1) ! (mmag) Standard deviation for the v-c
*                                   V-band differential magnitude
      integer*4     ck_c       (nr__1) ! (mmag) Standard deviation for the ck-c
*                                   V-band differential magnitude
      integer*4     Nights     (nr__1) ! Number of nights
      real*4        DeltaV     (nr__1) ! (mag) Peak-to-peak amplitude of the V-band
*                                   light curve
      real*8        Per        (nr__1) ! (d) ? Period of variability

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

C  Declarations for 'table3.dat'	! Summary of stellar data

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

      character*10  Star_2     (nr__2) ! Program star name
      real*8        Epoch_1    (nr__2) ! (yr) Mean epoch of observations
      real*4        Vmag       (nr__2) ! (mag) V-band maximum luminosity
      real*4        U_B        (nr__2) ! (mag) U-B colour index at maximum luminosity
      real*4        B_V        (nr__2) ! (mag) B-V colour index at maximum luminosity
      real*4        V_R        (nr__2) ! (mag) Cousins V-R colour index at maximum luminosity
      real*4        V_I        (nr__2) ! (mag) Cousins V-I colour index at maximum luminosity
      real*8        Per_1      (nr__2) ! (d) ? Period of variability
      character*17  SpType     (nr__2) ! Inferred Spectral type
      character*1   l_DH       (nr__2) ! Limit flag on DH
      real*4        DH         (nr__2) ! (pc) ? Distance measured by the Hipparcos satellite
      character*1   u_DH       (nr__2) ! Uncertainty flag on DH
      real*4        dph        (nr__2) ! (pc) Photometric distance inferred from the
*                                   spectral classification
      character*1   u_dph      (nr__2) ! Uncertainty flag on dph
      real*4        Vmax       (nr__2) ! (mag) V-band maximum luminosity ever observed

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

C  Declarations for 'table4.dat'	! V-band magnitude and colors obtained for the
                               comparison (c) and check (ck) stars
                               obtained at ESO

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

      character*10  Star_3     (nr__3) ! Comparison or check star name
      real*4        Vmag_1     (nr__3) ! (mag) V magnitude
      real*4        U_B_1      (nr__3) ! (mag) U-B colour index (1)
      character*1   u_U_B      (nr__3) ! Uncertainty flag on U-B (1)
      real*4        B_V_1      (nr__3) ! (mag) B-V colour index (1)
      real*4        V_R_1      (nr__3) ! (mag) Cousins V-R colour index (1)
      real*4        V_I_1      (nr__3) ! (mag) Cousins V-I colour index (1)
*Note (1): Errors are of the order of 0.01 magnitudes. The symbol ":"
*    denotes errors of the order of 0.02 magnitudes; the epochs of observation 
*    are given in Table1

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

C  Declarations for 'ubvri.dat'	! UBV(RI)c data obtained at La Silla observatory

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

      character*10  Star_4     (nr__4) ! Star name
      real*8        HJD        (nr__4) ! (d) Heliocentric Julian Day
      real*4        Phase      (nr__4) ! [0/1] Phase (2)
      real*4        Vmag_2     (nr__4) ! (mag) V-band magnitude
      real*4        U_B_2      (nr__4) ! (mag) ?=9.999 U-B colour index
      real*4        B_V_2      (nr__4) ! (mag) ?=9.999 B-V colour index
      real*4        V_R_2      (nr__4) ! (mag) ?=9.999 V-Rc colour index (1)
      real*4        V_I_2      (nr__4) ! (mag) ?=9.999 V-Ic colour index (1)
*Note (1): Lines for which both V-R and V-I are 9.999 refer to data obtained
*      by the Catania automatic telescopes
*Note (2): Phases have been computed by using the following ephemeris:
*     ---------------------------------------
*     HD 7172   JDo=2449681.5   + 3.15    x E
*     BI Cet    JDo=2449577.5   + 0.520   x E
*     BC Phe    JDo=2449681.5   + 0.657   x E
*     BG Psc    JDo=2449681.5   + 7.60    x E
*     CC Eri    JDo=2449681.5   + 1.56145 x E
*     BY Cet    JDo=2449681.5   + 2.60    x E
*     ES Eri    JDo=2449681.5   + 4.7     x E
*     YY Men    JDo=2449681.5   + 9.5476  x E
*     UX Col    JDo=2449681.5   + 2.21    x E
*     AB Dor    JDo=2449681.5   + 0.51423 x E
*     V1321 Ori JDo=2449681.5   + 5.7     x E
*     V1355 Ori JDo=2449681.5   + 3.82    x E
*     HY CMa    JDo=2449314.93  + 4.977   x E
*     V1358 Ori JDo=2449681.5   + 1.16    x E
*     AU Mic    JD0=2441054.0   + 4.865   x E
*     FK Aqr    JD0=2447129.529 + 4.39    x E

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

C  Loading file 'position.dat'	! Star positions from Simbad

C  Format for file interpretation

    1 format(A10,5X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'position.dat')
      write(6,*) '....Loading file: position.dat'
      do i__=1,57
        read(1,'(A80)')ar__
        read(ar__,1)
     +  Star(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__),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 'table1.dat'	! Summary of photometric observations

C  Format for file interpretation

    2 format(
     +  A10,1X,A17,1X,F7.2,1X,A10,1X,A10,2X,I2,1X,I1,1X,I2,1X,F3.2,1X,
     +  F7.5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,19
        read(1,'(A79)')ar__1
        read(ar__1,2)
     +  Star_1(i__),OName(i__),Epoch(i__),Comp(i__),Check(i__),
     +  v_c(i__),ck_c(i__),Nights(i__),DeltaV(i__),Per(i__)
        if(ar__1(73:79) .EQ. '') Per(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Star_1(i__),OName(i__),Epoch(i__),Comp(i__),Check(i__),
     +  v_c(i__),ck_c(i__),Nights(i__),DeltaV(i__),Per(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Summary of stellar data

C  Format for file interpretation

    3 format(
     +  A10,1X,F7.2,1X,F5.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F7.5,
     +  1X,A17,1X,A1,F5.1,A1,1X,F5.1,A1,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,18
        read(1,'(A91)')ar__2
        read(ar__2,3)
     +  Star_2(i__),Epoch_1(i__),Vmag(i__),U_B(i__),B_V(i__),V_R(i__),
     +  V_I(i__),Per_1(i__),SpType(i__),l_DH(i__),DH(i__),u_DH(i__),
     +  dph(i__),u_dph(i__),Vmax(i__)
        if(ar__2(46:52) .EQ. '') Per_1(i__) = rNULL__
        if(ar__2(73:77) .EQ. '') DH(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Star_2(i__),Epoch_1(i__),Vmag(i__),U_B(i__),B_V(i__),V_R(i__),
     +  V_I(i__),Per_1(i__),SpType(i__),l_DH(i__),DH(i__),u_DH(i__),
     +  dph(i__),u_dph(i__),Vmax(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! V-band magnitude and colors obtained for the
*                               comparison (c) and check (ck) stars
*                               obtained at ESO

C  Format for file interpretation

    4 format(A10,1X,F5.2,1X,F4.2,A1,1X,F4.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,36
        read(1,'(A37)')ar__3
        read(ar__3,4)
     +  Star_3(i__),Vmag_1(i__),U_B_1(i__),u_U_B(i__),B_V_1(i__),
     +  V_R_1(i__),V_I_1(i__)
c    ..............Just test output...........
        write(6,4)
     +  Star_3(i__),Vmag_1(i__),U_B_1(i__),u_U_B(i__),B_V_1(i__),
     +  V_R_1(i__),V_I_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'ubvri.dat'	! UBV(RI)c data obtained at La Silla observatory

C  Format for file interpretation

    5 format(
     +  A10,1X,F12.4,3X,F5.4,2X,F6.3,3X,F5.3,3X,F5.3,3X,F5.3,3X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ubvri.dat')
      write(6,*) '....Loading file: ubvri.dat'
      do i__=1,264
        read(1,'(A71)')ar__4
        read(ar__4,5)
     +  Star_4(i__),HJD(i__),Phase(i__),Vmag_2(i__),U_B_2(i__),
     +  B_V_2(i__),V_R_2(i__),V_I_2(i__)
c    ..............Just test output...........
        write(6,5)
     +  Star_4(i__),HJD(i__),Phase(i__),Vmag_2(i__),U_B_2(i__),
     +  B_V_2(i__),V_R_2(i__),V_I_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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