FORTRAN Generation
(/./ftp/cats/J/A_A/603/A81)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/603/A81 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-29
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/A+A/603/A81      Trumpler 14 and 16 in the Carina nebula      (Damiani+, 2017)
*================================================================================
*Gaia-ESO Survey:
*Global properties of clusters Trumpler 14 and 16 in the Carina nebula.
*    Damiani F., Klutsch A., Jeffries R.D., Randich S., Prisinzano L.,
*    Maiz-Apellaniz J., Micela G., Kalari V., Frasca A., Zwitter T., Bonito R.,
*    Gilmore G., Flaccomio E., Francois P., Koposov S., Lanzafame A.C.,
*    Sacco G.G., Bayo A., Carraro G., Casey A.R., Alfaro E.J., Costado M.T.,
*    Donati P., Franciosini E., Hourihane A., Jofre P., Lardo C., Lewis J.,
*    Magrini L., Monaco L., Morbidelli L., Worley C.C., Vink J.S., Zaggia S.
*    <Astron. Astrophys. 603, A81 (2017)>
*    =2017A&A...603A..81D        (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Carina member identifications

      integer*4 nr__
      parameter (nr__=298)	! Number of records
      character*87 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)

      integer*4     v_HSB2012_  ! Identifier in Hur et al.
*                                   (2012, Cat. J/AJ/143/41)
      character*18  CXOGNC      ! ? Identifier in Broos et al.
*                                   (2011, Cat. J/ApJS/194/2)
      integer*4     v_ADM2008_  ! ? Identifier in Albacete-Colombo et al.
*                                   (2008, Cat. J/A+A/490/1055)
      character*18  YSO         ! Identifier in Zeidler et al.
*                                   (2016, Cat. J/A+A/585/A49)
      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 (J2000)
      integer*4     DEd         ! (deg) Declination sign (J2000)
      integer*4     DEm         ! (arcmin) Declination sign (J2000)
      real*4        DEs         ! (arcsec) Declination sign (J2000)
      real*4        Vmag        ! (mag) V magnitude from Hur et al.
*                                   (2012, Cat. J/AJ/143/41)
      real*4        B_V         ! (mag) ? B-V color from Hur et al.
*                                   (2012, Cat. J/AJ/143/41)
      real*4        V_I         ! (mag) V-I color from Hur et al.
*                                   (2012, Cat. J/AJ/143/41)

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

C  Declarations for 'table2.dat'	! Carina member properties

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

      integer*4     v_HSB2012__1 ! Identifier in Hur et al.
*                                   (2012, Cat. J/AJ/143/41)
      real*4        S_N         ! Signal/noise ratio in optical spectrum
      real*4        HRV         ! (km/s) ? Stellar heliocentric radial velocity
      real*4        e_HRV       ! (km/s) ? Error on HRV
      real*4        vsini       ! (km/s) ? Rotational velocity vsini
      real*4        e_vsini     ! (km/s) ? Error on vsini
      integer*4     Teff        ! (K) ? Effective temperature
      integer*4     e_Teff      ! (K) ? Error on Teff
      real*4        A_V         ! (mag) ? Optical extinction
      real*4        EWLi        ! (0.1pm) ? Lithium 670.7nm equivalent width
      real*4        e_EWLi      ! (0.1pm) ? Error on EWLi
      real*4        gamma       ! Gravity index from Damiani et al.
*                                   (2014, Cat. J/A+A/566/A50)
      real*4        e_gamma     ! Error on gamma
      real*4        logAge      ! ([yr]) ? Isochronal age (log)
      character*1   Halpha      ! [Y/N] Classical T Tauri star candidate
      character*1   SB2         ! [Y/N] SB2 binary

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

C  Declarations for 'table7.dat'	! Carina early-type stars

      integer*4 nr__2
      parameter (nr__2=110)	! Number of records
      character*105 ar__2  	! 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*16  v2MASS      ! Identifier from 2MASS
      character*28  SIMBAD      ! Identifier from SIMBAD
      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 (J2000)
      integer*4     DEd_1       ! (deg) Declination sign (J2000)
      integer*4     DEm_1       ! (arcmin) Declination sign (J2000)
      real*4        DEs_1       ! (arcsec) Declination sign (J2000)
      real*4        Vmag_1      ! (mag) V magnitude from Hur et al.
