FORTRAN Generation
(/./ftp/cats/J/ApJ/701/535)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/701/535 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-Mar-29
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/701/535        A sample of candidate radio stars          (Kimball+, 2009)
*================================================================================
*A sample of candidate radio stars in FIRST and SDSS.
*    Kimball A.E., Knapp G.R., Ivezic Z., West A.A., Bochanski J.J.,
*    Plotkin R.M., Gordon M.S.
*   <Astrophys. J., 701, 535-546 (2009)>
*   =2009ApJ...701..535K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Properties of the radio star candidates sample

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg       ! (deg) SDSS Right Ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) SDSS Declination in decimal degrees (J2000)
      real*8        RAFdeg      ! (deg) FIRST Right Ascension in decimal degrees (J2000)
      real*8        DEFdeg      ! (deg) FIRST Declination in decimal degrees (J2000)
      real*4        Sep         ! (arcsec) Separation between SDSS and FIRST positions
      real*8        Dist        ! (pc) Heliocentric distance (1)
      character*2   Sp          ! Visually-confirmed MK spectral type
      character*1   Ha_         ! [ynm] Spectrum with reliable H{alpha} emission?
*                                (y=yes, n=no, m=maybe)
      real*4        Speak       ! (mJy) FIRST peak 20cm flux density in mJy/beam
      real*4        Sint        ! (mJy) FIRST integrated 20cm flux density
      real*4        umag        ! (mag) SDSS u band model magnitude
      real*4        gmag        ! (mag) SDSS g band model magnitude
      real*4        rmag        ! (mag) SDSS r band model magnitude
      real*4        imag        ! (mag) SDSS i band model magnitude
      real*4        zmag        ! (mag) SDSS z band model magnitude
      real*4        v4DCD       ! Four-dimensional color distance (3)
      integer*4     v_KI2008_   ! Internal identification number (4)
*Note (1): Determined using the photometric parallax relation of
*          Ivezic et al. (2008ApJ...684..287I); the relation is valid
*          only for stars on the main sequence.
*Note (3): describes the statistical significance of the distance in color
*     space between a target object and the point on the stellar locus with
*     the same g–i color as the target; outliers have 4DCD>2, extreme
*     outliers 4DCD>3. See Section 4.1 of the paper for more details.
*Note (4): From the radio catalog of Kimball & Ivezic (2008AJ....136..684K).

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

C  Declarations for 'table2.dat'	! Candidate radio stars with resolved radio emission

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg_1     ! (deg) SDSS Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_1     ! (deg) SDSS Declination in decimal degrees (J2000)
      real*8        RAFdeg_1    ! (deg) FIRST Right Ascension in decimal degrees (J2000)
      real*8        DEFdeg_1    ! (deg) FIRST Declination in decimal degrees (J2000)
      real*4        Sep_1       ! (arcsec) Separation between SDSS and FIRST positions
      real*8        Dist_1      ! (pc) Heliocentric distance (1)
      character*2   Sp_1        ! Visually-confirmed MK spectral type
      character*1   Ha__1       ! [ynm] Spectrum with reliable H{alpha} emission?
*                                (y=yes, n=no, m=maybe)
      real*4        Speak_1     ! (mJy) FIRST peak 20cm flux density in mJy/beam
      real*4        Sint_1      ! (mJy) FIRST integrated 20cm flux density
      real*4        umag_1      ! (mag) SDSS u band model magnitude
      real*4        gmag_1      ! (mag) SDSS g band model magnitude
      real*4        rmag_1      ! (mag) SDSS r band model magnitude
      real*4        imag_1      ! (mag) SDSS i band model magnitude
      real*4        zmag_1      ! (mag) SDSS z band model magnitude
      real*4        v4DCD_1     ! Four-dimensional color distance (3)
      integer*4     v_KI2008__1 ! Internal identification number (4)
*Note (1): Determined using the photometric parallax relation of
*          Ivezic et al. (2008ApJ...684..287I); the relation is valid
*          only for stars on the main sequence.
*Note (3): describes the statistical significance of the distance in color
*     space between a target object and the point on the stellar locus with
*     the same g–i color as the target; outliers have 4DCD>2, extreme
*     outliers 4DCD>3. See Section 4.1 of the paper for more details.
*Note (4): From the radio catalog of Kimball & Ivezic (2008AJ....136..684K).

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

C  Declarations for 'table3.dat'	! Candidate radio stars with complex radio emission

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

C  J2000 position composed of: RAdeg DEdeg
      real*8        RAdeg_2     ! (deg) SDSS Right Ascension in decimal degrees (J2000)
      real*8        DEdeg_2     ! (deg) SDSS Declination in decimal degrees (J2000)
      real*8        RAFdeg_2    ! (deg) FIRST Right Ascension in decimal degrees (J2000)
      real*8        DEFdeg_2    ! (deg) FIRST Declination in decimal degrees (J2000)
      real*4        Sep_2       ! (arcsec) Separation between SDSS and FIRST positions
      real*8        Dist_2      ! (pc) Heliocentric distance (1)
      character*2   Sp_2        ! Visually-confirmed MK spectral type
      character*1   Ha__2       ! [ynm] Spectrum with reliable H{alpha} emission?
