FORTRAN Generation
(/./ftp/cats/J/A_AS/132/237)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_AS/132/237 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-Jun-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/A+AS/132/237      Double stars measurements         (Alzner 1998)
*================================================================================
*Measurements of double stars 1993.67-1998.13
*       Alzner A.
*      <Astron. Astrophys. Suppl. Ser. 132, 237 (1998)>
*      =1998A&AS..132..237A      (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! 624 Measurements of 224 double stars at
                                the 32.5cm Cassegrain.

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

C  J2000.0 position composed of: RAh RAm DE- DEd DEm
      real*8        RAdeg       ! (deg) Right Ascension J2000.0
      real*8        DEdeg       ! (deg)     Declination J2000.0
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     ADS         ! ? ADS number
      character*4   m_ADS       ! Multiplicity index on ADS
      character*7   Name        ! Star name
      integer*4     RAh         ! (h) Right ascension (J2000.0)
      real*4        RAm         ! (min) Right ascension (J2000.0)
      character*1   DE_         ! Declination sign
      integer*4     DEd         ! (deg) Declination (J2000.0)
      integer*4     DEm         ! (arcmin) Declination (J2000.0)
      real*8        Obs         ! (yr) Observation date
      real*4        PA          ! (deg) ? Position angle
      character*1   n_Sep       ! [se:*rn] Note on PA and Sep (1)
      real*4        Sep         ! (arcsec) ? Separation angle
      character*1   u_Sep       ! [:e] Uncertainty flag (:), or elongated (e)
      character*4   Nobs        ! Number of observations
      real*4        dm          ! (mag) ? Estimated brightness difference between
*                                     the two stars of the pair
      character*1   n_dm2       ! [-] Separation dash when interval
      real*4        dm2         ! (mag) ? Second value of dm when interval
      character*2   n_dm        ! [qi :v?] Note (2)
      character*1   Micr        ! [FD] Micrometer type (in table1.dat) (3)
*Note (1): r: round
*          *: companion not seen
*          s: single
*          n: no companion seen
*          e: elong.
*          -  not measured or dm not estimated
*        ':': P.A. values are scattered, or P.A. or distance could not be
*               measured accurately, mostly in case of faint pairs.
*Note (2): v: var
*         qi: quadrant inverted
*Note (3): F: RETEL filar micrometer
*          D: MECA PRECIS double image micrometer

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

C  Declarations for 'table2.dat'	! Residuals of 147 orbits from table1.dat

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

      character*5   Name_1      ! ADS number or name
      character*2   m_Name      ! Multiplicity index on ADS
      character*1   n_Name      ! [*] Note (1)
      character*39  Ref         ! References for the data (Authors, date)
      character*7   n_Ref       ! Note on Ref (2)
      real*4        theta       ! (deg) ? (O-C) on PA
      real*4        rho         ! (arcsec) ? (O-C) on Sep
      real*4        theta2      ! (deg) ? (O-C) on PA
      real*4        rho2        ! (arcsec) ? (O-C) on Sep
      real*4        theta3      ! (deg) ? (O-C) on PA
      real*4        rho3        ! (arcsec) ? (O-C) on Sep
      character*1   Note        ! [*] *: Individual note in table4.dat (3)
*Note (1): *: Because of the considerable dm the star is currently too difficult
*              for the Cassegrain
*Note (2): a: the Elements given in the publication are wrong.
*Note (3): Individual notes:
* 17175 Hall 1949              : requires revision. also measured by CHARA
*                                 and Heintz with the same tendency
*  2236 Heintz 1990            : probably measurement error
*  2755 Popovic & Pavlovic 1995: The rectilinear solution given by the same
*                                  authors for this star is better.
*  5586 Baize                  : no other new measures are known
*  5958 Popovic 1982           : the orbit has to be revised
*  8884 Alzner 1996            : A longperiodic solution with P=450, T=1928,
*                                 a=0.66, e=0.57, i=105, {omega}=53.5, node=9.6,
*                                 favoured by the author, was sent to the
*                                 Circular No.128 together with the shortperiodic
*                                 one, but was not published there. Shortperiodic
*                                 solutions seem to be ruled out now by Heintz'
*                                 and Hipparcos' measurements, but also the P=450
*                                 orbit does not fit the Hipparcos distance
*                                 0.778" well. Any longperiodic orbit will stay
*                                 undetermined for many years. No speckle
*                                 measurements.
* 10230 Baize 1983              : The orbit has to be revised
* 11006 Heintz 1995             : starting retrograde motion?

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

C  Declarations for 'table3.dat'	! 719 measures of 310  double stars with a 360mm
                                Zeiss-Newtonian 1993.67-1996.50

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

C  J2000.0 position composed of: RAh RAm DE- DEd DEm
      real*8        RAdeg_1     ! (deg) Right Ascension J2000.0
      real*8        DEdeg_1     ! (deg)     Declination J2000.0
C  ---------------------------------- ! (position vector(s) in degrees)

      integer*4     ADS_1       ! ? ADS number
      character*4   m_ADS_1     ! Multiplicity index on ADS
      character*7   Name_2      ! Star name
      integer*4     RAh_1       ! (h) Right ascension (J2000.0)
      real*4        RAm_1       ! (min) Right ascension (J2000.0)
      character*1   DE__1       ! Declination sign
      integer*4     DEd_1       ! (deg) Declination (J2000.0)
      integer*4     DEm_1       ! (arcmin) Declination (J2000.0)
      real*8        Obs_1       ! (yr) Observation date
      real*4        PA_1        ! (deg) ? Position angle
      character*1   n_Sep_1     ! [se:*rn] Note on PA and Sep (1)
      real*4        Sep_1       ! (arcsec) ? Separation angle
      character*1   u_Sep_1     ! [:e] Uncertainty flag (:), or elongated (e)
      character*4   Nobs_1      ! Number of observations
      real*4        dm_1        ! (mag) ? Estimated brightness difference between
*                                     the two stars of the pair
      character*1   n_dm2_1     ! [-] Separation dash when interval
      real*4        dm2_1       ! (mag) ? Second value of dm when interval
      character*2   n_dm_1      ! [qi :v?] Note (2)
      character*1   Micr_1      ! [FD] Micrometer type (in table1.dat) (3)
*Note (1): r: round
*          *: companion not seen
*          s: single
*          n: no companion seen
*          e: elong.
*          -  not measured or dm not estimated
*        ':': P.A. values are scattered, or P.A. or distance could not be
*               measured accurately, mostly in case of faint pairs.
*Note (2): v: var
*         qi: quadrant inverted
*Note (3): F: RETEL filar micrometer
*          D: MECA PRECIS double image micrometer

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

C  Declarations for 'table4.dat'	! Residuals of 106 orbits and notes from table3.dat

      integer*4 nr__3
      parameter (nr__3=117)	! Number of records
      character*93 ar__3  	! Full-size record

      character*5   Name_3      ! ADS number or name
      character*2   m_Name_1    ! Multiplicity index on ADS
      character*1   n_Name_1    ! [*] Note (1)
      character*39  Ref_1       ! References for the data (Authors, date)
      character*7   n_Ref_1     ! Note on Ref (2)
      real*4        theta_1     ! (deg) ? (O-C) on PA
      real*4        rho_1       ! (arcsec) ? (O-C) on Sep
      real*4        theta2_1    ! (deg) ? (O-C) on PA
      real*4        rho2_1      ! (arcsec) ? (O-C) on Sep
      real*4        theta3_1    ! (deg) ? (O-C) on PA
      real*4        rho3_1      ! (arcsec) ? (O-C) on Sep
      character*1   Note_1      ! [*] *: Individual note in table4.dat (3)
*Note (1): *: Because of the considerable dm the star is currently too difficult
*              for the Cassegrain
*Note (2): a: the Elements given in the publication are wrong.
*Note (3): Individual notes:
* 17175 Hall 1949              : requires revision. also measured by CHARA
*                                 and Heintz with the same tendency
*  2236 Heintz 1990            : probably measurement error
*  2755 Popovic & Pavlovic 1995: The rectilinear solution given by the same
*                                  authors for this star is better.
*  5586 Baize                  : no other new measures are known
*  5958 Popovic 1982           : the orbit has to be revised
*  8884 Alzner 1996            : A longperiodic solution with P=450, T=1928,
*                                 a=0.66, e=0.57, i=105, {omega}=53.5, node=9.6,
*                                 favoured by the author, was sent to the
*                                 Circular No.128 together with the shortperiodic
*                                 one, but was not published there. Shortperiodic
*                                 solutions seem to be ruled out now by Heintz'
*                                 and Hipparcos' measurements, but also the P=450
*                                 orbit does not fit the Hipparcos distance
*                                 0.778" well. Any longperiodic orbit will stay
*                                 undetermined for many years. No speckle
*                                 measurements.
* 10230 Baize 1983              : The orbit has to be revised
* 11006 Heintz 1995             : starting retrograde motion?

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

C  Loading file 'table1.dat'	! 624 Measurements of 224 double stars at
*                                the 32.5cm Cassegrain.

C  Format for file interpretation

    1 format(
     +  I5,A4,1X,A7,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F7.2,1X,F5.1,A1,
     +  1X,F5.2,A1,1X,A4,1X,F5.1,A1,F4.1,1X,A2,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,311
        read(1,'(A76)')ar__
        read(ar__,1)
     +  ADS,m_ADS,Name,RAh,RAm,DE_,DEd,DEm,Obs,PA,n_Sep,Sep,u_Sep,
     +  Nobs,dm,n_dm2,dm2,n_dm,Micr
        if(ar__(1:5) .EQ. '') ADS = iNULL__
        if(ar__(42:46) .EQ. '') PA = rNULL__
        if(ar__(49:53) .EQ. '') Sep = rNULL__
        if(ar__(61:65) .EQ. '') dm = rNULL__
        if(ar__(67:70) .EQ. '') dm2 = rNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  ADS,m_ADS,Name,RAh,RAm,DE_,DEd,DEm,Obs,PA,n_Sep,Sep,u_Sep,
     +  Nobs,dm,n_dm2,dm2,n_dm,Micr
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Residuals of 147 orbits from table1.dat

C  Format for file interpretation

    2 format(
     +  A5,A2,A1,1X,A39,A7,1X,F5.1,2X,F5.2,1X,F5.1,2X,F5.2,1X,F4.1,1X,
     +  F5.2,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,150
        read(1,'(A93)')ar__1
        read(ar__1,2)
     +  Name_1,m_Name,n_Name,Ref,n_Ref,theta,rho,theta2,rho2,theta3,
     +  rho3,Note
        if(ar__1(57:61) .EQ. '') theta = rNULL__
        if(ar__1(64:68) .EQ. '') rho = rNULL__
        if(ar__1(70:74) .EQ. '') theta2 = rNULL__
        if(ar__1(77:81) .EQ. '') rho2 = rNULL__
        if(ar__1(83:86) .EQ. '') theta3 = rNULL__
        if(ar__1(88:92) .EQ. '') rho3 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  Name_1,m_Name,n_Name,Ref,n_Ref,theta,rho,theta2,rho2,theta3,
     +  rho3,Note
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! 719 measures of 310  double stars with a 360mm
*                                Zeiss-Newtonian 1993.67-1996.50

C  Format for file interpretation

    3 format(
     +  I5,A4,1X,A7,1X,I2,1X,F4.1,1X,A1,I2,1X,I2,1X,F7.2,1X,F5.1,A1,
     +  1X,F5.2,A1,1X,A4,1X,F5.1,A1,F4.1,1X,A2,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,344
        read(1,'(A75)')ar__2
        read(ar__2,3)
     +  ADS_1,m_ADS_1,Name_2,RAh_1,RAm_1,DE__1,DEd_1,DEm_1,Obs_1,PA_1,
     +  n_Sep_1,Sep_1,u_Sep_1,Nobs_1,dm_1,n_dm2_1,dm2_1,n_dm_1,Micr_1
        if(ar__2(1:5) .EQ. '') ADS_1 = iNULL__
        if(ar__2(42:46) .EQ. '') PA_1 = rNULL__
        if(ar__2(49:53) .EQ. '') Sep_1 = rNULL__
        if(ar__2(61:65) .EQ. '') dm_1 = rNULL__
        if(ar__2(67:70) .EQ. '') dm2_1 = rNULL__
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,3)
     +  ADS_1,m_ADS_1,Name_2,RAh_1,RAm_1,DE__1,DEd_1,DEm_1,Obs_1,PA_1,
     +  n_Sep_1,Sep_1,u_Sep_1,Nobs_1,dm_1,n_dm2_1,dm2_1,n_dm_1,Micr_1
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Residuals of 106 orbits and notes from table3.dat

C  Format for file interpretation

    4 format(
     +  A5,A2,A1,1X,A39,A7,1X,F5.1,2X,F5.2,1X,F5.1,2X,F5.2,1X,F4.1,1X,
     +  F5.2,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,117
        read(1,'(A93)')ar__3
        read(ar__3,4)
     +  Name_3,m_Name_1,n_Name_1,Ref_1,n_Ref_1,theta_1,rho_1,theta2_1,
     +  rho2_1,theta3_1,rho3_1,Note_1
        if(ar__3(57:61) .EQ. '') theta_1 = rNULL__
        if(ar__3(64:68) .EQ. '') rho_1 = rNULL__
        if(ar__3(70:74) .EQ. '') theta2_1 = rNULL__
        if(ar__3(77:81) .EQ. '') rho2_1 = rNULL__
        if(ar__3(83:86) .EQ. '') theta3_1 = rNULL__
        if(ar__3(88:92) .EQ. '') rho3_1 = rNULL__
c    ..............Just test output...........
        write(6,4)
     +  Name_3,m_Name_1,n_Name_1,Ref_1,n_Ref_1,theta_1,rho_1,theta2_1,
     +  rho2_1,theta3_1,rho3_1,Note_1
c    .......End.of.Just test output...........
      end do
      close(1)

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