FORTRAN Generation
(/./ftp/cats/J/A_A/361/1011)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/361/1011 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/A+A/361/1011  F-K evolved stars Ca II activity and rotation  (Pasquini+, 2000)
*================================================================================
*Ca II activity and rotation in F-K evolved stars.
*      Pasquini L., De Medeiros J.R., Girardi L.
*     <Astron. Astrophys. 361, 1011 (2000)>
*     =2000A&A...361.1011P
C=============================================================================

C  Internal variables

      integer*4 i__

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

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

      integer*4 nr__
      parameter (nr__=117)	! 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       ! (deg) Right Ascension J2000.0
      real*8        DEdeg       ! (deg)     Declination J2000.0
C  ---------------------------------- ! (position vector(s) in degrees)

      character*11  Name        ! Star name
      integer*4     RAh         ! (h) Right ascension (J2000.0)
      integer*4     RAm         ! (min) Right ascension (J2000.0)
      real*4        RAs         ! (s) Right ascension (J2000.0)
      character*1   DE_         ! Declination sign (J2000.0)
      integer*4     DEd         ! (deg) Declination (J2000.0)
      integer*4     DEm         ! (arcmin) Declination (J2000.0)
      integer*4     DEs         ! (arcsec) Declination (J2000.0)

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

C  Declarations for 'table1.dat'	! Updated data for the stars in the list of
                                 Pasquini & Brocato (1992A&A...266..340P)

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

      character*9   Name_1      ! Star name (HD (Cat. <III/135>) number)
      character*12  SpType      ! Spectral type
      character*5   Bin         ! Binarity flag (G2)
      real*4        logTeff     ! ([K]) Logarithm of effective temperature
      real*4        VMAG        ! (mag) V absolute magnitude
      real*4        Mbol        ! (mag) Bolometric absolute magnitude
      real*4        logF_k      ! ([mW/m2]) Logarithm of CaII chromospheric fluxes (G1)
      real*4        Vsini       ! (km/s) CORAVEL rotational velocity
      real*4        Vsini_Gr    ! (km/s) ? Gray and collaborators rotational velocity
      character*2   r_Vsini_Gr  ! Reference for Vsini(Gr) (1)
      real*4        E_V_R       ! (mag) ? V-R colour excess
*Note (1): Gray and collaborators rotational velocity references:
*      G : Gray, 1982ApJ...262..682G and 1983PASP...95..181G
*      GN: Gray & Nagar, 1985ApJ...298..756G
*      GP: Gray & Pallavicini, 1989PASP..101..695G
*      GT: Gray & Toner, 1987ApJ...322..360G

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

C  Declarations for 'table2.dat'	! Data for stars in open clusters

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

      character*11  Name_2      ! Star name
      real*4        B_V         ! (mag) B-V colour
      real*4        v_B_V_0     ! (mag) Dereddened B-V colour
      real*4        V_R         ! (mag) ? V-R colour
      real*4        v_V_R_0     ! (mag) Dereddened V-R colour
      character*1   u__V_R_0    ! [)] Uncertainty flag on (V-R)0
      real*4        logTeff_1   ! ([K]) Logarithm of effective temperature
      real*4        VMAG_1      ! (mag) V absolute magnitude
      real*4        A_K         ! A(K) index (1)
      real*4        A_50        ! A(50) index (1)
      real*4        V_R_1       ! ? K line V/R asymmetry (G3)
      real*4        FKP         ! ([mW/m2]) Ca II Flux according to Pasquini et al.
*                                   (1988A&A...191..253P)
      real*4        FKL         ! ([mW/m2]) Ca II Flux according to Linsky et al.
*                                   (1979ApJS...41...47L)
      real*4        F_k         ! ([mW/m2]) Logarithm of CaII chromospheric fluxes (G1)
      real*4        Vsini_1     ! (km/s) ? Rotational velocity
      character*15  Clus        ! Cluster name
*Note (1): A(K) refers to the ratio between the Ca II K line core area and
*     the pseudocontinuum at 3950{AA} (Pasquini et al., 1988A&A...191..253P)
*     A(50) refers to the same area, divided by the 3925-3975 bandpass
*     (Linsky et al., 1979ApJS...41...47L)

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

