FORTRAN Generation
(/./ftp/cats/III/47B)

Conversion of standardized ReadMe file for file /./ftp/cats/III/47B 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 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. III/47B     Stellar Radial Velocities 0-20 hrs (Evans 1967)
*================================================================================
*Catalogue of Stellar Radial Velocities
*     Evans D.S.
*    <IAU Symp. 30, 57 (1967)>
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! Catalog Data

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

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

      character*16  ID         (nr__) ! *Star id
      integer*4     RAh        (nr__) ! (h) Right ascension, equinox 1900 (hours)
      real*4        RAm        (nr__) ! (min) RA minutes
      character*1   u_RAm      (nr__) ! [:] RA approx flag
      character*1   DE_        (nr__) ! Dec sign
      integer*4     DEd        (nr__) ! (deg) Declination, equinox 1900 (degrees)
      integer*4     DEm        (nr__) ! (arcmin) Dec arcminutes
      character*1   u_DEm      (nr__) ! [:] Dec approx flag
      character*1   n_Mag1     (nr__) ! *[ABC*(] Note flag concerning Mag1
      real*4        Mag1       (nr__) ! (mag) *? Photoelectric V magnitude
*                                    (see also n_Mag1 and n_Mag2)
      character*2   n_Mag2     (nr__) ! *[ABCV+: ] Note flag concerning Mag2 or Mag1
      real*4        Mag2       (nr__) ! (mag) *? Photoelectric V magnitude (multiple system)
      character*1   n_Mag3     (nr__) ! *[CD] Note flag concerning Mag3
      real*4        Mag3       (nr__) ! (mag) *? Photoelectric V magnitude (multiple system)
      character*21  SpType     (nr__) ! * Spectral type
      real*8        RVel       (nr__) ! (km/s) *?=9999.9 Radial Velocity
      character*1   u_RVel     (nr__) ! *[)*:9] Uncertainty note on RVel
      character*2   q_RVel     (nr__) ! *[ABCDE? 3] Quality of Radial Velocity
      integer*4     Npl        (nr__) ! *? Plate count
      character*1   u_Npl      (nr__) ! *[:+?)] Note concerning Nplates
      character*9   ObsCode    (nr__) ! *Observe Code
      integer*4     GCRV       (nr__) ! *?GCRV number
      character*3   Flags      (nr__) ! *[VMD ] Variability and multiplicity flags
*Note on ID:
*  Name of star (Henry Draper number when available). Some H II regions
*  and planetary nebulae are also included.
*Note on n_Mag1:
*  A letter (A, B or C) signifying a component of a multiple system,
*  a left parenthesis, (, for non-photoelectric visual magnitudes,
*  or an asterisk (*) for Henry Draper magnitudes.
*Note on Mag1:
*  For one star, HD 16157, this value is given as var? in the proof
*  copy; in this version, 99.99 is used instead.
*Note on n_Mag2:
*  letters signifying components of multiple system,
*  the letter V (unexplained meaning, exists only for HD  23793A (suspected
*                variable) and HD 24534 (variable X Per))
*  the colon (:) for approximate (applies to Mag1)
*  the plus (+) for greater than (applies to Mag1)
*Note on Mag2:
*  Implies a multiple system. The comment fields specify the components.
*Note on n_Mag3:
*  Letter signifying a component of multiple system to which Mag3 applies.
*Note on Mag3:
*  Implies a multiple system. The comment fields specify the components.
*Note on SpType:
*  Given in the customary form, except that upper-case letters are
*  substituted for lower-case. The main spectral type is always in byte 58,
*  leaving room in bytes 56-57 for Mount Wilson luminosity classes, such as
*  SD and C.  An asterisk (*) in byte 58 signifies an H II region or
*  planetary nebula, according to the notation accompanying it.
*Note on RVel:
*  Adopted radial velocity in the system of the GCRV. A value of 9999.9
*  indicates that no velocity was given in the proof copy.
*Note on u_RVel:
*  Colon (:) for approximation; or right parenthesis ")" for parentheses
*  in the proof copy, which appear to indicate a question about the
*  identity or type of the object to which the velocity applies.
*  In one case, HD 196877, this byte contains a 9, which is the hundredths'
*  digit of the velocity, and in another case, BD +40 4220 (suspected
*  spectroscopic binary), this byte contains an *.
*  This field can also be blank.
*Note on q_RVel:
*  A rating from A through E, in the system of the GCRV.
*  The rating itself will always be in byte 87, if given.
*  Byte 88 can contain a question mark (?) or blank.
*  A number of velocities were not assigned a quality rating.
*  In two cases (HD 74712 and 195647), a value of "3" was assigned.
*Note on Npl:
*  Total number of plates measured for all the velocities used to
*  arrive at the adopted velocity.
*Note on u_Npl:
*  Comment on plate count. Can be a question mark (?),
*  a plus (+) meaning greater than, or blank.
*Note on ObsCode:
*  Abbreviations for observatories (or observers), separated by commas.
*Note on GCRV:
*  Catalog number given for the star by Wilson (1953, catalog <III/21>)
*Note on Flags:
*  * Letter V (byte 110) for variable velocity, or else blank.
*  * Letter M (byte 111) for known variable magnitude, or else blank.
*  * Letter D (byte 112) for double or multiple star, or else blank.

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

C  Loading file 'catalog.dat'	! Catalog Data

C  Format for file interpretation

    1 format(
     +  A16,I2,1X,F4.1,A1,1X,A1,I2,1X,I2,A1,1X,A1,1X,F5.2,A2,F5.2,1X,
     +  A1,F4.2,1X,A21,1X,F7.1,A1,1X,A2,I4,A1,1X,A9,1X,I5,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,7823
        read(1,'(A112)')ar__
        read(ar__,1)
     +  ID(i__),RAh(i__),RAm(i__),u_RAm(i__),DE_(i__),DEd(i__),
     +  DEm(i__),u_DEm(i__),n_Mag1(i__),Mag1(i__),n_Mag2(i__),
     +  Mag2(i__),n_Mag3(i__),Mag3(i__),SpType(i__),RVel(i__),
     +  u_RVel(i__),q_RVel(i__),Npl(i__),u_Npl(i__),ObsCode(i__),
     +  GCRV(i__),Flags(i__)
        if(ar__(36:40) .EQ. '') Mag1(i__) = rNULL__
        if(ar__(43:47) .EQ. '') Mag2(i__) = rNULL__
        if(ar__(50:53) .EQ. '') Mag3(i__) = rNULL__
        if(ar__(88:91) .EQ. '') Npl(i__) = iNULL__
        if(ar__(104:108) .EQ. '') GCRV(i__) = iNULL__
        RAdeg(i__) = rNULL__
        DEdeg(i__) = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh(i__) .GT. -180) RAdeg(i__)=RAh(i__)*15.
        if(RAm(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAm(i__)/4.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  ID(i__),RAh(i__),RAm(i__),u_RAm(i__),DE_(i__),DEd(i__),
     +  DEm(i__),u_DEm(i__),n_Mag1(i__),Mag1(i__),n_Mag2(i__),
     +  Mag2(i__),n_Mag3(i__),Mag3(i__),SpType(i__),RVel(i__),
     +  u_RVel(i__),q_RVel(i__),Npl(i__),u_Npl(i__),ObsCode(i__),
     +  GCRV(i__),Flags(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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