FORTRAN Generation
(/./ftp/cats/J/BaltA/25/49)

Conversion of standardized ReadMe file for file /./ftp/cats/J/BaltA/25/49 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-Aug-12
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/BaltA/25/49       Identification list of binaries              (Malkov+, 2016)
*================================================================================
*Identification list of binaries.
*    Malkov O., Karchevsky A., Kaygorodov P., Kovaleva D.
*    <Baltic Astron. 25, 49-52  (2016)>
*    =2016BaltA..25...49M        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'ilb_new.dat'	! Identification list

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

C  J2000 position composed of: RAdeg DEdeg
      character*30  BSDB        ! BSDB number
      character*1   otype1      ! [clv] ObsType 1 (1)
      character*1   otype2      ! [ov] ObsType 2 (1)
      character*1   otype3      ! [v] ObsType 3 (1)
      character*1   otype4      ! [o] ObsType 4 (1)
      character*1   otype5      ! [i] ObsType 5 (1)
      character*1   otype6      ! [ep] ObsType 6 (1)
      character*1   otype7      ! [eps] ObsType 7 (1)
      character*1   otype8      ! [a] ObsType 8 (1)
      character*1   otype9      ! [x] ObsType 9 (1)
      character*1   otype10     ! ObsType 10
      character*1   falsec      ! [f] Flag false coordinates
      character*10  WDS         ! WDS designation
      character*9   DD          ! Discoverer and number designation
      character*5   WDSc        ! WDS components
      character*10  CCDM        ! CCDM designation
      character*4   CCDMc       ! CCDM components
      character*5   TDSC        ! TDSC designation
      character*4   TDSCc       ! TDSC components
      real*8        RAdeg       ! (deg) []? Component's right ascension (J2000)
      real*8        DEdeg       ! (deg) ? Component's declination (J2000)
      real*4        rho         ! (arcsec) ? Angular distance between components
      real*4        Theta       ! (deg) ? Position angle
      character*13  Bayer       ! Bayer designation
      character*12  Flams       ! Flamsteed designation
      character*7   HD          ! HD designation
      character*7   HIP         ! ? HIP designation
      character*13  DM          ! DM designation
      integer*4     SBC9        ! ? SBC9 designation
      character*12  GCVS        ! GCVS designation
      integer*4     ADS         ! ? ADS designation
*Note (1): ObsType as follows:
*           a = astrometric
*           c = common proper motion
*           e = eclipsing
*           i = interferometric
*           o = orbital
*           r = radio pulsar in a binary system
*           s = spectroscopic
*           v = visual
*           x = X-ray
*           l = optical pair
*           p = the pair contains intrinsically variable star

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

C  Loading file 'ilb_new.dat'	! Identification list

C  Format for file interpretation

    1 format(
     +  A30,1X,A1,A1,A1,A1,A1,A1,A1,A1,A1,A1,1X,A1,1X,A10,1X,A9,1X,A5,
     +  1X,A10,1X,A4,1X,A5,1X,A4,1X,F9.5,2X,F9.5,2X,F6.1,1X,F5.1,1X,
     +  A13,1X,A12,1X,A7,1X,A7,1X,A13,1X,I4,1X,A12,1X,I6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ilb_new.dat')
      write(6,*) '....Loading file: ilb_new.dat'
      do i__=1,997357
        read(1,'(A214)')ar__
        read(ar__,1)
     +  BSDB,otype1,otype2,otype3,otype4,otype5,otype6,otype7,otype8,
     +  otype9,otype10,falsec,WDS,DD,WDSc,CCDM,CCDMc,TDSC,TDSCc,RAdeg,
     +  DEdeg,rho,Theta,Bayer,Flams,HD,HIP,DM,SBC9,GCVS,ADS
        if(ar__(99:107) .EQ. '') RAdeg = rNULL__
        if(ar__(110:118) .EQ. '') DEdeg = rNULL__
        if(ar__(121:126) .EQ. '') rho = rNULL__
        if(ar__(128:132) .EQ. '') Theta = rNULL__
        if(ar__(191:194) .EQ. '') SBC9 = iNULL__
        if(ar__(209:214) .EQ. '') ADS = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  BSDB,otype1,otype2,otype3,otype4,otype5,otype6,otype7,otype8,
     +  otype9,otype10,falsec,WDS,DD,WDSc,CCDM,CCDMc,TDSC,TDSCc,RAdeg,
     +  DEdeg,rho,Theta,Bayer,Flams,HD,HIP,DM,SBC9,GCVS,ADS
c    .......End.of.Just test output...........
      end do
      close(1)

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