FORTRAN Generation
(/./ftp/cats/J/A_A/514/A11)

Conversion of standardized ReadMe file for file /./ftp/cats/J/A_A/514/A11 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-19
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/514/A11      SEDs in ADFS (AKARI Deep Field South)     (Malek+, 2010)
*================================================================================
*Star forming galaxies in the AKARI Deep Field South: identifications and SEDs.
*    Malek K., Pollo A., Takeuchi T.T., Bienias P., Shirahata M., Matsuura S.,
*    Kawada M.
*   <Astron. Astrophys. 514, A11 (2010)>
*   =2010A&A...514A..11M
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'sample.dat'	! List of the 545 nearest counterparts of the
                             ADF-S sources from the 6{sigma} catalog
                             (S_90um_>0.0301Jy) (tableA1)

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

C  J2000.0 position composed of: RAdeg DEdeg
      integer*4     Sample      ! [1/2] Sample (1)
      integer*4     ADFS        ! ADF-S identification number
      character*30  Name        ! Name of the nearest counterpart (2)
      real*8        RAdeg       ! (deg) ADF-S source right ascension (J2000.0)
*                                   in decimal degrees
      real*8        DEdeg       ! (deg) ADF-S source declination (J2000.0)
*                                   in decimal degrees
      real*8        RAcdeg      ! (deg) Counterpart right ascension (J2000.0)
*                                   in decimal degrees
      real*8        DEcdeg      ! (deg) Counterpart declination (J2000.0)
*                                   in decimal degrees
      real*4        Dist        ! (arcsec) Angular distance between the ADF-S source and
*                                   its counterpart
      real*8        z           ! ? Redshift of the counterpart, when available
      character*2   r_z         ! References for redshifts, in refs.dat file
*Note (1): Sample number is:
*      1 = nearest counterparts of the ADF-S sources from the 10{sigma}
*          catalog (S_90um_>0.0482Jy), No. 1 to 499
*      2 = nearest counterparts of the ADF-S sources from the fainter part of
*          the 6{sigma} catalog (0.0482Jy>S_90um_>0.0301Jy), No. 503 to 1000
*Note (2): In case of different naming conventions, we use the primary name
*     given by NED, when available and otherwise the primary name given by
*     SIMBAD.

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

C  Declarations for 'akari.dat'	! Flux densities of 545 ADF-S sources with
                             identified counterparts, measured by AKARI at
                             65, 90, 140 and 160um (tableA2)

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

      integer*4     ADFS_1      ! ADF-S identification number
      real*4        N60         ! (Jy) ?=- Flux density at 65um AKARI band
      real*4        e_N60       ! (Jy) ? rms uncertainty on N60
      real*4        WIDE_S      ! (Jy) ?=- Flux density at 90um AKARI band
      real*4        e_WIDE_S    ! (Jy) ? rms uncertainty on WIDE-S
      real*4        WIDE_L      ! (Jy) ?=- Flux density at 140um AKARI band
      real*4        e_WIDE_L    ! (Jy) ? rms uncertainty on WIDE-L
      real*4        N160        ! (Jy) ?=- Flux density at 160um AKARI band
      real*4        e_N160      ! (Jy) ? rms uncertainty on N160

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

C  Declarations for 'phot1.dat'	! Phototometric data for the ADF-S sources with
                             identified counterparts, collected from the
                             public databases (0.44, 0.47, 0.55, 0.64, 0.71um)
                             (tables A3, A7 and first part of table A8)

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

      integer*4     ADFS_2      ! ADF-S identification number
      real*4        S0_44       ! (Jy) ?=- Flux density at 0.44um band
      real*4        e_S0_44     ! (Jy) ? rms uncertainty on S0.44
      character*1   r_S0_44     ! [ABDE] Reference for S0.44, in refs.dat file
      real*4        S0_47       ! (Jy) ?=- Flux density at 0.47um band
      real*4        e_S0_47     ! (Jy) ? rms uncertainty on S0.47
      character*1   r_S0_47     ! [C] Reference for S0.47, in refs.dat file
      real*4        S0_55       ! (Jy) ?=- Flux density at 0.55um band
      real*4        e_S0_55     ! (Jy) ? rms uncertainty on S0.55
      character*1   r_S0_55     ! [BD] Reference for S0.55, in refs.dat file
      real*4        S0_64       ! (Jy) ?=- Flux density at 0.64um band
      real*4        e_S0_64     ! (Jy) ? rms uncertainty on S0.64
      character*1   r_S0_64     ! [ADE] Reference for S0.64, in refs.dat file
      real*4        S0_71       ! (Jy) ?=- Flux density at 0.71um band
      real*4        e_S0_71     ! (Jy) ? rms uncertainty on S0.71
      character*1   r_S0_71     ! [DF] Reference for S0.71, in refs.dat file

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

