FORTRAN Generation
(/./ftp/cats/J/ApJ/719/1784)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/719/1784 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 2024-Apr-20
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/ApJ/719/1784         Yellow supergiants in the SMC            (Neugent+, 2010)
*================================================================================
*Yellow supergiants in the Small Magellanic Cloud: putting current evolutionary
*theory to the test.
*    Neugent K.F., Massey P., Skiff B., Drout M.R., Meynet G., Olsen K.A.G.
*   <Astrophys. J., 719, 1784-1795 (2010)>
*   =2010ApJ...719.1784N
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Properties of observed targets

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

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

      character*17  v2MASS     (nr__) ! 2MASS identification
      character*1   f_2MASS    (nr__) ! [a] averaged resutlt (1)
      integer*4     RAh        (nr__) ! (h) Hour of Right Ascension (J2000)
      integer*4     RAm        (nr__) ! (min) Minute of Right Ascension (J2000)
      real*4        RAs        (nr__) ! (s) Second of Right Ascension (J2000)
      character*1   DE_        (nr__) ! Sign of Declination (J2000)
      integer*4     DEd        (nr__) ! (deg) Degree of Declination (J2000)
      integer*4     DEm        (nr__) ! (arcmin) Arcminute of Declination (J2000)
      real*4        DEs        (nr__) ! (arcsec) Arcsecond of Declination (J2000)
      real*4        Ksmag      (nr__) ! (mag) 2MASS Ks band magnitude
      real*4        J_Ks       (nr__) ! (mag) The (J-Ks) color index
      real*4        Vmag       (nr__) ! (mag) ? V band magnitude
      real*4        B_V        (nr__) ! (mag) ? The (B-V) color index
      integer*4     r_B_V      (nr__) ! [1/5] The Vmag and B-V photometry reference
*                                (see refs.dat file)
      real*4        HRV        (nr__) ! (km/s) Radial velocity
      real*4        r          (nr__) ! Tondry & Davis, 1979AJ.....84.1511T, r parameter
      integer*4     Cat        (nr__) ! [1/3] Category (G1)
      character*9   SpT1       (nr__) ! MK spectral classification from Hydra spectra
      character*9   SpT2       (nr__) ! Literature MK spectral classification
      integer*4     r_SpT2     (nr__) ! [11/31]? Spectral classification reference (see
*                                refs.dat file)
      character*28  Comm       (nr__) ! Additional comments (2)
*Note (1): These stars were imaged twice and their results were averaged.
*          The average difference in Vel_obs_ was 2.2km/s and the average
*          difference in the r parameter was 13.7.
*Note (2): Comments include: alternate names for the star, comments on the
*          blue spectra and comments based on the literature search.

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

C  Declarations for 'table2.dat'	! Derived properties of SMC yellow supergiants

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

      character*17  v2MASS_1   (nr__1) ! 2MASS identification
      character*1   f_2MASS_1  (nr__1) ! [a] No (B-V) color (1)
      integer*4     Cat_1      (nr__1) ! [1/2] Category (G1)
      real*4        Teff       (nr__1) ! (10+3K) Effective temperature
      real*4        logL       (nr__1) ! ([Lsun]) Log luminosity
      character*1   l_EW       (nr__1) ! Limit flag on EW
      real*4        EW         (nr__1) ! (0.1nm) Equivalent width of OI 7774{AA} line (2)
*Note (1): This star didn't have a known B-V color, so instead we used the
*          star's J-K color to derive the Teff and logL.
*Note (2): We found we couldn't measure OI (7774{AA}) if it had an equivalent
*          width of less than 0.2{AA}. The units are in Angstroms.

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

C  Declarations for 'table3.dat'	! SMC supergiants not observed

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

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

      character*17  v2MASS_2   (nr__2) ! 2MASS name (JHHMMSSss+DDMMSSs)
      character*1   f_2MASS_2  (nr__2) ! [a] stars we selected but were not observed
      integer*4     RAh_1      (nr__2) ! (h) Hour of right ascension (J2000)
      integer*4     RAm_1      (nr__2) ! (min) Minute of right ascension (J2000)
      real*4        RAs_1      (nr__2) ! (s) Second of right ascension (J2000)
      character*1   DE__1      (nr__2) ! Sign of declination (J2000)
      integer*4     DEd_1      (nr__2) ! (deg) Degree of declination (J2000)
      integer*4     DEm_1      (nr__2) ! (arcmin) Arcminute of declination (J2000)
      real*4        DEs_1      (nr__2) ! (arcsec) Arcsecond of declination (J2000)
      real*4        Ksmag_1    (nr__2) ! (mag) 2MASS Ks-band magnitude
      real*4        J_K        (nr__2) ! (mag) J-K color index
      real*4        Vmag_1     (nr__2) ! (mag) V-band magnitude
      integer*4     r_Vmag     (nr__2) ! [1-3] Reference for Vmag (see refs.dat file)
      character*5   SpT        (nr__2) ! MK spectral type from litterature
      integer*4     r_SpT      (nr__2) ! [18/32] Reference for spectral classification
