FORTRAN Generation
(/./ftp/cats/J/PASJ/61/177)

Conversion of standardized ReadMe file for file /./ftp/cats/J/PASJ/61/177 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/PASJ/61/177       15um AKARI observations in CDFS field    (Burgarella+, 2009)
*================================================================================
*Deep 15um AKARI observations in the CDFS: Estimating dust luminosities for a
*MIR-selected sample and for Lyman Break Galaxies and the evolution of
*L_dust_/L_UV_ with the redshift.
*    Burgarella D., Buat V., Takeuchi T.T., Wada T., Pearson C.
*   <Publ. Astron. Soc. Jap., 61, 177-192 (2009)>
*   =2009PASJ...61..177B
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! 15um-selected sample

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     COMBO17     ! COMBO 17 identification number,
*                                     [WDK2001] NNNNN in Simbad
      real*8        RAdeg       ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg       ! (deg) Declination in decimal degrees (J2000)
      real*8        z           ! ?=-99.000 Redshift (from COMBO 17 database)
      real*8        S15um       ! (uJy) AKARI flux density at 15um
      real*4        e_S15um     ! (uJy) rms uncertainty on S15um
      real*4        S24um       ! (mJy) ?=- Spitzer flux density at 24um
      real*4        e_S24um     ! (mJy) ?=- rms uncertainty on S24um
      real*4        logLdust    ! ([solLum]) ?=- Dust luminosity (1)
*Note (1): Dust luminosities estimated from the 24 micrometer flux densities
*     using Takeuchi et al. (2005A&A...432..423T).

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

C  Declarations for 'table3.dat'	! z~1 Lyman break galaxy sample

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

C  J2000 position composed of: RAdeg DEdeg
      integer*4     COMBO17_1   ! COMBO 17 identification number,
*                                     [WDK2001] NNNNN in Simbad
      real*8        RAdeg_1     ! (deg) Right ascension in decimal degrees (J2000)
      real*8        DEdeg_1     ! (deg) Declination in decimal degrees (J2000)
      real*8        z_1         ! ?=-99.000 Redshift (from COMBO 17 database)
      real*8        S15um_1     ! (uJy) AKARI flux density at 15um
      real*4        e_S15um_1   ! (uJy) rms uncertainty on S15um
      real*4        S24um_1     ! (mJy) ?=- Spitzer flux density at 24um
      real*4        e_S24um_1   ! (mJy) ?=- rms uncertainty on S24um
      real*4        logLdust_1  ! ([solLum]) ?=- Dust luminosity (1)
*Note (1): Dust luminosities estimated from the 24 micrometer flux densities
*     using Takeuchi et al. (2005A&A...432..423T).

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

C  Loading file 'table2.dat'	! 15um-selected sample

C  Format for file interpretation

    1 format(
     +  I5,1X,F9.6,1X,F10.6,1X,F7.3,1X,F8.3,1X,F6.3,1X,F6.4,1X,F6.4,
     +  1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,239
        read(1,'(A71)')ar__
        read(ar__,1)
     +  COMBO17,RAdeg,DEdeg,z,S15um,e_S15um,S24um,e_S24um,logLdust
        if (idig(ar__(52:57)).EQ.0) S24um =  rNULL__
        if (idig(ar__(59:64)).EQ.0) e_S24um =  rNULL__
        if (idig(ar__(66:71)).EQ.0) logLdust =  rNULL__
c    ..............Just test output...........
        write(6,1)
     +  COMBO17,RAdeg,DEdeg,z,S15um,e_S15um,S24um,e_S24um,logLdust
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! z~1 Lyman break galaxy sample

C  Format for file interpretation

    2 format(
     +  I5,1X,F9.6,1X,F10.6,1X,F7.3,1X,F8.3,1X,F6.3,1X,F6.4,1X,F6.4,
     +  1X,F6.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,27
        read(1,'(A71)')ar__1
        read(ar__1,2)
     +  COMBO17_1,RAdeg_1,DEdeg_1,z_1,S15um_1,e_S15um_1,S24um_1,
     +  e_S24um_1,logLdust_1
        if (idig(ar__1(52:57)).EQ.0) S24um_1 =  rNULL__
        if (idig(ar__1(59:64)).EQ.0) e_S24um_1 =  rNULL__
        if (idig(ar__1(66:71)).EQ.0) logLdust_1 =  rNULL__
c    ..............Just test output...........
        write(6,2)
     +  COMBO17_1,RAdeg_1,DEdeg_1,z_1,S15um_1,e_S15um_1,S24um_1,
     +  e_S24um_1,logLdust_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C Locate position of first digit in string; or return 0
      integer function idig(c)
      character*(*) c
      character*1 c1
      integer lc,i
      lc=len(c)
      idig=0
      do i=1,lc
         if(c(i:i).ne.' ') go to 1
      end do
    1 if(i.gt.lc) return
      c1=c(i:i)
      if(c1.eq.'.'.or.c1.eq.'-'.or.c1.eq.'+') i=i+1
      if(i.gt.lc) return
      c1=c(i:i)
      if(c1.ge.'0'.and.c1.le.'9') idig=i
      return
      end