*                                   (2012, Cat. J/AJ/143/41)
      real*4        B_V_1       ! (mag) B-V color from Hur et al.
*                                   (2012, Cat. J/AJ/143/41)
      real*4        V_I_1       ! (mag) V-I color from Hur et al.
*                                   (2012, Cat. J/AJ/143/41)
      character*3   SpType      ! MK spectral type from SIMBAD
      character*15  Notes       ! New spectral classification (1)
*Note (1): Spectroscopic classification as follows:
*  B type = main-sequence B-type stars
*  O type = O-type stars
*  B SG = candidate B supergiants
*  near A0 = stars of late-B/early-A type
*  HAeBe = Herbig Ae/Be stars

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

C  Loading file 'table1.dat'	! Carina member identifications

C  Format for file interpretation

    1 format(
     +  I4,1X,A18,1X,I4,1X,A18,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,
     +  F4.1,1X,F5.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,298
        read(1,'(A87)')ar__
        read(ar__,1)
     +  v_HSB2012_,CXOGNC,v_ADM2008_,YSO,RAh,RAm,RAs,DE_,DEd,DEm,DEs,
     +  Vmag,B_V,V_I
        if(ar__(25:28) .EQ. '') v_ADM2008_ = iNULL__
        if(ar__(79:82) .EQ. '') B_V = rNULL__
        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)
     +  v_HSB2012_,CXOGNC,v_ADM2008_,YSO,RAh,RAm,RAs,DE_,DEd,DEm,DEs,
     +  Vmag,B_V,V_I
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table2.dat'	! Carina member properties

C  Format for file interpretation

    2 format(
     +  I4,1X,F5.1,1X,F5.1,1X,F4.1,1X,F5.1,1X,F4.1,1X,I4,1X,I4,1X,
     +  F4.2,1X,F5.1,1X,F4.1,1X,F5.3,1X,F5.3,1X,F4.2,1X,A1,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,298
        read(1,'(A79)')ar__1
        read(ar__1,2)
     +  v_HSB2012__1,S_N,HRV,e_HRV,vsini,e_vsini,Teff,e_Teff,A_V,EWLi,
     +  e_EWLi,gamma,e_gamma,logAge,Halpha,SB2
        if(ar__1(12:16) .EQ. '') HRV = rNULL__
        if(ar__1(18:21) .EQ. '') e_HRV = rNULL__
        if(ar__1(23:27) .EQ. '') vsini = rNULL__
        if(ar__1(29:32) .EQ. '') e_vsini = rNULL__
        if(ar__1(34:37) .EQ. '') Teff = iNULL__
        if(ar__1(39:42) .EQ. '') e_Teff = iNULL__
        if(ar__1(44:47) .EQ. '') A_V = rNULL__
        if(ar__1(49:53) .EQ. '') EWLi = rNULL__
        if(ar__1(55:58) .EQ. '') e_EWLi = rNULL__
        if(ar__1(72:75) .EQ. '') logAge = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  v_HSB2012__1,S_N,HRV,e_HRV,vsini,e_vsini,Teff,e_Teff,A_V,EWLi,
     +  e_EWLi,gamma,e_gamma,logAge,Halpha,SB2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table7.dat'	! Carina early-type stars

C  Format for file interpretation

    3 format(
     +  A16,1X,A28,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F5.2,
     +  1X,F4.2,1X,F4.2,1X,A3,1X,A15)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table7.dat')
      write(6,*) '....Loading file: table7.dat'
      do i__=1,110
        read(1,'(A105)')ar__2
        read(ar__2,3)
     +  v2MASS,SIMBAD,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,
     +  Vmag_1,B_V_1,V_I_1,SpType,Notes
        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,3)
     +  v2MASS,SIMBAD,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,
     +  Vmag_1,B_V_1,V_I_1,SpType,Notes
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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