FORTRAN Generation
(/./ftp/cats/J/AJ/103/1205)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/103/1205 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-Sep-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. J/AJ/103/1205       Stellar Content of LH 9 and 10 in the LMC     (Parker+ 1992)
*================================================================================
*The Stellar Content of LH 9 and 10 (N 11) in the LMC:  A Case for Sequential
*Star Formation
*       Parker J.WM., Garmany C.D., Massey P., Walborn N.R.
*      <Astron. J. 103, 1205 (1992)>
*      =1992AJ....103.1205P      (SIMBAD/NED Reference)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'ubv.dat'	! UBV data from Tables 3-6 in the paper

      integer*4 nr__
      parameter (nr__=1229)	! Number of records
      character*97 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*4   Star        ! Star number (1)
      integer*4     RAh         ! (h) Right ascension (J2000)
      integer*4     RAm         ! (min) Right ascension (J2000)
      real*4        RAs         ! (s) Right ascension (J2000)
      character*1   DE_         ! Declination sign
      integer*4     DEd         ! (deg) Declination (J2000)
      integer*4     DEm         ! (arcmin) Declination (J2000)
      real*4        DEs         ! (arcsec) Declination (J2000)
      real*4        Xpos        ! (pix) X position (2)
      real*4        Ypos        ! (pix) Y position (2)
      real*4        Vmag        ! (mag) V magnitude
      real*4        B_V         ! (mag) B-V colour index
      real*4        U_B         ! (mag) ?=99.000 U-B colour index (3)
      real*4        e_Vmag      ! (mag) Error on V magnitude
      real*4        e_B_V       ! (mag) Error on B-V colour
      real*4        e_U_B       ! (mag) ?=9.000 Error on U-B colour (3)
*Note (1): Stars with numbers <3000 are in LH 9, and numbers >3000 are in LH 10.
*          Star numbers 1001 through 1522 are from Table 3.
*          Star numbers 2001 through 2345 are from Table 4.
*          Star numbers 3001 through 3273 are from Table 5.
*          Star numbers 4001 through 4089 are from Table 6.
*Note (2): Since the CCD frames for these fields (LH 9 and 10) are not
*          contiguous, the X and Y coordinates refer to different coordinate
*          systems for LH 9 and LH10; for orientation of the coordinate systems
*          see the CCD finder charts in the article.  Pixel sizes
*          (in X and Y columns) are approximately 0.49 arcsec/pixel.
*Note (3): Stars without U photometry are flagged by  U-B = 99.000  and
*          U-B err = 9.000.

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

C  Declarations for 'stars.dat'	! All stars with UBV photometry with their
                                 bolometric magnitudes and  effective
                                 temperatures which were not listed in the
                                 original tables (tables 10 to 12).

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

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

      character*4   Star_1      ! Star number (1)
      integer*4     RAh_1       ! (h) Right ascension (J2000)
      integer*4     RAm_1       ! (min) Right ascension (J2000)
      real*4        RAs_1       ! (s) Right ascension (J2000)
      character*1   DE__1       ! Declination sign
      integer*4     DEd_1       ! (deg) Declination (J2000)
      integer*4     DEm_1       ! (arcmin) Declination (J2000)
      real*4        DEs_1       ! (arcsec) Declination (J2000)
      real*4        Xpos_1      ! (pix) X position (2)
      real*4        Ypos_1      ! (pix) Y position (2)
      real*4        Vmag_1      ! (mag) V magnitude
      real*4        B_V_1       ! (mag) B-V colour index
      real*4        U_B_1       ! (mag) U-B colour index
      real*4        Q           ! (mag) (U-B)-0.72(B-V)
      real*4        E_B_V       ! (mag) Color excess calculated from Q or spectral
*                                  type or mean reddening as discussed in
*                                  Section 3.1 of the article.
      real*4        Mv          ! (mag) Absolute V magnitude=V-Rv*E(B-V)-DM  where
*                                  Rv=3.1, and the distance modulus DM=18.3 mag
      real*4        log_Teff    ! ([K]) log10 of the effective temperature: is
*                                  calculated from Q or (B-V)0 as discussed in
*                                  Section 3.2 of the article.
      real*4        Mbol        ! (mag) Bolometric magnitude=Mv+BC, where BC is
