FORTRAN Generation
(/./ftp/cats/J/ApJ/818/73)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/818/73 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-18
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/818/73  Study of protostars in the Perseus molecular cloud  (Tobin+, 2016)
*================================================================================
*The VLA nascent disk and multiplicity survey of Perseus protostars (VANDAM).
*II. Multiplicity of protostars in the Perseus molecular cloud.
*    Tobin J.J., Looney L.W., Li Z.-Y., Chandler C.J., Dunham M.M.,
*    Segura-Cox D., Sadavoy S.I., Melis C., Harris R.J., Kratter K., Perez L.
*   <Astrophys. J., 818, 73 (2016)>
*   =2016ApJ...818...73T    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Source List

      integer*4 nr__
      parameter (nr__=99)	! Number of records
      character*117 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*15  Source     (nr__) ! Source name (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 the 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) Arcsec of Declination (J2000)
      character*25  Other      (nr__) ! Other source name(s) (1)
      character*1   Detec      (nr__) ! [YN] Whether or not the associated source was
*                                  detected above 5{sigma} in the observation
*                                  (at either 8 mm or 1 cm)
      character*1   Mult       (nr__) ! [YN] Whether or not the object comprises
*                                  a multiple system or is a component of
*                                  a multiple system based on our data
      character*3   Config     (nr__) ! [A,B ] VLA configuration(s) in which
*                                  observation was taken
      character*13  Class      (nr__) ! Young Stellar Object classification (2)
      real*4        Lbol       (nr__) ! (Lsun) ?=-99. Bolometric luminosity
      real*4        e_Lbol     (nr__) ! (Lsun) ?=-99. Uncertainty in Lbol
      real*4        Tbol       (nr__) ! (K) ?=-99. Bolometric temperature
      real*4        e_Tbol     (nr__) ! (K) ?=-99. Uncertainty in Tbol
*Note (1): The sources denoted Per-emb-XX correspond to the sources published in
*          Enoch et al. (2009, J/ApJ/692/973), EDJ2009 sources are from
*          Evans et al. (2009, J/ApJS/181/321), ASR refers to Aspin et al.
*          (1994, J/A+AS/106/165), SVS refers to Strom et al.
*          (1976AJ.....81..314S), and RAC1999-VLA20 is from Rodriguez et al.
*          (1999, J/ApJS/125/427). IRAS 4B' was observed in the same field as
*          Per-emb-13, EDJ2009-233/235 were observed in the same field, and
*          RAC1999-VLA20 was observed in the same field as Per-emb-44.
*Note (2): Based on T_bol_ from Enoch et al. (2009, J/ApJ/692/973),
*          Sadavoy et al. (2014ApJ...787L..18S), and Young et al.
*          (2015, J/AJ/150/40).

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

C  Declarations for 'table2.dat'	! Source Properties

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

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

      character*15  Source_1   (nr__1) ! Source name
      character*5   m_Source   (nr__1) ! Component of the source
      integer*4     RAh_1      (nr__1) ! (h) Hour of Right Ascension (J2000)
      integer*4     RAm_1      (nr__1) ! (min) Minute of Right Ascension (J2000)
      real*4        RAs_1      (nr__1) ! (s) Second of Right Ascension (J2000)
      character*1   DE__1      (nr__1) ! Sign of the Declination (J2000)
      integer*4     DEd_1      (nr__1) ! (deg) Degree of Declination (J2000)
      integer*4     DEm_1      (nr__1) ! (arcmin) Arcminute of Declination (J2000)
      real*4        DEs_1      (nr__1) ! (arcsec) Arcsec of Declination (J2000)
      character*1   l_Fnu8     (nr__1) ! [<] Limit flag on Fnu8
      real*4        Fnu8       (nr__1) ! (mJy) Integrated flux density at 8mm
      real*4        e_Fnu8     (nr__1) ! (mJy) Uncertainty in Fnu8
      character*1   l_Fnu8p    (nr__1) ! [<] Limit flag on Fnu8p
      real*4        Fnu8p      (nr__1) ! (mJy) Peak flux density at 8mm
      real*4        e_Fnu8p    (nr__1) ! (mJy) rms uncertainty in Fnu8p
      character*1   l_Fnu10    (nr__1) ! [<] Limit flag on Fnu10
      real*4        Fnu10      (nr__1) ! (mJy) Integrated flux density at 10mm
      real*4        e_Fnu10    (nr__1) ! (mJy) Uncertainty in Fnu10
      character*1   l_Fnu10p   (nr__1) ! [<] Limit flag on Fnu10p
      real*4        Fnu10p     (nr__1) ! (mJy) Peak flux density at 10mm
      real*4        e_Fnu10p   (nr__1) ! (mJy) rms uncertainty in Fnu10p
      real*4        SpIndex    (nr__1) ! ? Integrated spectral index
      real*4        e_SpIndex  (nr__1) ! ? Uncertainty in SpIndex
      real*4        SpIndexp   (nr__1) ! ? Peak spectral index
      real*4        e_SpIndexp (nr__1) ! ? Uncertainty in SpIndexp

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

