FORTRAN Generation
(/./ftp/cats/J/A_A/364/205)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/364/205 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/364/205       UBVy photometry of cool stars         (Cutispoto+, 2000)
*================================================================================
*Photometric and spectroscopic studies of cool stars discovered in EXOSAT X-ray
*images. IV. The northern hemisphere sample.
*     Cutispoto G., Pastori L., Guerrero A., Tagliaferri G., Messina S.,
*     Rodono M., de Medeiros J.R.
*    <Astron. Astrophys. 364, 205 (2000)>
*    =2000A&A...364..205C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'stars.dat'	! Star positions and magnitudes (from Simbad)

      integer*4 nr__
      parameter (nr__=33)	! Number of records
      character*60 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*19  Name       (nr__) ! Object name
      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)
      real*4        Bmag       (nr__) ! (mag) ? B magnitude
      real*4        Vmag       (nr__) ! (mag) ? V magnitude
      character*5   SpType     (nr__) ! Spectral type

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

C  Declarations for 'ubvmag.dat'	! Complete UBV data set

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

      character*10  Name_1     (nr__1) ! Star name
      real*8        HJD        (nr__1) ! (d) Heliocentric Julian Day
      real*4        Vmag_1     (nr__1) ! (mag) V-band magnitude
      real*4        B_V        (nr__1) ! (mag) ?=9.999 B-V colour index
      real*4        U_B        (nr__1) ! (mag) ?=9.999 U-B colour index

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

C  Declarations for 'ymag.dat'	! Complete y-band data set

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

      character*19  Name_2     (nr__2) ! Star name
      real*8        HJD_1      (nr__2) ! (d) Heliocentric Julian Day
      real*4        ymag       (nr__2) ! (mag) Stromgren y-band star-comparison differential
*                                   magnitude in the instrumental system
      real*4        e_ymag     (nr__2) ! (mag) rms uncertainty on ymag

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

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

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

      character*19  Name_3     (nr__3) ! Star name
      character*1   n_Name     (nr__3) ! [*] *: faint stars whose spectral types were
*                                         evaluated from photographic plates data
      real*4        Vmag_2     (nr__3) ! (mag) V-band magnitude
      character*1   u_Vmag     (nr__3) ! Uncertainty flag on Vmag
      character*16  SpType_1   (nr__3) ! spectral type inferred by us
      character*1   n_SpType   (nr__3) ! [2] Note on SpType (1)
      integer*4     Dist       (nr__3) ! (pc) Trigonometric or photometric (n_Dist = ":")
*                                   distance
      character*1   n_Dist     (nr__3) ! [:] ':' for photometric distance
      character*1   l_EWLi     (nr__3) ! Limit flag on EWLi
      integer*4     EWLi       (nr__3) ! (0.1pm) ? Li I 6708 equivalent width
      character*1   n_EWLi     (nr__3) ! [yn 1]  Note on EWLI (1)
      character*2   Halpha     (nr__3) ! [ae pf] H alpha line detection flag (1)
      character*2   CaII       (nr__3) ! [ae ?] Ca II H&K lines detection flag (1)
      character*1   l_Per      (nr__3) ! Limit flag on Per
      real*4        Per        (nr__3) ! (d) ? Period of photometric variability
      character*1   u_Per      (nr__3) ! [?] Uncertainty flag on Pper
      integer*4     vsini      (nr__3) ! (km/s) ? Rotational velocity
      character*1   u_vsini    (nr__3) ! Uncertainty flag on vsini
      character*1   n_vsini    (nr__3) ! [1/3] Note on vsini
      real*4        logLX      (nr__3) ! ([10+23W]) ? log of X-ray luminosity (in 10^30^erg/s)
*                                     from the ROSAT PSPC
      real*4        logLXe     (nr__3) ! ([10+23W]) ? log of X-ray luminosity (in 10^30^erg/s)
*                                     from the EXOSAT CMA
      character*1   l_logALi   (nr__3) ! Limit flag on logALi
      real*4        logALi     (nr__3) ! ? Li abundance in logarithmic scale
*                                     (H abundance = 12)
      character*1   n_logALi   (nr__3) ! [1] Note on logALi (1)
*Note (1): Flags and notes:
*       n: line not detectable
*       y: line detectable
*       a: absorption line
*      pf: line partially filled-in by emission
*       f: line filled-in by emission
*       e: emission line
*       1: SB2 system, Li EW = 55 m{AA} for both components,
*           vsini = 12 and 7km/s, A_Li_ = 2.7 and 2.6;
*       2: visual binary, both stars are constituted by M1V + M3:V components
*       3: SB 2, vsini = 50: and 30: km/s

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