C  Declarations for 'phot2.dat'	! Phototometric data for the ADF-S sources with
                             identified counterparts, collected from the
                             public databases (0.79, 1.25, 1.65, 2.22, 12, 25,
                             60 and 100um, and 35.69cm) 
                             (tables A4 & A5 and last part of table A8)

      integer*4 nr__3
      parameter (nr__3=297)	! Number of records
      character*177 ar__3  	! Full-size record

      integer*4     ADFS_3      ! ADF-S identification number
      real*4        S0_79       ! (Jy) ?=- Flux density at 0.79um band
      real*4        e_S0_79     ! (Jy) ? rms uncertainty on S0.79
      character*1   r_S0_79     ! [GJ] Reference for S0.79, in refs.dat file
      real*4        S1_25       ! (Jy) ?=- Flux density at 1.25um band
      real*4        e_S1_25     ! (Jy) ? rms uncertainty on S1.25
      character*1   r_S1_25     ! [DH] Reference for S1.25, in refs.dat file
      real*4        S1_65       ! (Jy) ?=- Flux density at 1.65um band
      real*4        e_S1_65     ! (Jy) ? rms uncertainty on S1.65
      character*1   r_S1_65     ! [DH] Reference for S1.65, in refs.dat file
      real*4        S2_22       ! (Jy) ?=- Flux density at 2.22um band
      real*4        e_S2_22     ! (Jy) ? rms uncertainty on S2.22
      character*1   r_S2_22     ! [DH] Reference for S2.22, in refs.dat file
      character*1   l_S12       ! Limit flag on S12
      real*4        S12         ! (Jy) ?=- Flux density at 12um band
      real*4        e_S12       ! (Jy) ? rms uncertainty on S12
      character*1   r_S12       ! [I] Reference for S12, in refs.dat file
      real*4        S25         ! (Jy) ?=- Flux density at 25um band
      real*4        e_S25       ! (Jy) ? rms uncertainty on S25
      character*1   r_S25       ! [I] Reference for S25, in refs.dat file
      real*4        S60         ! (Jy) ?=- Flux density at 60um band
      real*4        e_S60       ! (Jy) ? rms uncertainty on S60
      character*1   r_S60       ! [I] Reference for S60um, in refs.dat file
      character*1   l_S100      ! Limit flag on S12.0
      real*4        S100        ! (Jy) ?=- Flux density at 100um band
      real*4        e_S100      ! (Jy) ? rms uncertainty on S100
      character*1   r_S100      ! [I] Reference for S100um, in refs.dat file
      real*4        S35_69      ! (Jy) ?=- Flux density at 35.69cm (843MHz) band
      real*4        e_S35_69    ! (Jy) ? rms uncertainty on S35.69
      character*1   r_S35_69    ! [K] Reference for S35.69, in refs.dat file

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

C  Declarations for 'phot3.dat'	! Phototometric data for the ADF-S sources with
                             identified counterparts, collected from public
                             databases for other wavelengths (tableA6 )

      integer*4 nr__4
      parameter (nr__4=26)	! Number of records
      character*42 ar__4  	! Full-size record

      integer*4     ADFS_4      ! ADF-S identification number
      real*4        lambda      ! (um) Wavelength
      real*4        S           ! (Jy) Measured flux density at lambda
      real*4        e_S         ! (Jy) ? rms uncertainty on S
      character*9   Band        ! Instrument or filter name
      character*1   r_Band      ! [BJLMNOP] Reference, in refs.dat file

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

C  Declarations for 'refs.dat'	! References

      integer*4 nr__5
      parameter (nr__5=30)	! Number of records
      character*93 ar__5  	! Full-size record

      character*2   Ref         ! Reference code
      character*19  BibCode     ! BibCode
      character*35  Aut         ! Author's name
      character*34  Com         ! Comments

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

C  Loading file 'sample.dat'	! List of the 545 nearest counterparts of the
*                             ADF-S sources from the 6{sigma} catalog
*                             (S_90um_>0.0301Jy) (tableA1)

