FORTRAN Generation
(/./ftp/cats/J/A_AS/126/273)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_AS/126/273 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-Sep-10
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+AS/126/273      Nice double star measurements            (Muller, 1997)
*================================================================================
*Mesures d'etoiles doubles faites a Nice (5eme serie).
*Double star measurements made at Nice.
*       Muller P.
*      <Astron. Astrophys. Suppl. Ser. 126, 273 (1997)>
*      =1997A&AS..126..273M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Programme general (General program) Equinox=1900

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

      character*10  IDS         ! IDS designation (equinox 1900 in table1.dat,
*                                    equinox 2000 in table2.dat)
      character*14  Name        ! Name
      real*8        Date        ! (yr) ? Observation date
      real*4        theta       ! (deg) ? Position angle
      character*2   l_rho       ! [=< ] Limit flag on rho
      real*4        rho         ! (arcsec) ? Separation angle
      integer*4     Nobs        ! ? Number of observation nights
      integer*4     Nobs2       ! ? Second number of observation nights when
*                                     the star was observed in two seasons
      character*1   Note        ! [*] Individual notes detailed in notes.dat
      character*15  Com         ! Comments

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

C  Declarations for 'table2.dat'	! Couples MLR (MLR doubles) Equinox=2000

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

      character*10  IDS_1       ! IDS designation (equinox 1900 in table1.dat,
*                                    equinox 2000 in table2.dat)
      character*14  Name_1      ! Name
      real*8        Date_1      ! (yr) ? Observation date
      real*4        theta_1     ! (deg) ? Position angle
      character*2   l_rho_1     ! [=< ] Limit flag on rho
      real*4        rho_1       ! (arcsec) ? Separation angle
      integer*4     Nobs_1      ! ? Number of observation nights
      integer*4     Nobs2_1     ! ? Second number of observation nights when
*                                     the star was observed in two seasons
      character*1   Note_1      ! [*] Individual notes detailed in notes.dat
      character*15  Com_1       ! Comments

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

C  Declarations for 'notes.dat'	! Individual notes

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

      character*14  Name_2      ! Name of the star (repeated if several lines)
      character*65  Text        ! Text of note

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

C  Loading file 'table1.dat'	! Programme general (General program) Equinox=1900

C  Format for file interpretation

    1 format(A10,1X,A14,F7.2,1X,F5.1,A2,F5.2,1X,I1,1X,I1,A1,1X,A15)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,367
        read(1,'(A66)')ar__
        read(ar__,1)IDS,Name,Date,theta,l_rho,rho,Nobs,Nobs2,Note,Com
        if(ar__(26:32) .EQ. '') Date = rNULL__
        if(ar__(34:38) .EQ. '') theta = rNULL__
        if(ar__(41:45) .EQ. '') rho = rNULL__
        if(ar__(47:47) .EQ. '') Nobs = iNULL__
        if(ar__(49:49) .EQ. '') Nobs2 = iNULL__
c    ..............Just test output...........
        write(6,1)IDS,Name,Date,theta,l_rho,rho,Nobs,Nobs2,Note,Com
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Couples MLR (MLR doubles) Equinox=2000

C  Format for file interpretation

    2 format(A10,1X,A14,F7.2,1X,F5.1,A2,F5.2,1X,I1,1X,I1,A1,1X,A15)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,260
        read(1,'(A66)')ar__1
        read(ar__1,2)
     +  IDS_1,Name_1,Date_1,theta_1,l_rho_1,rho_1,Nobs_1,Nobs2_1,
     +  Note_1,Com_1
        if(ar__1(26:32) .EQ. '') Date_1 = rNULL__
        if(ar__1(34:38) .EQ. '') theta_1 = rNULL__
        if(ar__1(41:45) .EQ. '') rho_1 = rNULL__
        if(ar__1(47:47) .EQ. '') Nobs_1 = iNULL__
        if(ar__1(49:49) .EQ. '') Nobs2_1 = iNULL__
c    ..............Just test output...........
        write(6,2)
     +  IDS_1,Name_1,Date_1,theta_1,l_rho_1,rho_1,Nobs_1,Nobs2_1,
     +  Note_1,Com_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Individual notes

C  Format for file interpretation

    3 format(A14,1X,A65)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,32
        read(1,'(A80)')ar__2
        read(ar__2,3)Name_2,Text
c    ..............Just test output...........
        write(6,3)Name_2,Text
c    .......End.of.Just test output...........
      end do
      close(1)

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