FORTRAN Generation
(/./ftp/cats/J/AJ/105/980)

Conversion of standardized ReadMe file for file /./ftp/cats/J/AJ/105/980 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. J/AJ/105/980     Stellar content of Tr 14 and Tr 16               (Massey+ 1993)
*================================================================================
*Massive stars near Eta Carinae: the stellar content of Tr 14 and Tr 16.
*     Massey P., Johnson J.
*    <Astron. J. 105, 980 (1993)>
*    =1993AJ....105..980M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'catalog.dat'	! Photometry and cross-identifications
                                        (tables 1 and 2)

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

      integer*4     Star        ! [1/768]+ Star designation
      real*4        Xpos        ! (pix) [0/1015] Position (positive toward West)
      real*4        Ypos        ! (pix) [0/1015] Position (positive toward North)
      real*4        Vmag        ! (mag) derived from CCD photometry
      character*2   u_Vmag      ! [bl: ] Uncertainty notes on V:
*                                        "bl" indicates a blended image
      real*4        U_B         ! (mag) derived from CCD photometry
      character*2   u_U_B       ! [: ] Uncertainty notes on U-B
      real*4        B_V         ! (mag) derived from CCD photometry
      character*2   u_B_V       ! [: ] Uncertainty notes on B-V
      character*6   Feinstein   ! Designation in clusters Tr 14 and Tr 16
*                                  (1973A&AS...12..331F; 1982AJ.....87.1012F)
      character*9   Other       ! Other designation (HD or CPD)

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

C  Declarations for 'table4.dat'	! The brightest and bluest stars

      integer*4 nr__1
      parameter (nr__1=95)	! Number of records
      character*129 ar__1  	! 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)

      integer*4     Star_1      ! [1/768] Star designation as above
      real*4        Xpos_1      ! (pix) [0/1015] Position (positive toward West)
      real*4        Ypos_1      ! (pix) [0/1015] Position (positive toward North)
      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        Vmag_1      ! (mag) derived from CCD photometry
      character*2   u_Vmag_1    ! [bl] "bl" indicates a blended image
      real*4        B_V_1       ! (mag) derived from CCD photometry
      character*2   u_B_V_1     ! [: ]
      real*4        U_B_1       ! (mag) derived from CCD photometry
      character*2   u_U_B_1     ! [: ]
      real*4        Q           ! (mag) Reddening-free parameter = (U-B)-0.72*(B-V)
      character*8   Sp_New      ! Spectral type from this study
      character*11  Sp_W        ! Spectral type from Walborn
*                                   (1972AJ.....77..312W; 1973ApJ...179..517W;
*                                    1973AJ.....78.1067W; 1982AJ.....87.1300W)
      character*13  Sp_MGL      ! Spectral type from Morell, Garcia & Levato,
*                                    1988PASP..100.1431M
      character*15  Comment     ! Designations in clusters (Feinstein,
*                                  1973A&AS...12..331F and 1982AJ.....87.1012F)

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

C  Declarations for 'table5.dat'	! New Spectral types

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

      integer*4     Star_2      ! [1/768] Star designation as above
      real*4        Xpos_2      ! (pix) [0/1015] Position (positive toward West)
      real*4        Ypos_2      ! (pix) [0/1015] Position (positive toward North)
      real*4        Vmag_2      ! (mag) derived from CCD photometry
      character*2   u_Vmag_2    ! [bl: ] "bl" indicates a blended image
      real*4        B_V_2       ! (mag) derived from CCD photometry
      character*2   u_B_V_2     ! [: ] Uncertainty notes on B-V
      real*4        U_B_2       ! (mag) derived from CCD photometry
      character*2   u_U_B_2     ! [: ] Uncertainty notes on U-B
      real*4        Q_1         ! (mag) Reddening-free parameter = (U-B) - 0.72*(B-V)
      character*6   Sp_New_1    ! Spectral type from this study
      character*6   Comment_1   ! Designations in cluster Tr 14 or Tr 16

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