C  Format for file interpretation

    1 format(
     +  I1,1X,I4,1X,A30,1X,F8.5,1X,F9.5,1X,F8.5,1X,F9.5,1X,F6.3,1X,
     +  F8.6,1X,A2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'sample.dat')
      write(6,*) '....Loading file: sample.dat'
      do i__=1,545
        read(1,'(A94)')ar__
        read(ar__,1)
     +  Sample,ADFS,Name,RAdeg,DEdeg,RAcdeg,DEcdeg,Dist,z,r_z
        if(ar__(84:91) .EQ. '') z = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Sample,ADFS,Name,RAdeg,DEdeg,RAcdeg,DEcdeg,Dist,z,r_z
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'akari.dat'	! Flux densities of 545 ADF-S sources with
*                             identified counterparts, measured by AKARI at
*                             65, 90, 140 and 160um (tableA2)

C  Format for file interpretation

    2 format(
     +  I4,1X,E8.3,1X,E8.3,1X,E8.3,1X,E8.3,1X,E8.3,1X,E8.3,1X,E8.3,1X,
     +  E8.3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'akari.dat')
      write(6,*) '....Loading file: akari.dat'
      do i__=1,545
        read(1,'(A76)')ar__1
        read(ar__1,2)
     +  ADFS_1,N60,e_N60,WIDE_S,e_WIDE_S,WIDE_L,e_WIDE_L,N160,e_N160
        if (idig(ar__1(6:13)).EQ.0) N60 =  rNULL__
        if(ar__1(15:22) .EQ. '') e_N60 = rNULL__
        if (idig(ar__1(24:31)).EQ.0) WIDE_S =  rNULL__
        if(ar__1(33:40) .EQ. '') e_WIDE_S = rNULL__
        if (idig(ar__1(42:49)).EQ.0) WIDE_L =  rNULL__
        if(ar__1(51:58) .EQ. '') e_WIDE_L = rNULL__
        if (idig(ar__1(60:67)).EQ.0) N160 =  rNULL__
        if(ar__1(69:76) .EQ. '') e_N160 = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  ADFS_1,N60,e_N60,WIDE_S,e_WIDE_S,WIDE_L,e_WIDE_L,N160,e_N160
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'phot1.dat'	! Phototometric data for the ADF-S sources with
*                             identified counterparts, collected from the
*                             public databases (0.44, 0.47, 0.55, 0.64, 0.71um)
*                             (tables A3, A7 and first part of table A8)

C  Format for file interpretation

    3 format(
     +  I4,1X,E8.3,1X,E8.3,A1,1X,E8.3,1X,E8.3,A1,1X,E8.3,1X,E8.3,A1,
     +  1X,E8.3,1X,E8.3,A1,1X,E8.3,1X,E8.3,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'phot1.dat')
      write(6,*) '....Loading file: phot1.dat'
      do i__=1,518
        read(1,'(A99)')ar__2
        read(ar__2,3)
     +  ADFS_2,S0_44,e_S0_44,r_S0_44,S0_47,e_S0_47,r_S0_47,S0_55,
     +  e_S0_55,r_S0_55,S0_64,e_S0_64,r_S0_64,S0_71,e_S0_71,r_S0_71
        if (idig(ar__2(6:13)).EQ.0) S0_44 =  rNULL__
        if(ar__2(15:22) .EQ. '') e_S0_44 = rNULL__
        if (idig(ar__2(25:32)).EQ.0) S0_47 =  rNULL__
        if(ar__2(34:41) .EQ. '') e_S0_47 = rNULL__
        if (idig(ar__2(44:51)).EQ.0) S0_55 =  rNULL__
        if(ar__2(53:60) .EQ. '') e_S0_55 = rNULL__
        if (idig(ar__2(63:70)).EQ.0) S0_64 =  rNULL__
        if(ar__2(72:79) .EQ. '') e_S0_64 = rNULL__
        if (idig(ar__2(82:89)).EQ.0) S0_71 =  rNULL__
        if(ar__2(91:98) .EQ. '') e_S0_71 = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  ADFS_2,S0_44,e_S0_44,r_S0_44,S0_47,e_S0_47,r_S0_47,S0_55,
     +  e_S0_55,r_S0_55,S0_64,e_S0_64,r_S0_64,S0_71,e_S0_71,r_S0_71
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'phot2.dat'	! Phototometric data for the ADF-S sources with
*                             identified counterparts, collected from the
*                             public databases (0.79, 1.25, 1.65, 2.22, 12, 25,
*                             60 and 100um, and 35.69cm) 
*                             (tables A4 & A5 and last part of table A8)

