FORTRAN Generation
(/./ftp/cats/III/205)

Conversion of standardized ReadMe file for file /./ftp/cats/III/205 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-Mar-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. III/205             H-alpha Stars in Northern Milky Way         (Kohoutek+ 1997)
*================================================================================
*Catalogue of stars in the Northern Milky Way having H-{alpha} in emission
*     Kohoutek L., Wehmeyer R.
*    <Abhandlungen Hamburger Sternwarte 11, Teil 1 + 2 (1997)>
*    =1997AAHam..11....1K
*    =1999A&AS..134..255K
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! The Catalogue

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

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

      character*5   ID          ! Designation of the star (1)
      integer*4     RAh         ! (h) Right Ascension J2000 (hours)
      integer*4     RAm         ! (min) Right Ascension J2000 (minutes)
      real*4        RAs         ! (s) Right Ascension J2000 (seconds)
      character*1   DE_         ! Declination J2000 (sign)
      integer*4     DEd         ! (deg) Declination J2000 (degrees)
      integer*4     DEm         ! (arcmin) Declination J2000 (minutes)
      real*4        DEs         ! (arcsec) ? Declination J2000 (seconds)
      real*4        GLON        ! (deg) Galactic longitude
      real*4        GLAT        ! (deg) Galactic latitude
      character*1   n_Vmag      ! [Bvprme] Magnitude system (2)
      real*4        Vmag        ! (mag) ? Magnitude in V, or see n_Vmag (2) (3)
      character*1   u_Vmag      ! [V:] Magnitude variability or uncertainty (3)
      character*9   SpType      ! Spectral type given in the literature
      character*1   n_SpType    ! [r] indicates a remark
      integer*4     POSS        ! ? POSS O-chart on which x and y are measured (4)
      integer*4     xPOSS       ! (mm) ? Position on O plate from left inner edge
      integer*4     yPOSS       ! (mm) ? Position on O plate from lower inner edge
      character*9   HBH         ! Hamburg-Bergedorg star having H-alpha in em. (5)
      character*2   SC          ! Classification of Spectrum (6)
      integer*4     FC          ! [1,2]? Existence of finding charts (7)
      integer*4     HD          ! ? HD or HDE number
      character*1   u_HD        ! Uncertainty flag on HD identification
      character*9   Name        ! Star (variable) name
      character*8   BD          ! Bonner Durchmusterung designation
      character*6   MWC         ! Designation in Mount Wilson Catalog or
*                                 Additional Stars (AS)
      character*1   u_MWC       ! Uncertainty flag on MWC identification
      character*11  LS          ! Designation in "Luminous Stars in Northern
*                                  Milky Way" (cat. <III/76>)
      integer*4     Bidelman    ! ? Number in Bidelman (1954ApJS....1..175B)
      integer*4     He3         ! ? Number in Henize (1976ApJS...30..491H)
      character*7   Ton         ! Designation in Tonantzintla lists
      character*4   VES         ! Designation in Vatican catalogue (1977-83)
      character*8   Other       ! Designation in further 91 lists
      character*1   Rem         ! [*] when a note exists in file notes.dat
