FORTRAN Generation
(/./ftp/cats/I/230)

Conversion of standardized ReadMe file for file /./ftp/cats/I/230 into FORTRAN code for loading all data files into arrays.

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-Mar-29
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. I/230          Southern Hemisphere Catalogue of Bordeaux     (Rousseau+ 1996)
*================================================================================
*Stars of the southern hemisphere proposed for the Hipparcos mission
*     Rousseau J.M., Perie J.P., Gachard M.T.
*    <Astron. Astrophys. Suppl. Ser. 116, 301 (1996)>
*    =1996A&AS..116..301R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'shb.dat'	! Southern Hemisphere catalogue of Bordeaux

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

C  J2000 position composed of: RAms DEcs
      integer*4     SHB        (nr__) ! [1/118065]+ Star number
      character*1   m_SHB      (nr__) ! Designation of companion. (a,b,c...)
      character*5   Mag        (nr__) ! Magnitude (see n_Mag)
      character*1   n_Mag      (nr__) ! [BV] Filter of magnitude
      character*2   Sp         (nr__) ! Spectral type
      integer*4     RAms       (nr__) ! (ms) [0/86400000[ Right ascension for the equinox
*                                   J2000 on the system FK4, at Epoch
      integer*4     DEcs       (nr__) ! (10mas) [-32400000/+32400000] Declination for the
*                                   equinox J2000 on the system FK4, at Epoch
      integer*4     RAms1950   (nr__) ! (ms) [0/86400000[ Right ascension for the equinox
*                                   B1950 on the system FK4, at Epoch
      integer*4     DEcs1950   (nr__) ! (10mas) [-32400000/+32400000] Declinaison for the
*                                   equinox B1950 on the system FK4, at Epoch
      integer*4     e_RAms     (nr__) ! (10mas) Deviation in right ascension (times cos(Dec))
      integer*4     e_DEcs     (nr__) ! (10mas) Deviation in declination
      real*8        Epoch      (nr__) ! (yr) Mean epoch of observation
      integer*4     N          (nr__) ! Number of measurements
      character*3   Com1       (nr__) ! Comment 1. (See preface 2.6). (1)
      character*3   Com2       (nr__) ! Comment 2. (See preface 2.6). (2)
      character*10  LHS        (nr__) ! LHS or Variable identifier
      integer*4     PPM        (nr__) ! ? PPM identifier (Cat. <I/193>)
      integer*4     HIC        (nr__) ! ? HIC identifier (Cat. <I/196>)
      integer*4     SAO        (nr__) ! ? SAO identifier (Cat. <I/131>)
      character*8   HD         (nr__) ! HD identifier (Cat. <III/135>)
      character*11  CD         (nr__) ! CD identifier
      character*9   CPC        (nr__) ! CPC identifier
      character*12  CPD        (nr__) ! CPD identifier
      character*12  ADS_IDS    (nr__) ! ADS or IDS identifier
      character*26  Othername  (nr__) ! Others catalogues. (see Annex1 and 4)
*Note (1): Possible values :
*      m : estimated magnitude.
*     nn : Indicates that the star forms part of a group of nn stars.
*    a=b : Components a and b appear to be equal in magnitude.
*      D : The star in question may be a double star (69 cases).
*      S : The star in question is part of a pair that is too close
*           together to enable the measurement of the two components.
*Note (2): Possible values :
*      ? : A doubt exists as to the identification of the components.
*           The allocation of the letters a and b is arbitrary.
*      * : See notes (listed in Annex 5)

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

C  Loading file 'shb.dat'	! Southern Hemisphere catalogue of Bordeaux

C  Format for file interpretation

    1 format(
     +  1X,I6,1X,A1,1X,A5,A1,1X,A2,1X,I9,1X,I9,1X,I9,1X,I9,2X,I2,1X,
     +  I2,1X,F7.2,1X,I1,1X,A3,1X,A3,1X,A10,2X,I6,2X,I6,2X,I6,2X,A8,
     +  2X,A11,2X,A9,1X,A12,2X,A12,1X,A26)

C  Effective file loading

      open(unit=1,status='old',file=
     +'shb.dat')
      write(6,*) '....Loading file: shb.dat'
      do i__=1,118065
        read(1,'(A207)')ar__
        read(ar__,1)
     +  SHB(i__),m_SHB(i__),Mag(i__),n_Mag(i__),Sp(i__),RAms(i__),
     +  DEcs(i__),RAms1950(i__),DEcs1950(i__),e_RAms(i__),e_DEcs(i__),
     +  Epoch(i__),N(i__),Com1(i__),Com2(i__),LHS(i__),PPM(i__),
     +  HIC(i__),SAO(i__),HD(i__),CD(i__),CPC(i__),CPD(i__),
     +  ADS_IDS(i__),Othername(i__)
        if(ar__(98:103) .EQ. '') PPM(i__) = iNULL__
        if(ar__(106:111) .EQ. '') HIC(i__) = iNULL__
        if(ar__(114:119) .EQ. '') SAO(i__) = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  SHB(i__),m_SHB(i__),Mag(i__),n_Mag(i__),Sp(i__),RAms(i__),
     +  DEcs(i__),RAms1950(i__),DEcs1950(i__),e_RAms(i__),e_DEcs(i__),
     +  Epoch(i__),N(i__),Com1(i__),Com2(i__),LHS(i__),PPM(i__),
     +  HIC(i__),SAO(i__),HD(i__),CD(i__),CPC(i__),CPD(i__),
     +  ADS_IDS(i__),Othername(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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