FORTRAN Generation
(/./ftp/cats/J/ApJ/827/142)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/827/142 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 2026-Jun-15
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/827/142   ALMA observations of GKM stars in Upper Sco   (Barenfeld+, 2016)
*================================================================================
*ALMA observations of circumstellar disks in the Upper Scorpius OB association.
*    Barenfeld S.A., Carpenter J.M., Ricci L., Isella A.
*   <Astrophys. J., 827, 142-142 (2016)>
*   =2016ApJ...827..142B    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Stellar properties

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

      character*17  v2MASS     (nr__) ! 2MASS ID (JHHMMSSss+DDMMSSs)
      character*5   SpT        (nr__) ! MK spectral type (G2 to M5) from
*                                   Luhman & Mamajek (2012, J/ApJ/758/31)
      character*17  Type       (nr__) ! Disk type (1)
      real*4        Av         (nr__) ! (mag) [-0.6/4.3] Visual extinction
      real*4        e_Av       (nr__) ! (mag) [0.2/0.5] Uncertainty in Av
      real*4        logTeff    (nr__) ! ([K]) [3.4/3.8] Log effective temperature
      real*4        e_logTeff  (nr__) ! ([K]) [0/0.02] Uncertainty in logTeff
      real*4        logL       (nr__) ! ([Lsun]) [-1.9/0.8] Log luminosity (estimated using
*                                    2MASS J-band; see section 2)
      real*4        e_logL     (nr__) ! ([Lsun]) [0.1/0.2] Uncertainty in logL
      real*4        logM       (nr__) ! ([Msun]) [-0.9/0.3] Log stellar mass
      real*4        e_logM     (nr__) ! ([Msun]) [0.04/0.2] Lower uncertainty in logM
      real*4        E_logM_1   (nr__) ! ([Msun]) [0.02/0.2] Upper uncertainty in logM
*Note (1): Disk type as defined by Luhman & Mamajek (2012, J/ApJ/758/31):
* Full              = optically thick in the infrared with an SED that shows
*                      no evidence of disk clearing (53 sources).
* Transitional      = with an SED showing evidence for gaps and holes (5 sources)
* Evolved           = becoming optically thin in the infrared, but no evidence
*                      of clearing (17 sources)
* Debris/Ev. Trans. = "Debris/Evolved Transitional": either young debris disks
*                      composed of second-generation dust originating from the
*                      collisional destruction of planetesimals, or the final
*                      phase of primordial disk evolution (31 sources).
*          See section 2 for further details.

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

C  Declarations for 'table4.dat'	! Continuum and CO J=3-2 flux measurements

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

      character*17  v2MASS_1   (nr__1) ! 2MASS ID (JHHMMSSss+DDMMSSs)
      integer*4     f_Aper     (nr__1) ! ? Continuum flux density photometry flag:
*                                    1=aperture
      real*4        Snu        (nr__1) ! (mJy) [-0.4/904] ALMA 0.88mm continuum flux density
      real*4        e_Snu      (nr__1) ! (mJy) [0.1/1] Uncertainty in Snu
      real*4        dRA        (nr__1) ! (arcsec) [-0.6/0.5]? ALMA continuum offset from
*                                    stellar source, RA (1)
      real*4        e_dRA      (nr__1) ! (arcsec) [0.04/0.3]? Uncertainty in dRA
      real*4        dDE        (nr__1) ! (arcsec) [-0.6/0.6]? ALMA continuum offset from
*                                    stellar source, Dec (1)
      real*4        e_dDE      (nr__1) ! (arcsec) [0.04/0.3]? Uncertainty in dDE
      real*4        FWHM       (nr__1) ! (arcsec) [0.1/0.5]? Full width at half maximum (2)
      real*4        e_FWHM     (nr__1) ! (arcsec) [0.001/0.07]? Uncertainty in FWHM
      integer*4     COFlux     (nr__1) ! (mJy.km/s) [-86/22748] ALMA CO J=3-2 flux
      integer*4     e_COFlux   (nr__1) ! (mJy.km/s) [16/158] Uncertainty in COFlux
      real*4        Vmin       (nr__1) ! (km/s) [-17/3.5] Velocity range of the CO, minimum
      real*4        Vmax       (nr__1) ! (km/s) [6/24] Velocity range of the CO, maximum
      real*4        Aper       (nr__1) ! (arcsec) [0.3/2.1] Aperture Radius