C  Declarations for 'table3.dat'	! Radial velocities

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

      character*10  Name_4     (nr__4) ! Star name
      real*8        HJD_2      (nr__4) ! (d) Heliocentric Julian Day
      real*4        RV         (nr__4) ! (km/s) Radial velocity value
      real*4        e_RV       (nr__4) ! (km/s) rms uncertainty on RV
      integer*4     o_RV       (nr__4) ! Number of lines used for RV computation
      character*8   SR         (nr__4) ! Spectral region, Li (= Li I 6708) or Halpha

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

C  Loading file 'stars.dat'	! Star positions and magnitudes (from Simbad)

C  Format for file interpretation

    1 format(
     +  A19,1X,I2,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,I2,3X,F5.2,1X,F5.2,
     +  1X,A5)

C  Effective file loading

      open(unit=1,status='old',file=
     +'stars.dat')
      write(6,*) '....Loading file: stars.dat'
      do i__=1,33
        read(1,'(A60)')ar__
        read(ar__,1)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Bmag(i__),Vmag(i__),SpType(i__)
        if(ar__(44:48) .EQ. '') Bmag(i__) = rNULL__
        if(ar__(50:54) .EQ. '') Vmag(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,1)
     +  Name(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Bmag(i__),Vmag(i__),SpType(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 'ubvmag.dat'	! Complete UBV data set

C  Format for file interpretation

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

C  Effective file loading

      open(unit=1,status='old',file=
     +'ubvmag.dat')
      write(6,*) '....Loading file: ubvmag.dat'
      do i__=1,632
        read(1,'(A44)')ar__1
        read(ar__1,2)
     +  Name_1(i__),HJD(i__),Vmag_1(i__),B_V(i__),U_B(i__)
c    ..............Just test output...........
        write(6,2)
     +  Name_1(i__),HJD(i__),Vmag_1(i__),B_V(i__),U_B(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'ymag.dat'	! Complete y-band data set

C  Format for file interpretation

    3 format(A19,1X,F12.4,1X,F6.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ymag.dat')
      write(6,*) '....Loading file: ymag.dat'
      do i__=1,118
        read(1,'(A45)')ar__2
        read(ar__2,3)Name_2(i__),HJD_1(i__),ymag(i__),e_ymag(i__)
c    ..............Just test output...........
        write(6,3)Name_2(i__),HJD_1(i__),ymag(i__),e_ymag(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

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

C  Format for file interpretation

    4 format(
     +  A19,A1,1X,F5.2,A1,1X,A16,A1,1X,I3,A1,1X,A1,I3,1X,A1,1X,A2,1X,
     +  A2,1X,A1,F5.2,A1,1X,I2,A1,A1,1X,F4.1,1X,F4.1,1X,A1,F5.2,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,32
        read(1,'(A95)')ar__3
        read(ar__3,4)
     +  Name_3(i__),n_Name(i__),Vmag_2(i__),u_Vmag(i__),SpType_1(i__),
     +  n_SpType(i__),Dist(i__),n_Dist(i__),l_EWLi(i__),EWLi(i__),
     +  n_EWLi(i__),Halpha(i__),CaII(i__),l_Per(i__),Per(i__),
     +  u_Per(i__),vsini(i__),u_vsini(i__),n_vsini(i__),logLX(i__),
     +  logLXe(i__),l_logALi(i__),logALi(i__),n_logALi(i__)
        if(ar__3(53:55) .EQ. '') EWLi(i__) = iNULL__
        if(ar__3(66:70) .EQ. '') Per(i__) = rNULL__
        if(ar__3(73:74) .EQ. '') vsini(i__) = iNULL__
        if(ar__3(78:81) .EQ. '') logLX(i__) = rNULL__
        if(ar__3(83:86) .EQ. '') logLXe(i__) = rNULL__
        if(ar__3(89:93) .EQ. '') logALi(i__) = rNULL__
c    ..............Just test output...........
        write(6,4)
     +  Name_3(i__),n_Name(i__),Vmag_2(i__),u_Vmag(i__),SpType_1(i__),
     +  n_SpType(i__),Dist(i__),n_Dist(i__),l_EWLi(i__),EWLi(i__),
     +  n_EWLi(i__),Halpha(i__),CaII(i__),l_Per(i__),Per(i__),
     +  u_Per(i__),vsini(i__),u_vsini(i__),n_vsini(i__),logLX(i__),
     +  logLXe(i__),l_logALi(i__),logALi(i__),n_logALi(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Radial velocities

C  Format for file interpretation

    5 format(A10,1X,F12.4,1X,F5.1,1X,F3.1,1X,I2,1X,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,17
        read(1,'(A45)')ar__4
        read(ar__4,5)
     +  Name_4(i__),HJD_2(i__),RV(i__),e_RV(i__),o_RV(i__),SR(i__)
c    ..............Just test output...........
        write(6,5)
     +  Name_4(i__),HJD_2(i__),RV(i__),e_RV(i__),o_RV(i__),SR(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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