FORTRAN Generation
(/./ftp/cats/J/other/RMxAA/53.439)

Conversion of standardized ReadMe file for file /./ftp/cats/J/other/RMxAA/53.439 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 2026-Oct-08
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/other/RMxAA/53.439   Gaia stars with GALEX NUV excess         (Makarov, 2017)
*================================================================================
*Absolute NUV magnitudes of Gaia DR1 astrometric stars and a search for hot
*companions in nearby systems.
*    Makarov V.V.
*    <Rev. Mex. Astron. Astrofis., 53, 439-448 (2017)>
*    =2017RMxAA..53..439M        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Nearby Dwarfs (distance <40pc) with
                                 excess Nuv luminosity

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

C  Position composed of: RAdeg DEdeg (Epoch=2015.0)
      real*8        RAdeg       ! (deg) Right ascension (ICRS) at epoch 2015.0
      real*8        DEdeg       ! (deg) Declination (ICRS) at epoch 2015.0
      integer*4     HIP         ! ? Hipparcos ID
      character*11  TYC2        ! Tycho-2 ID
      real*4        plx         ! (mas) Gaia parallax
      real*4        e_plx       ! (mas) Gaia parallax error
      real*4        Gmag        ! (mag) Gaia G magnitude
      real*4        FUV         ! (mag) ? GALEX FUV magnitude
      real*4        NUV         ! (mag) GALEX NUV magnitude
      real*4        e_FUV       ! (mag) ? GALEX FUV magnitude error
      real*4        e_NUV       ! (mag) GALEX NUV magnitude error

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

C  Declarations for 'table2.dat'	! Gaia stars with significant parallaxes and
                                 NUV-G colors less than 2mag

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

C  Position composed of: RAdeg DEdeg (Epoch=2015.0)
      real*8        RAdeg_1     ! (deg) Right ascension (ICRS) at epoch 2015.0
      real*8        DEdeg_1     ! (deg) Declination (ICRS) at epoch 2015.0
      integer*4     HIP_1       ! ? Hipparcos ID
      character*11  TYC2_1      ! Tycho-2 ID
      real*4        plx_1       ! (mas) Gaia parallax
      real*4        e_plx_1     ! (mas) Gaia parallax error
      real*4        Gmag_1      ! (mag) Gaia G magnitude
      real*4        FUV_1       ! (mag) ? GALEX FUV magnitude
      real*4        NUV_1       ! (mag) GALEX NUV magnitude
      real*4        e_FUV_1     ! (mag) ? GALEX FUV magnitude error
      real*4        e_NUV_1     ! (mag) GALEX NUV magnitude error

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

C  Loading file 'table1.dat'	! Nearby Dwarfs (distance <40pc) with
*                                 excess Nuv luminosity

C  Format for file interpretation

    1 format(
     +  F10.6,1X,F9.5,1X,I6,1X,A11,1X,F6.2,1X,F4.2,1X,F6.3,1X,F6.3,1X,
     +  F6.3,1X,F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,50
        read(1,'(A84)')ar__
        read(ar__,1)
     +  RAdeg,DEdeg,HIP,TYC2,plx,e_plx,Gmag,FUV,NUV,e_FUV,e_NUV
        if(ar__(22:27) .EQ. '') HIP = iNULL__
        if(ar__(60:65) .EQ. '') FUV = rNULL__
        if(ar__(74:78) .EQ. '') e_FUV = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  RAdeg,DEdeg,HIP,TYC2,plx,e_plx,Gmag,FUV,NUV,e_FUV,e_NUV
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Gaia stars with significant parallaxes and
*                                 NUV-G colors less than 2mag

C  Format for file interpretation

    2 format(
     +  F10.6,1X,F9.5,1X,I6,1X,A11,1X,F6.2,1X,F4.2,1X,F6.3,1X,F6.3,1X,
     +  F6.3,1X,F5.3,1X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,40
        read(1,'(A84)')ar__1
        read(ar__1,2)
     +  RAdeg_1,DEdeg_1,HIP_1,TYC2_1,plx_1,e_plx_1,Gmag_1,FUV_1,NUV_1,
     +  e_FUV_1,e_NUV_1
        if(ar__1(22:27) .EQ. '') HIP_1 = iNULL__
        if(ar__1(60:65) .EQ. '') FUV_1 = rNULL__
        if(ar__1(74:78) .EQ. '') e_FUV_1 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  RAdeg_1,DEdeg_1,HIP_1,TYC2_1,plx_1,e_plx_1,Gmag_1,FUV_1,NUV_1,
     +  e_FUV_1,e_NUV_1
c    .......End.of.Just test output...........
      end do
      close(1)

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