FORTRAN Generation
(/./ftp/cats/J/ApJ/595/1206)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/595/1206 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-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/ApJ/595/1206      ROSAT view of Hipparcos F stars          (Suchkov+, 2003)
*================================================================================
*ROSAT view of Hipparcos F stars.
*    Suchkov A.A., Makarov V.V., Voges W.
*   <Astrophys. J. 595, 1206 (2003)>
*   =2003ApJ...595.1206S
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! HIPPARCOS F stars with ROSAT counterparts

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

      integer*4     HIP         ! HIPPARCOS identification number
      character*16  RSX         ! ROSAT All-Sky Surveys identification
      real*4        Offset      ! (arcsec) ROSAT source offset from HIPPARCOS position
      real*4        CRT         ! (ct/s) ROSAT source X-ray count rate
      real*4        e_CRT       ! (ct/s) Error in CRT
      real*4        HR1         ! Hardness ratio (G1)
      real*4        e_HR1       ! Error in HR1
      real*4        logLX       ! ([10-7W]) Log of the X-ray luminosity in units of erg/s
      real*4        VMag        ! (mag) Absolute V band magnitude (2)
      real*4        DelMc0      ! (mag) The overluminosity parameter
      integer*4     Teff        ! (K) Effective temperature
      real*4        v_Fe_H_     ! ([Sun]) ? Metallicity
      character*1   u__Fe_H_    ! [?] Indicates an unknown [Fe/H]
      real*4        E_b_y       ! (mag) The Stromgren (b-y) excess
      real*4        Dist        ! (pc) Distance
*Note (2): Corrected for reddening using E(b-y)

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

C  Declarations for 'table4.dat'	! Strong X-Ray Emitters, logLX>29.5,
                              among Metal-poor F Stars, [Fe/H]<=-0.4

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

      integer*4     HIP_1       ! HIP number
      real*4        logLX_1     ! ([10-7W]) X-ray luminosity
      real*4        HR1_1       ! Hardness ratio (G1)
      real*4        VMAG_1      ! (mag) Absolute V magnitude
      real*4        DelMc0_1    ! (mag) Overluminosity parameter, {Delta}M_c0_
      integer*4     Teff_1      ! (K) Effective temperature
      real*4        v_Fe_H__1   ! ([Sun]) Metallicity

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

C  Declarations for 'table5.dat'	! Stars with Extreme X-Ray Luminosity, logLX>30.4

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     HIP_2       ! HIP number
      character*9   Name        ! Name
      character*16  ROSAT       ! ROSAT designation (JHHMMSS.s+DDMMSS)
      character*6   Type        ! Type of activity (1)
      real*4        Dist_1      ! (pc) Distance
      real*4        RAdeg       ! (deg) Right ascension in decimal degrees (J2000)
      real*4        DEdeg       ! (deg) Declination in decimal degrees (J2000)
      real*4        logLX_2     ! ([10-7W]) X-ray luminosity
      real*4        HR1_2       ! Hardness ratio (G1)
      real*4        DelMc0_2    ! (mag) Overluminosity parameter, {Delta}M_c0_
      real*4        v_Fe_H__2   ! ([Sun]) ? Metallicity
      character*1   u__Fe_H__1  ! [?] Uncertainty flag on [Fe/H]
      real*4        VMag_2      ! (mag) Absolute V magnitude
      character*64  Com         ! Comments
*Note (1): Type of activity is abbreviated as follows:
*     RS = RS CVn type stars
*     XO = other types of short-period active binaries
*     XG = active evolved stars without spectroscopic binarity
*      Y = young stars
*     BY = apparently single BY Dratype variable stars
*     WU =  WU UMatype binaries
*      ? = question mark (?) for unknown type

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

C  Loading file 'table1.dat'	! HIPPARCOS F stars with ROSAT counterparts

C  Format for file interpretation

    1 format(
     +  I6,5X,A16,1X,F5.1,1X,F5.3,1X,F5.3,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F5.2,1X,F5.2,1X,I4,1X,F5.2,1X,A1,1X,F6.3,1X,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,1980
        read(1,'(A101)')ar__
        read(ar__,1)
     +  HIP,RSX,Offset,CRT,e_CRT,HR1,e_HR1,logLX,VMag,DelMc0,Teff,
     +  v_Fe_H_,u__Fe_H_,E_b_y,Dist
        if(ar__(81:85) .EQ. '') v_Fe_H_ = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  HIP,RSX,Offset,CRT,e_CRT,HR1,e_HR1,logLX,VMag,DelMc0,Teff,
     +  v_Fe_H_,u__Fe_H_,E_b_y,Dist
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Strong X-Ray Emitters, logLX>29.5,
*                              among Metal-poor F Stars, [Fe/H]<=-0.4

C  Format for file interpretation

    2 format(I6,1X,F5.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,I4,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,32
        read(1,'(A40)')ar__1
        read(ar__1,2)
     +  HIP_1,logLX_1,HR1_1,VMAG_1,DelMc0_1,Teff_1,v_Fe_H__1
c    ..............Just test output...........
        write(6,2)
     +  HIP_1,logLX_1,HR1_1,VMAG_1,DelMc0_1,Teff_1,v_Fe_H__1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Stars with Extreme X-Ray Luminosity, logLX>30.4

C  Format for file interpretation

    3 format(
     +  I6,1X,A9,1X,A16,1X,A6,1X,F6.2,1X,F6.2,1X,F6.2,1X,F5.2,1X,F5.2,
     +  1X,F5.2,1X,F5.2,A1,1X,F5.2,1X,A64)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,56
        read(1,'(A157)')ar__2
        read(ar__2,3)
     +  HIP_2,Name,ROSAT,Type,Dist_1,RAdeg,DEdeg,logLX_2,HR1_2,
     +  DelMc0_2,v_Fe_H__2,u__Fe_H__1,VMag_2,Com
        if(ar__2(81:85) .EQ. '') v_Fe_H__2 = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  HIP_2,Name,ROSAT,Type,Dist_1,RAdeg,DEdeg,logLX_2,HR1_2,
     +  DelMc0_2,v_Fe_H__2,u__Fe_H__1,VMag_2,Com
c    .......End.of.Just test output...........
      end do
      close(1)

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