FORTRAN Generation
(/./ftp/cats/V/92A/)

Conversion of standardized ReadMe file for file /./ftp/cats/V/92A/ 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 2024-Apr-19
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. V/92A    Photometric and Spectroscopic Databases for LSS Stars   (Reed+ 1997)
*================================================================================
*Radial Velocities of Southern Luminous Stars
*    Reed B.C., Kuhna K.M.
*   <Astron. Journ. 113, 823 (1997)>
*   =1997AJ....113..823R
*A uvby database for Stephenson-Sanduleak southern luminous stars
*    Reed B.C.
*   <Astron. and Astrophys. 117, 313 (1996)>
*   =1996A&AS..117..313R
*A Spectroscopic database for Stephenson-Sanduleak southern luminous stars
*    Reed B.C., Beatty A.E.
*   <Astrophys. Journ. Suppl. 97, 189 (1995)>
*   =1995ApJS...97..189R
*A UBVbeta database for Stephenson-Sanduleak southern luminous stars
*    Reed B.C.
*   <Astrophys. Journ. Suppl. 87, 367 (1993)>
*   =1993ApJS...87..367R
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'ubvbeta.dat'	! UBV and beta photoelectric photometry

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

      integer*4     LSS         ! [1/5132] LSS number
      character*1   Flag        ! [*] indicates a remark detailed in notes.dat
      real*4        Vmag        ! (mag) ?V band magnitude
      real*4        B_V         ! (mag) ?B-V color index
      real*4        U_B         ! (mag) ?U-B color index
      integer*4     o_Vmag      ! ?Number of UBV observations (measurements)
      real*8        beta        ! (mag) ?H-beta
      integer*4     o_beta      ! ?Number of H-beta obs. in original reference
      integer*4     Ncode       ! *?Note code
      integer*4     r_Vmag      ! Reference on ubvbeta data (file refs.dat)
*Note on Ncode:
*    1  Emission
*    2  Double or Spectroscopic Binary or multiple system
*    3  Variable or suspected variable
*    4  Subdwarf
*    5  P Cygni star
*    6  Wolf-Rayet star
*    7  See comments in reference cited
*    8  b uncertain
*    9  Identification uncertain
*   10  b quoted to two decimal places only
*   11  Of star
*   12  UBV or uvby uncertain
*   13  Combined result taken from reference cited
*   14  Crowded field or faint companion(s)
*   15  Brighter star of a pair with same LSS number quoted in reference cited
*   16  Radial velocity variable
*   17  Double-line spectroscopic binary
*   18  Combined photoelectric/photographic observation
*   19  Data deriving from CCD observations
*   20  Carbon star
*   21  b Cep variable
*   22  uvby reported to two decimal places only

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

C  Declarations for 'mk.dat'	! MK-system spectral classifications

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

      integer*4     LSS_1       ! [1/5132] LSS number
      character*8   Tclass      ! MK temperature classification
      character*8   Lclass      ! MK luminosity class
      character*8   Sp          ! Spectral-type qualifiers
      integer*4     r_Sp        ! Spectroscopic reference code
      integer*4     DispCode    ! Dispersion code
      integer*4     N_code      ! *Note code, detailed in file codes.dat
*Note on N-code:
*   TG = Transmission grating
*   RG = Reflection grating
*   IT =  Image Tube
*   For other codes see codes.dat

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

C  Declarations for 'uvby.dat'	! Stroemgren four-color uvby photometry

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

      integer*4     LSS_2       ! [1/5132] LSS number
      character*1   Flag_1      ! [*] indicates a remark detailed in notes.dat
      real*8        b_y         ! (mag) b-y color
      real*8        m1          ! *m1 is the metallicity index
      real*4        c1          ! *c1 is the Balmer discontinuity index
      integer*4     o_b_y       ! ? Number of uvby obs. in original reference
      integer*4     N_code_1    ! *? Note code
      integer*4     r_b_y       ! Reference code for uvby data (file refs.dat)
*Note on m1:
*  The metallicity index m1 is defined to be (v-b) - (b-y)
*Note on c1:
*  The Balmer discontinuity index c1 is defined to be (u-v) - (v-y)
*Note on N-code:
*  See the "Note on N-code" section for ubvbeta.dat

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

C  Declarations for 'radvel.dat'	! Radial velocity data for each LSS star

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