C  Declarations for 'table3.dat'	! New data for field star

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

      character*9   Name_3      ! Star name (HD (Cat. <III/135>) number)
      character*9   SpType_1    ! Spectral type
      character*3   Bin_1       ! Binarity flag (G2)
      real*4        V_R_2       ! (mag) ? V-R colour
      real*4        v_V_R_0_1   ! (mag) ? Dereddened V-R colour
      character*1   u__V_R_0_1  ! [)] Uncertainty flag on (V-R)0
      real*4        logTeff_2   ! ([K]) ? Logarithm of effective temperature
      real*4        VMAG_2      ! (mag) V absolute magnitude (Hipparcos, Cat. <I/239>)
      real*4        Mbol_1      ! (mag) ? Bolometric absolute magnitude
      real*4        A_K_1       ! ? A(K) index (Pasquini et al.,
*                                    1988A&A...191..253P)
      real*4        A_50_1      ! ? A(50) index (Linsky et al.,
*                                    1979ApJS...41...47L)
      real*4        V_R_3       ! ? K line V/R asymmetry (G3)
      real*4        logF_k_1    ! ([mW/m2]) ? Logarithm of CaII chromospheric fluxes (G1)
      real*4        VC          ! (km/s) ? Rotational velocity from CORAVEL
      character*1   u_VC        ! Uncertainty flag on VC
      real*4        VC2         ! (km/s) ? Second value for VC
      real*4        VG          ! (km/s) ? Vsini from Gray

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

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

C  Format for file interpretation

    1 format(A11,4X,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,117
        read(1,'(A80)')ar__
        read(ar__,1)Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)Name,RAh,RAm,RAs,DE_,DEd,DEm,DEs
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table1.dat'	! Updated data for the stars in the list of
*                                 Pasquini & Brocato (1992A&A...266..340P)

C  Format for file interpretation

    2 format(
     +  A9,2X,A12,1X,A5,1X,F5.3,2X,F6.3,2X,F6.3,2X,F4.2,2X,F4.1,3X,
     +  F3.1,1X,A2,4X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,59
        read(1,'(A81)')ar__1
        read(ar__1,2)
     +  Name_1,SpType,Bin,logTeff,VMAG,Mbol,logF_k,Vsini,Vsini_Gr,
     +  r_Vsini_Gr,E_V_R
        if(ar__1(67:69) .EQ. '') Vsini_Gr = rNULL__
        if(ar__1(77:80) .EQ. '') E_V_R = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name_1,SpType,Bin,logTeff,VMAG,Mbol,logF_k,Vsini,Vsini_Gr,
     +  r_Vsini_Gr,E_V_R
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Data for stars in open clusters

C  Format for file interpretation

    3 format(
     +  A11,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,A1,1X,F5.3,1X,F5.2,1X,
     +  F4.3,1X,F5.4,1X,F4.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F3.1,1X,A15)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,15
        read(1,'(A95)')ar__2
        read(ar__2,3)
     +  Name_2,B_V,v_B_V_0,V_R,v_V_R_0,u__V_R_0,logTeff_1,VMAG_1,A_K,
     +  A_50,V_R_1,FKP,FKL,F_k,Vsini_1,Clus
        if(ar__2(23:26) .EQ. '') V_R = rNULL__
        if(ar__2(57:60) .EQ. '') V_R_1 = rNULL__
        if(ar__2(77:79) .EQ. '') Vsini_1 = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  Name_2,B_V,v_B_V_0,V_R,v_V_R_0,u__V_R_0,logTeff_1,VMAG_1,A_K,
     +  A_50,V_R_1,FKP,FKL,F_k,Vsini_1,Clus
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! New data for field star

C  Format for file interpretation

    4 format(
     +  A9,2X,A9,2X,A3,1X,F4.2,2X,F4.2,A1,3X,F5.3,1X,F5.2,2X,F5.2,2X,
     +  F4.3,2X,F5.4,2X,F4.2,3X,F4.2,2X,F4.1,A1,F4.1,F4.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,45
        read(1,'(A103)')ar__3
        read(ar__3,4)
     +  Name_3,SpType_1,Bin_1,V_R_2,v_V_R_0_1,u__V_R_0_1,logTeff_2,
     +  VMAG_2,Mbol_1,A_K_1,A_50_1,V_R_3,logF_k_1,VC,u_VC,VC2,VG
        if(ar__3(27:30) .EQ. '') V_R_2 = rNULL__
        if(ar__3(33:36) .EQ. '') v_V_R_0_1 = rNULL__
        if(ar__3(41:45) .EQ. '') logTeff_2 = rNULL__
        if(ar__3(54:58) .EQ. '') Mbol_1 = rNULL__
        if(ar__3(61:64) .EQ. '') A_K_1 = rNULL__
        if(ar__3(67:71) .EQ. '') A_50_1 = rNULL__
        if(ar__3(74:77) .EQ. '') V_R_3 = rNULL__
        if(ar__3(81:84) .EQ. '') logF_k_1 = rNULL__
        if(ar__3(87:90) .EQ. '') VC = rNULL__
        if(ar__3(92:95) .EQ. '') VC2 = rNULL__
        if(ar__3(96:99) .EQ. '') VG = rNULL__
c    ..............Just test output...........
        write(6,4)
     +  Name_3,SpType_1,Bin_1,V_R_2,v_V_R_0_1,u__V_R_0_1,logTeff_2,
     +  VMAG_2,Mbol_1,A_K_1,A_50_1,V_R_3,logF_k_1,VC,u_VC,VC2,VG
c    .......End.of.Just test output...........
      end do
      close(1)

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