FORTRAN Generation
(/./ftp/cats/J/A_A/419/167)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/419/167 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/419/167    BVRI photometry in metal-poor binaries (Zapatero Osorio+, 2004)
*================================================================================
*A CCD imaging search for wide metal-poor binaries.
*    Zapatero Osorio M.R., Martin E.L.
*   <Astron. Astrophys. 419, 167 (2004)>
*   =2004A&A...419..167Z
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Photometric and astrometric observations

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

      character*10  Name        ! Name of the target star
      character*1   n_Name      ! [*] note detailed in "notes.dat"" file
      real*4        Vmag        ! (mag) ? V magnitude of the target star
      character*1   Filter      ! Filter (BVRI)
      character*11  Tel         ! Telescope
      integer*4     ExpTime     ! (s) ? Exposure time
      real*4        FWHM        ! (arcsec) ? FWHM
      character*10  Obsdate     ! ("DD/MM/YYYY") Observing date (1)
      character*1   l_rho       ! Limit flag on rho
      real*4        rho         ! (arcsec) ? Angular separation of companion
      character*2   u_rho       ! [ :] Uncertainty flag on rho
      real*4        PA          ! (deg) ? Position angle of companion (2)
      character*2   u_PA        ! [ :] Uncertainty flag on PA
      character*1   l_Dmag      ! Limit flag on Dmag
      real*4        Dmag        ! (mag) ? Differential magnitude (3)
      character*2   u_Dmag      ! [ :] Uncertainty flag on Dmag
      character*8   Notes       ! Notes (4)
*Note (1): The years of the observations correspond to the interval 1991-2004.
*Note (2): Measured toward the east of north.
*Note (3): Differential magnitude of the candidate companion with respect
*    to the target star.
*Note (4): The flags are:
*   1 = No common proper motion companion after comparison with POSS2 red plates.
*   2 = No "color" companion.
*   3 = No proper motion companion.
*   4 = Previously known common proper motion companion.
*   5 = Newly identified common proper motion companion.

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

C  Declarations for 'notes.dat'	! Individual notes

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

      character*10  Name_1      ! Name of the target star
      character*69  Note        ! Note

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

C  Loading file 'table1.dat'	! Photometric and astrometric observations

C  Format for file interpretation

    1 format(
     +  A10,A1,1X,F6.3,2X,A1,2X,A11,I4,3X,F4.1,7X,A10,1X,A1,F6.2,A2,
     +  3X,F6.2,A2,1X,A1,F5.2,A2,1X,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,1391
        read(1,'(A101)')ar__
        read(ar__,1)
     +  Name,n_Name,Vmag,Filter,Tel,ExpTime,FWHM,Obsdate,l_rho,rho,
     +  u_rho,PA,u_PA,l_Dmag,Dmag,u_Dmag,Notes
        if(ar__(13:18) .EQ. '') Vmag = rNULL__
        if(ar__(35:38) .EQ. '') ExpTime = iNULL__
        if(ar__(42:45) .EQ. '') FWHM = rNULL__
        if(ar__(65:70) .EQ. '') rho = rNULL__
        if(ar__(76:81) .EQ. '') PA = rNULL__
        if(ar__(86:90) .EQ. '') Dmag = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name,n_Name,Vmag,Filter,Tel,ExpTime,FWHM,Obsdate,l_rho,rho,
     +  u_rho,PA,u_PA,l_Dmag,Dmag,u_Dmag,Notes
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Individual notes

C  Format for file interpretation

    2 format(A10,1X,A69)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,55
        read(1,'(A80)')ar__1
        read(ar__1,2)Name_1,Note
c    ..............Just test output...........
        write(6,2)Name_1,Note
c    .......End.of.Just test output...........
      end do
      close(1)

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