C  Position composed of: GLON GLAT
      integer*4     LSS_3       ! [1/5132] LSS Number
      character*1   note        ! [*] indicates a remark detailed in notes.dat
      integer*4     HD          ! ?HD number
      character*9   CD          ! CD (Cat. <I/114> designation
      real*4        RV          ! (km/s) Radial velocity
      real*4        e_RV        ! (km/s) Standard deviation for RV
      integer*4     o_RV        ! Number of observations of RV
      character*20  Disp        ! *Dispersion
      character*9   Notes       ! Variable type or other note
      real*4        Pmag        ! (mag) LSS photographic magnitude
      integer*4     publ        ! (yr) Year of publication
      character*24  auth        ! First author
      character*20  ref         ! Reference
      real*4        GLON        ! (deg) Galactic longitude
      real*4        GLAT        ! (deg) Galactic latitude
      character*8   name        ! Alternate name of star
*Note on Disp:
*  The format of the majority of the dispersions is: type of instrument
*  used, dispersion in A/mm and the wavelength at which the dispersion
*  applies. These records incorporate a number of abbreviations, as follows:
*        A       Angstrom
*        d       Hydrogen delta
*        g       Hydrogen gamma
*        m/A     microns per Angstrom
*        Cass    Cassegrain spectrum
*        1P      1-prism
*        2P      2-prism
*        3P      3-prism
*        C       Coude spectrum
*        G       Grating spectrum (reflection or transmission not specified)
*        IT      Image tube spectrum
*        OP      Objective-prism
*        P       Prism
*        RG      Reflection grating
*        S       Slit
*        TG      Transmission grating
*        TP      Thin prism

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

C  Declarations for 'cross.dat'	! LSS-HD-CPD-CD cross reference

      integer*4 nr__4
      parameter (nr__4=5132)	! Number of records
      character*80 ar__4  	! Full-size record

C  Position composed of: GLON GLAT
      integer*4     LSS_4       ! [1/5132]+ LSS (Cat. <III/43>) number
      character*6   HD_1        ! HD  (Cat. <III/135>) number
      character*9   CPD         ! CPD (Cat. <I/108>) number
      character*9   CD_1        ! CD  (Cat. <I/114>) number
      integer*4     Hbg         ! *? Heidelberg Objective Prism survey number
      character*8   Name_1      ! Name of object
      real*4        GLON_1      ! (deg) Galactic longitude
      real*4        GLAT_1      ! (deg) Galactic latitude
      character*8   Chart       ! Chart in LSS catalog on which the star
*                                          appears
      real*4        Mag         ! (mag) LSS Catalog photographic magnitude
*Note on Hbg:
*     Catalog by Klare G. and Szeidl B., Veroeff. Heidelberg 18, 9-50
*     (1966VeHei..18....9K)

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

C  Declarations for 'notes.dat'	! Notes on individual stars

      integer*4 nr__5
      parameter (nr__5=334)	! Number of records
      character*75 ar__5  	! Full-size record

      character*1   f_LSS       ! [/] / indicates note also refers to this star
      integer*4     LSS_5       ! [1/5132] LSS Number
      character*69  note_1      ! Text of note, eventually on several lines

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

C  Declarations for 'refs.dat'	! References in numerical order of codes

      integer*4 nr__6
      parameter (nr__6=403)	! Number of records
      character*80 ar__6  	! Full-size record

      integer*4     code        ! Numerical code
      character*73  note_2      ! Dispersion and comment

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

C  Declarations for 'codes.dat'	! Codes used for spectroscopy and radial velocity

      integer*4 nr__7
      parameter (nr__7=91)	! Number of records
      character*75 ar__7  	! Full-size record

      integer*4     N_code_2    ! Numerical code
      character*70  note_3      ! Dispersion and comment

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

C  Loading file 'ubvbeta.dat'	! UBV and beta photoelectric photometry

C  Format for file interpretation

    1 format(
     +  1X,I4,A1,1X,F6.2,2X,F6.2,F6.2,2X,I3,2X,F7.3,2X,I3,2X,I3,2X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ubvbeta.dat')
      write(6,*) '....Loading file: ubvbeta.dat'
      do i__=1,9735
        read(1,'(A56)')ar__
        read(ar__,1)
     +  LSS,Flag,Vmag,B_V,U_B,o_Vmag,beta,o_beta,Ncode,r_Vmag
        if(ar__(8:13) .EQ. '') Vmag = rNULL__
        if(ar__(16:21) .EQ. '') B_V = rNULL__
        if(ar__(22:27) .EQ. '') U_B = rNULL__
        if(ar__(30:32) .EQ. '') o_Vmag = iNULL__
        if(ar__(35:41) .EQ. '') beta = rNULL__
        if(ar__(44:46) .EQ. '') o_beta = iNULL__
        if(ar__(49:51) .EQ. '') Ncode = iNULL__
c    ..............Just test output...........
        write(6,1)
     +  LSS,Flag,Vmag,B_V,U_B,o_Vmag,beta,o_beta,Ncode,r_Vmag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'mk.dat'	! MK-system spectral classifications

C  Format for file interpretation

    2 format(1X,I4,1X,A8,1X,A8,1X,A8,2X,I3,2X,I3,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'mk.dat')
      write(6,*) '....Loading file: mk.dat'
      do i__=1,6442
        read(1,'(A45)')ar__1
        read(ar__1,2)LSS_1,Tclass,Lclass,Sp,r_Sp,DispCode,N_code
c    ..............Just test output...........
        write(6,2)LSS_1,Tclass,Lclass,Sp,r_Sp,DispCode,N_code
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'uvby.dat'	! Stroemgren four-color uvby photometry

C  Format for file interpretation

    3 format(1X,I4,A1,1X,F7.3,2X,F7.3,1X,F6.3,2X,I3,2X,I3,2X,I3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'uvby.dat')
      write(6,*) '....Loading file: uvby.dat'
      do i__=1,1215
        read(1,'(A45)')ar__2
        read(ar__2,3)LSS_2,Flag_1,b_y,m1,c1,o_b_y,N_code_1,r_b_y
        if(ar__2(33:35) .EQ. '') o_b_y = iNULL__
        if(ar__2(38:40) .EQ. '') N_code_1 = iNULL__
c    ..............Just test output...........
        write(6,3)LSS_2,Flag_1,b_y,m1,c1,o_b_y,N_code_1,r_b_y
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'radvel.dat'	! Radial velocity data for each LSS star

C  Format for file interpretation

    4 format(
     +  I4,A1,1X,I6,1X,A9,1X,F6.1,1X,F5.1,1X,I2,1X,A20,1X,A9,1X,F4.1,
     +  1X,I4,1X,A24,1X,A20,1X,F6.2,1X,F6.2,1X,A8)

C  Effective file loading

      open(unit=1,status='old',file=
     +'radvel.dat')
      write(6,*) '....Loading file: radvel.dat'
      do i__=1,1072
        read(1,'(A148)')ar__3
        read(ar__3,4)
     +  LSS_3,note,HD,CD,RV,e_RV,o_RV,Disp,Notes,Pmag,publ,auth,ref,
     +  GLON,GLAT,name
        if(ar__3(7:12) .EQ. '') HD = iNULL__
c    ..............Just test output...........
        write(6,4)
     +  LSS_3,note,HD,CD,RV,e_RV,o_RV,Disp,Notes,Pmag,publ,auth,ref,
     +  GLON,GLAT,name
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'cross.dat'	! LSS-HD-CPD-CD cross reference

C  Format for file interpretation

    5 format(
     +  1X,I4,2X,A6,2X,A9,2X,A9,2X,I4,2X,A8,1X,F6.2,1X,F6.2,1X,A8,1X,
     +  F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'cross.dat')
      write(6,*) '....Loading file: cross.dat'
      do i__=1,5132
        read(1,'(A80)')ar__4
        read(ar__4,5)
     +  LSS_4,HD_1,CPD,CD_1,Hbg,Name_1,GLON_1,GLAT_1,Chart,Mag
        if(ar__4(38:41) .EQ. '') Hbg = iNULL__
c    ..............Just test output...........
        write(6,5)
     +  LSS_4,HD_1,CPD,CD_1,Hbg,Name_1,GLON_1,GLAT_1,Chart,Mag
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Notes on individual stars

C  Format for file interpretation

    6 format(A1,I4,1X,A69)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,334
        read(1,'(A75)')ar__5
        read(ar__5,6)f_LSS,LSS_5,note_1
c    ..............Just test output...........
        write(6,6)f_LSS,LSS_5,note_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References in numerical order of codes

C  Format for file interpretation

    7 format(2X,I3,2X,A73)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,403
        read(1,'(A80)')ar__6
        read(ar__6,7)code,note_2
c    ..............Just test output...........
        write(6,7)code,note_2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'codes.dat'	! Codes used for spectroscopy and radial velocity

C  Format for file interpretation

    8 format(I2,3X,A70)

C  Effective file loading

      open(unit=1,status='old',file=
     +'codes.dat')
      write(6,*) '....Loading file: codes.dat'
      do i__=1,91
        read(1,'(A75)')ar__7
        read(ar__7,8)N_code_2,note_3
c    ..............Just test output...........
        write(6,8)N_code_2,note_3
c    .......End.of.Just test output...........
      end do
      close(1)

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