FORTRAN Generation
(/./ftp/cats/J/ApJ/696/L84)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/696/L84 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/696/L84   Primordial circumstellar disks in binary systems  (Cieza+, 2009)
*================================================================================
*Primordial circumstellar disks in binary systems: evidence for reduced
*lifetimes.
*    Cieza L.A., Padgett D.L., Allen L.E., McCabe C.E., Brooke T.Y., Carey S.J.,
*    Chapman N.L., Fukagawa M., Huard T.L., Noriga-Crespo A., Peterson D.E.,
*    Rebull L.M.
*   <Astrophys. J., 696, L84-L88 (2009)>
*   =2009ApJ...696L..84C
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table1.dat'	! Multiplicity and Spitzer data

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

C  J2000 position composed of: RAdeg DEdeg
      character*16  Name       (nr__) ! Object Name
      real*8        RAdeg      (nr__) ! (deg) Right Ascension in decimal degrees (J2000)
      real*8        DEdeg      (nr__) ! (deg) Declination in decimal degrees (J2000)
      character*5   Region     (nr__) ! Star-forming region (Cha_I, CrA, Oph or Tau)
      real*4        Sep        (nr__) ! (arcsec) ? Angular separation (if binary)
      character*5   Ref        (nr__) ! Reference for multiplicity survey (1)
      real*4        F3_6um     (nr__) ! (mJy) Spitzer/IRAC 3.6 micron flux
      real*4        e_F3_6um   (nr__) ! (mJy) Error in 3.6 micron flux
      real*4        F4_5um     (nr__) ! (mJy) Spitzer/IRAC 4.5 micron flux
      real*4        e_F4_5um   (nr__) ! (mJy) Error in 4.5 micron flux
      real*4        F5_8um     (nr__) ! (mJy) Spitzer/IRAC 5.8 micron flux
      real*4        e_F5_8um   (nr__) ! (mJy) Error in 5.8 micron flux
      real*4        F8_0um     (nr__) ! (mJy) Spitzer/IRAC 5.8 micron flux
      real*4        e_F8_0um   (nr__) ! (mJy) Error in 5.8 micron flux
*Note (1): References as follows:
*   1 = Leinert et al. 1993A&A...278..129L
*   2 = Simon et al. 1995ApJ...450..824S
*   3 = Lafreniere et al. 2008ApJ...683..844L
*   4 = Prato et al. 2007ApJ...657..338P
*   5 = Ratzka et al. 2005A&A...437..611R
*   6 = Koheler et al. 2008A&A...488..997K

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

C  Loading file 'table1.dat'	! Multiplicity and Spitzer data

C  Format for file interpretation

    1 format(
     +  A16,1X,F8.4,1X,F8.4,1X,A5,1X,F6.3,1X,A5,1X,E8.2,1X,E8.2,1X,
     +  E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,E8.2,1X,E8.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table1.dat')
      write(6,*) '....Loading file: table1.dat'
      do i__=1,349
        read(1,'(A125)')ar__
        read(ar__,1)
     +  Name(i__),RAdeg(i__),DEdeg(i__),Region(i__),Sep(i__),Ref(i__),
     +  F3_6um(i__),e_F3_6um(i__),F4_5um(i__),e_F4_5um(i__),
     +  F5_8um(i__),e_F5_8um(i__),F8_0um(i__),e_F8_0um(i__)
        if(ar__(42:47) .EQ. '') Sep(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Name(i__),RAdeg(i__),DEdeg(i__),Region(i__),Sep(i__),Ref(i__),
     +  F3_6um(i__),e_F3_6um(i__),F4_5um(i__),e_F4_5um(i__),
     +  F5_8um(i__),e_F5_8um(i__),F8_0um(i__),e_F8_0um(i__)
c    .......End.of.Just test output...........
      end do
      close(1)

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