*Note (1):
*     The number if made from the page header (1 to 70) and a running
*     number on the page (1 to 60).
*Note (2): colour system given in the literature:
*   (blank) = photoelectric in the V system,
*        B  = photoelectric in the B system,
*        v  = visual or photovisual,
*        p  = photographic,
*        r  = red or photored,
*        m  = spectral region not known,
*        e  = estimated on our Schmidt-camera plates (A10) according to
*             the classification of the spectra of HBH stars (see Section 2)
*Note (3):
*    "V" following the magnitude means variable star; the given brightness
*    corresponds to that of the maximum. We confirmed the variability of
*    many stars and found several new variable stars.
*Note (4):
*    The 6-digit number represents the Declination in degrees, followed
*    by the Right Ascension in hours and minutes, of the center;
*    for instance, 600000 means +60{deg}, 00h00m POSS plate.
*Note (5):
*    S (at the end, but not part of the designation) indicates an object
*    having a suspected H{alpha} emission line or perhaps a non-stellar
*    object. There are two reasons for a designation as ``suspected'':
*      a) the contrast between the H{alpha} emission line and the
*         continuum in the neighbourhood is small,
*      b) the object may not be a stellar one: e.g. the object is a
*         compact HII region, a knot of the large HII region or a
*         planetary nebula
*Note (6):
*    Classification of the spectrum of HBH stars on the Schmidt camera
*    long-exposed (30 min) red plates.
*     * H{alpha} emission line is (first character):
*       1 = very faint,
*       2 = faint,
*       3 = moderate,
*       4 = strong,
*       5 = overexposed;
*     * continuum is (second character):
*     "-" = invisible or very faint,
*       A = faint,
*       B = moderate,
*       C = strong,
*       D = overexposed,
*    * "-- " is found when no classification of the spectrum in the above
*       system possible,  mainly because  H emission line visible  on
*       short-exposed (<30 min) plates only, or because of variability;
*Note (7):
*    Existence of the finding chart in Part 2:
*    1 = one chart,  2 = two charts.
*    See the range of RA given on Plates.

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

C  Declarations for 'notes.dat'	! Remarks to individual stars

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

      character*5   ID_1        ! Designation of the star, as in catalog
      character*70  Text        ! Text of remark

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

C  Loading file 'catalog.dat'	! The Catalogue

C  Format for file interpretation

    1 format(
     +  A5,2X,I2,1X,I2,1X,F5.2,A1,I2,1X,I2,1X,F4.1,1X,F6.2,F6.2,1X,A1,
     +  F5.2,A1,1X,A9,A1,I6,1X,I3,1X,I3,1X,A9,1X,A2,1X,I1,1X,I6,A1,1X,
     +  A9,1X,A8,1X,A6,A1,A11,1X,I5,1X,I4,1X,A7,2X,A4,1X,A8,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,4174
        read(1,'(A172)')ar__
        read(ar__,1)
     +  ID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,GLON,GLAT,n_Vmag,Vmag,u_Vmag,
     +  SpType,n_SpType,POSS,xPOSS,yPOSS,HBH,SC,FC,HD,u_HD,Name,BD,
     +  MWC,u_MWC,LS,Bidelman,He3,Ton,VES,Other,Rem
        if(ar__(26:29) .EQ. '') DEs = rNULL__
        if(ar__(45:49) .EQ. '') Vmag = rNULL__
        if(ar__(62:67) .EQ. '') POSS = iNULL__
        if(ar__(69:71) .EQ. '') xPOSS = iNULL__
        if(ar__(73:75) .EQ. '') yPOSS = iNULL__
        if(ar__(90:90) .EQ. '') FC = iNULL__
        if(ar__(92:97) .EQ. '') HD = iNULL__
        if(ar__(138:142) .EQ. '') Bidelman = iNULL__
        if(ar__(144:147) .EQ. '') He3 = iNULL__
        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(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  ID,RAh,RAm,RAs,DE_,DEd,DEm,DEs,GLON,GLAT,n_Vmag,Vmag,u_Vmag,
     +  SpType,n_SpType,POSS,xPOSS,yPOSS,HBH,SC,FC,HD,u_HD,Name,BD,
     +  MWC,u_MWC,LS,Bidelman,He3,Ton,VES,Other,Rem
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'notes.dat'	! Remarks to individual stars

C  Format for file interpretation

    2 format(A5,1X,A70)

C  Effective file loading

      open(unit=1,status='old',file=
     +'notes.dat')
      write(6,*) '....Loading file: notes.dat'
      do i__=1,1550
        read(1,'(A76)')ar__1
        read(ar__1,2)ID_1,Text
c    ..............Just test output...........
        write(6,2)ID_1,Text
c    .......End.of.Just test output...........
      end do
      close(1)

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