*                                  calculated from Teff as discussed in
*                                  Section 3.2 of the article.
      character*13  Sp          ! Spectral type and luminosity class as
*                                  determined from spectroscopic observations (3)
      character*13  Comments    ! Comments (4)
*Note (1): Stars numbers 1001 through 1522 are located in LH 9 (Table
*          10), and 3001 through 3273 in LH 10 (Table 11).
*          In the journal article, Tables 10 and 11 listed the Bluest (Q<-0.7)
*          and Brightest (V<16) Stars in LH 9 and 10, and Table 12 listed other
*          stars with known spectral types. The table here contains ALL stars
*          with UBV photometry (e.g., all stars that are listed in Tables 3 and
*          5), and includes their bolometric magnitudes and  effective
*          temperatures which were not listed in the original tables.
*Note (2): Since these fields are not contiguous, the X,Y coordinates refer to
*          different coordinate systems: they are from the CCD finder charts in
*          the article. Pixel sizes are approximately 0.49 arcsec/pixel.
*Note (3): One colon ":" indicates an uncertainty of one spectral subtype or
*          luminosity class, and two colons "::" indicate a larger  uncertainty.
*Note (4): Comments in square brackets, [], are indicated by the following codes
*          (note that these codes are somewhat different than those that appear
*          in the original paper):
*          [a]: strong Balmer lines
*          [b]: possible composite / blend; spectrum contaminated by nearby
*           star (in some cases the number of the other star is given in
*          parentheses)
*          [c]: cosmic ray hits / bad pixels
*          [d]: weak Balmer lines
*          [e]: strong nebular emission in the Balmer lines
*          [g]: weak N lines
*          [p]: Star 3264 is a ZAMS star with extremely strong nebular emission
*           lines and is located in the compact HII knot N 11A (see text)
*          [z]: ZAMS O star

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

C  Loading file 'ubv.dat'	! UBV data from Tables 3-6 in the paper

C  Format for file interpretation

    1 format(
     +  1X,A4,3X,I1,1X,I2,1X,F5.2,2X,A1,I2,1X,I2,1X,F4.1,4X,F6.2,2X,
     +  F6.2,2X,F6.3,2X,F6.3,2X,F6.3,3X,F5.3,3X,F5.3,3X,F5.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'ubv.dat')
      write(6,*) '....Loading file: ubv.dat'
      do i__=1,1229
        read(1,'(A97)')ar__
        read(ar__,1)
     +  Star,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Xpos,Ypos,Vmag,B_V,U_B,
     +  e_Vmag,e_B_V,e_U_B
        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)
     +  Star,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Xpos,Ypos,Vmag,B_V,U_B,
     +  e_Vmag,e_B_V,e_U_B
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'stars.dat'	! All stars with UBV photometry with their
*                                 bolometric magnitudes and  effective
*                                 temperatures which were not listed in the
*                                 original tables (tables 10 to 12).

C  Format for file interpretation

    2 format(
     +  1X,A4,3X,I1,1X,I2,1X,F5.2,2X,A1,I2,1X,I2,1X,F4.1,4X,F5.1,2X,
     +  F5.1,2X,F5.2,2X,F5.2,2X,F5.2,2X,F5.2,3X,F4.2,1X,F6.2,3X,F4.2,
     +  1X,F6.2,2X,A13,1X,A13)

C  Effective file loading

      open(unit=1,status='old',file=
     +'stars.dat')
      write(6,*) '....Loading file: stars.dat'
      do i__=1,795
        read(1,'(A133)')ar__1
        read(ar__1,2)
     +  Star_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Xpos_1,
     +  Ypos_1,Vmag_1,B_V_1,U_B_1,Q,E_B_V,Mv,log_Teff,Mbol,Sp,Comments
        RAdeg_1 = rNULL__
        DEdeg_1 = rNULL__
c  Derive coordinates RAdeg_1 and DEdeg_1 from input data
c  (RAdeg_1 and DEdeg_1 are set to rNULL__ when unknown)
        if(RAh_1 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  Star_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,Xpos_1,
     +  Ypos_1,Vmag_1,B_V_1,U_B_1,Q,E_B_V,Mv,log_Teff,Mbol,Sp,Comments
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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