*                                  (see refs.dat file)
      character*15  AName      (nr__2) ! Alternative name(s)
      character*24  Comm_1     (nr__2) ! Comment

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

C  Declarations for 'refs.dat'	! References

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

      integer*4     Ref        (nr__3) ! [1/32] Reference code
      character*19  BibCode    (nr__3) ! Bibcode
      character*19  Aut        (nr__3) ! Author's name(s)
      character*23  Comm_2     (nr__3) ! Comment

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

C  Loading file 'table1.dat'	! Properties of observed targets

C  Format for file interpretation

    1 format(
     +  A17,1X,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,
     +  1X,F4.2,1X,F5.2,1X,F5.2,1X,I1,1X,F5.1,1X,F5.1,1X,I1,1X,A9,1X,
     +  A9,1X,I2,1X,A28)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,497
        read(1,'(A134)')ar__
        read(ar__,1)
     +  v2MASS(i__),f_2MASS(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),Ksmag(i__),J_Ks(i__),Vmag(i__),
     +  B_V(i__),r_B_V(i__),HRV(i__),r(i__),Cat(i__),SpT1(i__),
     +  SpT2(i__),r_SpT2(i__),Comm(i__)
        if(ar__(56:60) .EQ. '') Vmag(i__) = rNULL__
        if(ar__(62:66) .EQ. '') B_V(i__) = rNULL__
        if(ar__(104:105) .EQ. '') r_SpT2(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(RAs(i__) .GT. -180) RAdeg(i__)=RAdeg(i__)+RAs(i__)/240.
        if(DEd(i__) .GE. 0) DEdeg(i__)=DEd(i__)
        if(DEm(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEm(i__)/60.
        if(DEs(i__) .GE. 0) DEdeg(i__)=DEdeg(i__)+DEs(i__)/3600.
        if(DE_(i__).EQ.'-'.AND.DEdeg(i__).GE.0) DEdeg(i__)=-DEdeg(i__)
c    ..............Just test output...........
        write(6,1)
     +  v2MASS(i__),f_2MASS(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),
     +  DEd(i__),DEm(i__),DEs(i__),Ksmag(i__),J_Ks(i__),Vmag(i__),
     +  B_V(i__),r_B_V(i__),HRV(i__),r(i__),Cat(i__),SpT1(i__),
     +  SpT2(i__),r_SpT2(i__),Comm(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg(i__),DEdeg(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Derived properties of SMC yellow supergiants

C  Format for file interpretation

    2 format(A17,1X,A1,1X,I1,1X,F5.3,1X,F5.3,1X,A1,F4.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,192
        read(1,'(A39)')ar__1
        read(ar__1,2)
     +  v2MASS_1(i__),f_2MASS_1(i__),Cat_1(i__),Teff(i__),logL(i__),
     +  l_EW(i__),EW(i__)
c    ..............Just test output...........
        write(6,2)
     +  v2MASS_1(i__),f_2MASS_1(i__),Cat_1(i__),Teff(i__),logL(i__),
     +  l_EW(i__),EW(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! SMC supergiants not observed

C  Format for file interpretation

    3 format(
     +  A17,1X,A1,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,
     +  1X,F4.2,1X,F5.2,1X,I1,1X,A5,1X,I2,1X,A15,1X,A24)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,17
        read(1,'(A112)')ar__2
        read(ar__2,3)
     +  v2MASS_2(i__),f_2MASS_2(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),Ksmag_1(i__),
     +  J_K(i__),Vmag_1(i__),r_Vmag(i__),SpT(i__),r_SpT(i__),
     +  AName(i__),Comm_1(i__)
        RAdeg_1(i__) = rNULL__
        DEdeg_1(i__) = 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(i__) .GT. -180) RAdeg_1(i__)=RAh_1(i__)*15.
        if(RAm_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAm_1(i__)/4.
        if(RAs_1(i__) .GT. -180) RAdeg_1(i__)=RAdeg_1(i__)+RAs_1(i__)/240.
        if(DEd_1(i__) .GE. 0) DEdeg_1(i__)=DEd_1(i__)
        if(DEm_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEm_1(i__)/60.
        if(DEs_1(i__) .GE. 0) DEdeg_1(i__)=DEdeg_1(i__)+DEs_1(i__)/3600.
        if(DE__1(i__).EQ.'-'.AND.DEdeg_1(i__).GE.0) DEdeg_1(i__)=-DEdeg_1(i__)
c    ..............Just test output...........
        write(6,3)
     +  v2MASS_2(i__),f_2MASS_2(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),Ksmag_1(i__),
     +  J_K(i__),Vmag_1(i__),r_Vmag(i__),SpT(i__),r_SpT(i__),
     +  AName(i__),Comm_1(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    4 format(I2,1X,A19,1X,A19,1X,A23)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,27
        read(1,'(A66)')ar__3
        read(ar__3,4)Ref(i__),BibCode(i__),Aut(i__),Comm_2(i__)
c    ..............Just test output...........
        write(6,4)Ref(i__),BibCode(i__),Aut(i__),Comm_2(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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