C  Format for file interpretation

    4 format(
     +  I4,1X,E8.3,1X,E8.3,A1,1X,E8.3,1X,E8.3,A1,1X,E8.3,1X,E8.3,A1,
     +  1X,E8.3,1X,E8.3,A1,1X,A1,E8.3,1X,E8.3,A1,1X,E8.3,1X,E8.3,A1,
     +  1X,E8.3,1X,E8.3,A1,1X,A1,E8.3,1X,E8.3,A1,1X,E8.3,1X,E8.3,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'phot2.dat')
      write(6,*) '....Loading file: phot2.dat'
      do i__=1,297
        read(1,'(A177)')ar__3
        read(ar__3,4)
     +  ADFS_3,S0_79,e_S0_79,r_S0_79,S1_25,e_S1_25,r_S1_25,S1_65,
     +  e_S1_65,r_S1_65,S2_22,e_S2_22,r_S2_22,l_S12,S12,e_S12,r_S12,
     +  S25,e_S25,r_S25,S60,e_S60,r_S60,l_S100,S100,e_S100,r_S100,
     +  S35_69,e_S35_69,r_S35_69
        if (idig(ar__3(6:13)).EQ.0) S0_79 =  rNULL__
        if(ar__3(15:22) .EQ. '') e_S0_79 = rNULL__
        if (idig(ar__3(25:32)).EQ.0) S1_25 =  rNULL__
        if(ar__3(34:41) .EQ. '') e_S1_25 = rNULL__
        if (idig(ar__3(44:51)).EQ.0) S1_65 =  rNULL__
        if(ar__3(53:60) .EQ. '') e_S1_65 = rNULL__
        if (idig(ar__3(63:70)).EQ.0) S2_22 =  rNULL__
        if(ar__3(72:79) .EQ. '') e_S2_22 = rNULL__
        if (idig(ar__3(83:90)).EQ.0) S12 =  rNULL__
        if(ar__3(92:99) .EQ. '') e_S12 = rNULL__
        if (idig(ar__3(102:109)).EQ.0) S25 =  rNULL__
        if(ar__3(111:118) .EQ. '') e_S25 = rNULL__
        if (idig(ar__3(121:128)).EQ.0) S60 =  rNULL__
        if(ar__3(130:137) .EQ. '') e_S60 = rNULL__
        if (idig(ar__3(141:148)).EQ.0) S100 =  rNULL__
        if(ar__3(150:157) .EQ. '') e_S100 = rNULL__
        if (idig(ar__3(160:167)).EQ.0) S35_69 =  rNULL__
        if(ar__3(169:176) .EQ. '') e_S35_69 = rNULL__
c    ..............Just test output...........
        write(6,4)
     +  ADFS_3,S0_79,e_S0_79,r_S0_79,S1_25,e_S1_25,r_S1_25,S1_65,
     +  e_S1_65,r_S1_65,S2_22,e_S2_22,r_S2_22,l_S12,S12,e_S12,r_S12,
     +  S25,e_S25,r_S25,S60,e_S60,r_S60,l_S100,S100,e_S100,r_S100,
     +  S35_69,e_S35_69,r_S35_69
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'phot3.dat'	! Phototometric data for the ADF-S sources with
*                             identified counterparts, collected from public
*                             databases for other wavelengths (tableA6 )

C  Format for file interpretation

    5 format(I4,1X,F6.2,1X,E8.3,1X,E8.3,2X,A9,1X,A1)

C  Effective file loading

      open(unit=1,status='old',file=
     +'phot3.dat')
      write(6,*) '....Loading file: phot3.dat'
      do i__=1,26
        read(1,'(A42)')ar__4
        read(ar__4,5)ADFS_4,lambda,S,e_S,Band,r_Band
        if(ar__4(22:29) .EQ. '') e_S = rNULL__
c    ..............Just test output...........
        write(6,5)ADFS_4,lambda,S,e_S,Band,r_Band
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'refs.dat'	! References

C  Format for file interpretation

    6 format(A2,1X,A19,1X,A35,1X,A34)

C  Effective file loading

      open(unit=1,status='old',file=
     +'refs.dat')
      write(6,*) '....Loading file: refs.dat'
      do i__=1,30
        read(1,'(A93)')ar__5
        read(ar__5,6)Ref,BibCode,Aut,Com
c    ..............Just test output...........
        write(6,6)Ref,BibCode,Aut,Com
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