C  Declarations for 'table6.dat'	! Distance & Reddening derived from spectroscopy

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

      integer*4     Star_3      ! [1/768] Star designation as above
      real*4        E_B_V       ! (mag) Color excess
      real*4        E_U_B       ! (mag) Color excess
      real*4        Ratio       ! Ratio E(U-B)/E(B-V)
      character*8   Sp          ! Spectral type
      real*4        Av          ! (mag) Absorption derived from spectral type
      real*4        V0          ! (mag) Dereddened magnitude
*                                    derived from spectral type
      real*4        Mv          ! (mag) Absolute magnitude derived from spectral type
      real*4        m_M         ! (mag) Distance modulus derived from spectral type

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

C  Loading file 'catalog.dat'	! Photometry and cross-identifications
*                                        (tables 1 and 2)

C  Format for file interpretation

    1 format(
     +  I3,4X,F6.1,2X,F6.1,3X,F5.2,A2,1X,F5.2,A2,F5.2,A2,1X,A6,2X,A9)

C  Effective file loading

      open(unit=1,status='old',file=
     +'catalog.dat')
      write(6,*) '....Loading file: catalog.dat'
      do i__=1,768
        read(1,'(A64)')ar__
        read(ar__,1)
     +  Star,Xpos,Ypos,Vmag,u_Vmag,U_B,u_U_B,B_V,u_B_V,Feinstein,Other
c    ..............Just test output...........
        write(6,1)
     +  Star,Xpos,Ypos,Vmag,u_Vmag,U_B,u_U_B,B_V,u_B_V,Feinstein,Other
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! The brightest and bluest stars

C  Format for file interpretation

    2 format(
     +  I3,1X,F6.1,1X,F6.1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,
     +  3X,F5.2,A2,1X,F5.2,A2,1X,F5.2,A2,1X,F5.2,2X,A8,1X,A11,4X,A13,
     +  2X,A15)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,95
        read(1,'(A129)')ar__1
        read(ar__1,2)
     +  Star_1,Xpos_1,Ypos_1,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag_1,
     +  u_Vmag_1,B_V_1,u_B_V_1,U_B_1,u_U_B_1,Q,Sp_New,Sp_W,Sp_MGL,
     +  Comment
        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,2)
     +  Star_1,Xpos_1,Ypos_1,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Vmag_1,
     +  u_Vmag_1,B_V_1,u_B_V_1,U_B_1,u_U_B_1,Q,Sp_New,Sp_W,Sp_MGL,
     +  Comment
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! New Spectral types

C  Format for file interpretation

    3 format(
     +  I3,4X,F6.1,2X,F6.1,3X,F5.2,A2,1X,F5.2,A2,2X,F5.2,A2,2X,F5.2,
     +  4X,A6,2X,A6)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,19
        read(1,'(A73)')ar__2
        read(ar__2,3)
     +  Star_2,Xpos_2,Ypos_2,Vmag_2,u_Vmag_2,B_V_2,u_B_V_2,U_B_2,
     +  u_U_B_2,Q_1,Sp_New_1,Comment_1
c    ..............Just test output...........
        write(6,3)
     +  Star_2,Xpos_2,Ypos_2,Vmag_2,u_Vmag_2,B_V_2,u_B_V_2,U_B_2,
     +  u_U_B_2,Q_1,Sp_New_1,Comment_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! Distance & Reddening derived from spectroscopy

C  Format for file interpretation

    4 format(
     +  I3,5X,F4.2,4X,F4.2,4X,F4.2,4X,A8,2X,F4.2,3X,F5.2,3X,F4.1,4X,
     +  F4.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,48
        read(1,'(A69)')ar__3
        read(ar__3,4)Star_3,E_B_V,E_U_B,Ratio,Sp,Av,V0,Mv,m_M
c    ..............Just test output...........
        write(6,4)Star_3,E_B_V,E_U_B,Ratio,Sp,Av,V0,Mv,m_M
c    .......End.of.Just test output...........
      end do
      close(1)

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