*Note (1): Continuum offsets from the expected stellar position. Blank values
*          indicate a non-detection, for which the fit position is held fix at
*          the expected stellar position.
*Note (2): Full width at half maximum for sources fitted with an elliptical
*          Gaussian. Blank values indicate point sources and sources measured
*          with aperture photometry.

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

C  Declarations for 'table5.dat'	! Derived dust masses

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

      character*17  v2MASS_2   (nr__2) ! 2MASS ID (JHHMMSSss+DDMMSSs)
      character*1   l_Mdust    (nr__2) ! Upper limit flag on Mdust, in Earth Masses
      real*4        Mdust      (nr__2) ! (Mgeo) [0.05/128] Disk dust mass
      real*4        e_Mdust    (nr__2) ! (Mgeo) [0.03/32]? Uncertainty in Mdust, in Earth Masses

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

C  Loading file 'table1.dat'	! Stellar properties

C  Format for file interpretation

    1 format(
     +  6X,A17,1X,A5,1X,A17,1X,F5.2,1X,F4.2,1X,F4.2,1X,F4.2,1X,F5.2,
     +  1X,F4.2,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,106
        read(1,'(A95)')ar__
        read(ar__,1)
     +  v2MASS(i__),SpT(i__),Type(i__),Av(i__),e_Av(i__),logTeff(i__),
     +  e_logTeff(i__),logL(i__),e_logL(i__),logM(i__),e_logM(i__),
     +  E_logM_1(i__)
c    ..............Just test output...........
        write(6,1)
     +  v2MASS(i__),SpT(i__),Type(i__),Av(i__),e_Av(i__),logTeff(i__),
     +  e_logTeff(i__),logL(i__),e_logL(i__),logM(i__),e_logM(i__),
     +  E_logM_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Continuum and CO J=3-2 flux measurements

C  Format for file interpretation

    2 format(
     +  6X,A17,1X,I1,1X,F6.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,
     +  1X,F5.3,1X,F5.3,1X,I5,1X,I3,1X,F5.1,3X,F4.1,1X,F3.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,106
        read(1,'(A98)')ar__1
        read(ar__1,2)
     +  v2MASS_1(i__),f_Aper(i__),Snu(i__),e_Snu(i__),dRA(i__),
     +  e_dRA(i__),dDE(i__),e_dDE(i__),FWHM(i__),e_FWHM(i__),
     +  COFlux(i__),e_COFlux(i__),Vmin(i__),Vmax(i__),Aper(i__)
        if(ar__1(25:25) .EQ. '') f_Aper(i__) = iNULL__
        if(ar__1(39:43) .EQ. '') dRA(i__) = rNULL__
        if(ar__1(45:48) .EQ. '') e_dRA(i__) = rNULL__
        if(ar__1(50:54) .EQ. '') dDE(i__) = rNULL__
        if(ar__1(56:59) .EQ. '') e_dDE(i__) = rNULL__
        if(ar__1(61:65) .EQ. '') FWHM(i__) = rNULL__
        if(ar__1(67:71) .EQ. '') e_FWHM(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  v2MASS_1(i__),f_Aper(i__),Snu(i__),e_Snu(i__),dRA(i__),
     +  e_dRA(i__),dDE(i__),e_dDE(i__),FWHM(i__),e_FWHM(i__),
     +  COFlux(i__),e_COFlux(i__),Vmin(i__),Vmax(i__),Aper(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Derived dust masses

C  Format for file interpretation

    3 format(6X,A17,1X,A1,F6.2,1X,F5.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,106
        read(1,'(A37)')ar__2
        read(ar__2,3)
     +  v2MASS_2(i__),l_Mdust(i__),Mdust(i__),e_Mdust(i__)
        if(ar__2(33:37) .EQ. '') e_Mdust(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  v2MASS_2(i__),l_Mdust(i__),Mdust(i__),e_Mdust(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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