*                                (y=yes, n=no, m=maybe)
      real*4        Speak_2     ! (mJy) FIRST peak 20cm flux density in mJy/beam
      real*4        Sint_2      ! (mJy) FIRST integrated 20cm flux density
      real*4        umag_2      ! (mag) SDSS u band model magnitude
      real*4        gmag_2      ! (mag) SDSS g band model magnitude
      real*4        rmag_2      ! (mag) SDSS r band model magnitude
      real*4        imag_2      ! (mag) SDSS i band model magnitude
      real*4        zmag_2      ! (mag) SDSS z band model magnitude
      real*4        v4DCD_2     ! Four-dimensional color distance (3)
      integer*4     v_KI2008__2 ! Internal identification number (4)
*Note (1): Determined using the photometric parallax relation of
*          Ivezic et al. (2008ApJ...684..287I); the relation is valid
*          only for stars on the main sequence.
*Note (3): describes the statistical significance of the distance in color
*     space between a target object and the point on the stellar locus with
*     the same g–i color as the target; outliers have 4DCD>2, extreme
*     outliers 4DCD>3. See Section 4.1 of the paper for more details.
*Note (4): From the radio catalog of Kimball & Ivezic (2008AJ....136..684K).

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

C  Loading file 'table1.dat'	! Properties of the radio star candidates sample

C  Format for file interpretation

    1 format(
     +  F11.7,1X,F12.8,1X,F9.5,1X,F9.5,1X,F4.2,1X,F10.3,1X,A2,1X,A1,
     +  2X,F6.2,1X,F6.2,1X,F4.1,1X,F4.1,1X,F4.1,1X,F4.1,1X,F4.1,1X,
     +  F4.1,1X,I7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,112
        read(1,'(A118)')ar__
        read(ar__,1)
     +  RAdeg,DEdeg,RAFdeg,DEFdeg,Sep,Dist,Sp,Ha_,Speak,Sint,umag,
     +  gmag,rmag,imag,zmag,v4DCD,v_KI2008_
c    ..............Just test output...........
        write(6,1)
     +  RAdeg,DEdeg,RAFdeg,DEFdeg,Sep,Dist,Sp,Ha_,Speak,Sint,umag,
     +  gmag,rmag,imag,zmag,v4DCD,v_KI2008_
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Candidate radio stars with resolved radio emission

C  Format for file interpretation

    2 format(
     +  F11.7,1X,F12.8,1X,F9.5,1X,F9.5,1X,F4.2,1X,F10.3,1X,A2,1X,A1,
     +  2X,F6.2,1X,F6.2,1X,F4.1,1X,F4.1,1X,F4.1,1X,F4.1,1X,F4.1,1X,
     +  F4.1,1X,I7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,16
        read(1,'(A118)')ar__1
        read(ar__1,2)
     +  RAdeg_1,DEdeg_1,RAFdeg_1,DEFdeg_1,Sep_1,Dist_1,Sp_1,Ha__1,
     +  Speak_1,Sint_1,umag_1,gmag_1,rmag_1,imag_1,zmag_1,v4DCD_1,
     +  v_KI2008__1
c    ..............Just test output...........
        write(6,2)
     +  RAdeg_1,DEdeg_1,RAFdeg_1,DEFdeg_1,Sep_1,Dist_1,Sp_1,Ha__1,
     +  Speak_1,Sint_1,umag_1,gmag_1,rmag_1,imag_1,zmag_1,v4DCD_1,
     +  v_KI2008__1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Candidate radio stars with complex radio emission

C  Format for file interpretation

    3 format(
     +  F11.7,1X,F12.8,1X,F9.5,1X,F9.5,1X,F4.2,1X,F10.3,1X,A2,1X,A1,
     +  2X,F6.2,1X,F6.2,1X,F4.1,1X,F4.1,1X,F4.1,1X,F4.1,1X,F4.1,1X,
     +  F4.1,1X,I7)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,60
        read(1,'(A118)')ar__2
        read(ar__2,3)
     +  RAdeg_2,DEdeg_2,RAFdeg_2,DEFdeg_2,Sep_2,Dist_2,Sp_2,Ha__2,
     +  Speak_2,Sint_2,umag_2,gmag_2,rmag_2,imag_2,zmag_2,v4DCD_2,
     +  v_KI2008__2
c    ..............Just test output...........
        write(6,3)
     +  RAdeg_2,DEdeg_2,RAFdeg_2,DEFdeg_2,Sep_2,Dist_2,Sp_2,Ha__2,
     +  Speak_2,Sint_2,umag_2,gmag_2,rmag_2,imag_2,zmag_2,v4DCD_2,
     +  v_KI2008__2
c    .......End.of.Just test output...........
      end do
      close(1)

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