FORTRAN Generation
(/./ftp/cats/J/A_A/459/669)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/459/669 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-20
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/459/669    JHKs photometry around {alpha} Cen          (Kervella+, 2006)
*================================================================================
*Deep imaging survey of the environment of {alpha} Centauri.
*I. Adaptive optics imaging of {alpha} Cen B with VLT-NACO.
*    Kervella P., Thevenin F., Coude Du Foresto V., Mignard F.
*   <Astron. Astrophys., 459, 669-678 (2006)>
*   =2006A&A...459..669K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table7.dat'	! Position and photometry of the sources detected
                              around {alpha} Cen

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

C  Position composed of: RAh RAm RAs DE- DEd DEm DEs (Epoch=J2004.5)
      integer*4     v_KTC2006_  ! Sequential number
      integer*4     RAh         ! (h) Right ascension (ICRS, Ep=J2004.5)
      integer*4     RAm         ! (min) Right ascension (ICRS, Ep=J2004.5)
      real*4        RAs         ! (s) Right ascension (ICRS, Ep=J2004.5)
      character*1   DE_         ! Declination sign (ICRS, Ep=J2004.5)
      integer*4     DEd         ! (deg) Declination (ICRS, Ep=J2004.5)
      integer*4     DEm         ! (arcmin) Declination (ICRS, Ep=J2004.5)
      real*4        DEs         ! (arcsec) Declination (ICRS, Ep=J2004.5)
      real*4        Jmag        ! (mag) ? J magnitude
      real*4        e_Jmag      ! (mag) ? rms uncertainty on Jmag
      real*4        Hmag        ! (mag) ? H magnitude
      real*4        e_Hmag      ! (mag) ? rms uncertainty on Hmag
      real*4        Ksmag       ! (mag) ? Ks magnitude
      real*4        e_Ksmag     ! (mag) ? rms uncertainty on Ksmag

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

C  Loading file 'table7.dat'	! Position and photometry of the sources detected
*                              around {alpha} Cen

C  Format for file interpretation

    1 format(
     +  I3,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F5.2,1X,F4.1,1X,F3.1,
     +  1X,F4.1,1X,F3.1,1X,F4.1,1X,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,252
        read(1,'(A56)')ar__
        read(ar__,1)
     +  v_KTC2006_,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Jmag,e_Jmag,Hmag,
     +  e_Hmag,Ksmag,e_Ksmag
        if(ar__(31:34) .EQ. '') Jmag = rNULL__
        if(ar__(36:38) .EQ. '') e_Jmag = rNULL__
        if(ar__(40:43) .EQ. '') Hmag = rNULL__
        if(ar__(45:47) .EQ. '') e_Hmag = rNULL__
        if(ar__(49:52) .EQ. '') Ksmag = rNULL__
        if(ar__(54:56) .EQ. '') e_Ksmag = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  v_KTC2006_,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Jmag,e_Jmag,Hmag,
     +  e_Hmag,Ksmag,e_Ksmag
c    .......End.of.Just test output...........
      end do
      close(1)

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