C  Loading file 'table1.dat'	! Source List

C  Format for file interpretation

    1 format(
     +  A15,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F6.3,1X,A25,1X,A1,
     +  1X,A1,1X,A3,1X,A13,1X,F6.2,1X,F6.2,1X,F6.1,1X,F5.1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,99
        read(1,'(A117)')ar__
        read(ar__,1)
     +  Source(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Other(i__),Detec(i__),Mult(i__),Config(i__),
     +  Class(i__),Lbol(i__),e_Lbol(i__),Tbol(i__),e_Tbol(i__)
        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)
     +  Source(i__),RAh(i__),RAm(i__),RAs(i__),DE_(i__),DEd(i__),
     +  DEm(i__),DEs(i__),Other(i__),Detec(i__),Mult(i__),Config(i__),
     +  Class(i__),Lbol(i__),e_Lbol(i__),Tbol(i__),e_Tbol(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'	! Source Properties

C  Format for file interpretation

    2 format(
     +  A15,A5,1X,I2,1X,I2,1X,F6.3,1X,A1,I2,1X,I2,1X,F6.3,1X,A1,F5.3,
     +  1X,F5.3,1X,A1,F5.3,1X,F5.3,1X,A1,F5.3,1X,F5.3,1X,A1,F5.3,1X,
     +  F5.3,1X,F6.3,1X,F6.3,1X,F5.2,1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,128
        read(1,'(A126)')ar__1
        read(ar__1,2)
     +  Source_1(i__),m_Source(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),l_Fnu8(i__),
     +  Fnu8(i__),e_Fnu8(i__),l_Fnu8p(i__),Fnu8p(i__),e_Fnu8p(i__),
     +  l_Fnu10(i__),Fnu10(i__),e_Fnu10(i__),l_Fnu10p(i__),
     +  Fnu10p(i__),e_Fnu10p(i__),SpIndex(i__),e_SpIndex(i__),
     +  SpIndexp(i__),e_SpIndexp(i__)
        if(ar__1(101:106) .EQ. '') SpIndex(i__) = rNULL__
        if(ar__1(108:113) .EQ. '') e_SpIndex(i__) = rNULL__
        if(ar__1(115:119) .EQ. '') SpIndexp(i__) = rNULL__
        if(ar__1(121:126) .EQ. '') e_SpIndexp(i__) = rNULL__
        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,2)
     +  Source_1(i__),m_Source(i__),RAh_1(i__),RAm_1(i__),RAs_1(i__),
     +  DE__1(i__),DEd_1(i__),DEm_1(i__),DEs_1(i__),l_Fnu8(i__),
     +  Fnu8(i__),e_Fnu8(i__),l_Fnu8p(i__),Fnu8p(i__),e_Fnu8p(i__),
     +  l_Fnu10(i__),Fnu10(i__),e_Fnu10(i__),l_Fnu10p(i__),
     +  Fnu10p(i__),e_Fnu10p(i__),SpIndex(i__),e_SpIndex(i__),
     +  SpIndexp(i__),e_SpIndexp(i__)
        write(6,'(6H Pos: 2F8.4)') RAdeg_1(i__),DEdeg_1(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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