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 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-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     (nr__) ! [1/2] Sample (1)
      integer*4     ADFS       (nr__) ! ADF-S identification number
      character*30  Name       (nr__) ! Name of the nearest counterpart (2)
      real*8        RAdeg      (nr__) ! (deg) ADF-S source right ascension (J2000.0)
*                                   in decimal degrees
      real*8        DEdeg      (nr__) ! (deg) ADF-S source declination (J2000.0)
*                                   in decimal degrees
      real*8        RAcdeg     (nr__) ! (deg) Counterpart right ascension (J2000.0)
*                                   in decimal degrees
      real*8        DEcdeg     (nr__) ! (deg) Counterpart declination (J2000.0)
*                                   in decimal degrees
      real*4        Dist       (nr__) ! (arcsec) Angular distance between the ADF-S source and
*                                   its counterpart
      real*8        z          (nr__) ! ? Redshift of the counterpart, when available
      character*2   r_z        (nr__) ! 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     (nr__1) ! ADF-S identification number
      real*4        N60        (nr__1) ! (Jy) ?=- Flux density at 65um AKARI band
      real*4        e_N60      (nr__1) ! (Jy) ? rms uncertainty on N60
      real*4        WIDE_S     (nr__1) ! (Jy) ?=- Flux density at 90um AKARI band
      real*4        e_WIDE_S   (nr__1) ! (Jy) ? rms uncertainty on WIDE-S
      real*4        WIDE_L     (nr__1) ! (Jy) ?=- Flux density at 140um AKARI band
      real*4        e_WIDE_L   (nr__1) ! (Jy) ? rms uncertainty on WIDE-L
      real*4        N160       (nr__1) ! (Jy) ?=- Flux density at 160um AKARI band
      real*4        e_N160     (nr__1) ! (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     (nr__2) ! ADF-S identification number
      real*4        S0_44      (nr__2) ! (Jy) ?=- Flux density at 0.44um band
      real*4        e_S0_44    (nr__2) ! (Jy) ? rms uncertainty on S0.44
      character*1   r_S0_44    (nr__2) ! [ABDE] Reference for S0.44, in refs.dat file
      real*4        S0_47      (nr__2) ! (Jy) ?=- Flux density at 0.47um band
      real*4        e_S0_47    (nr__2) ! (Jy) ? rms uncertainty on S0.47
      character*1   r_S0_47    (nr__2) ! [C] Reference for S0.47, in refs.dat file
      real*4        S0_55      (nr__2) ! (Jy) ?=- Flux density at 0.55um band
      real*4        e_S0_55    (nr__2) ! (Jy) ? rms uncertainty on S0.55
      character*1   r_S0_55    (nr__2) ! [BD] Reference for S0.55, in refs.dat file
      real*4        S0_64      (nr__2) ! (Jy) ?=- Flux density at 0.64um band
      real*4        e_S0_64    (nr__2) ! (Jy) ? rms uncertainty on S0.64
      character*1   r_S0_64    (nr__2) ! [ADE] Reference for S0.64, in refs.dat file
      real*4        S0_71      (nr__2) ! (Jy) ?=- Flux density at 0.71um band
      real*4        e_S0_71    (nr__2) ! (Jy) ? rms uncertainty on S0.71
      character*1   r_S0_71    (nr__2) ! [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     (nr__3) ! ADF-S identification number
      real*4        S0_79      (nr__3) ! (Jy) ?=- Flux density at 0.79um band
      real*4        e_S0_79    (nr__3) ! (Jy) ? rms uncertainty on S0.79
      character*1   r_S0_79    (nr__3) ! [GJ] Reference for S0.79, in refs.dat file
      real*4        S1_25      (nr__3) ! (Jy) ?=- Flux density at 1.25um band
      real*4        e_S1_25    (nr__3) ! (Jy) ? rms uncertainty on S1.25
      character*1   r_S1_25    (nr__3) ! [DH] Reference for S1.25, in refs.dat file
      real*4        S1_65      (nr__3) ! (Jy) ?=- Flux density at 1.65um band
      real*4        e_S1_65    (nr__3) ! (Jy) ? rms uncertainty on S1.65
      character*1   r_S1_65    (nr__3) ! [DH] Reference for S1.65, in refs.dat file
      real*4        S2_22      (nr__3) ! (Jy) ?=- Flux density at 2.22um band
      real*4        e_S2_22    (nr__3) ! (Jy) ? rms uncertainty on S2.22
      character*1   r_S2_22    (nr__3) ! [DH] Reference for S2.22, in refs.dat file
      character*1   l_S12      (nr__3) ! Limit flag on S12
      real*4        S12        (nr__3) ! (Jy) ?=- Flux density at 12um band
      real*4        e_S12      (nr__3) ! (Jy) ? rms uncertainty on S12
      character*1   r_S12      (nr__3) ! [I] Reference for S12, in refs.dat file
      real*4        S25        (nr__3) ! (Jy) ?=- Flux density at 25um band
      real*4        e_S25      (nr__3) ! (Jy) ? rms uncertainty on S25
      character*1   r_S25      (nr__3) ! [I] Reference for S25, in refs.dat file
      real*4        S60        (nr__3) ! (Jy) ?=- Flux density at 60um band
      real*4        e_S60      (nr__3) ! (Jy) ? rms uncertainty on S60
      character*1   r_S60      (nr__3) ! [I] Reference for S60um, in refs.dat file
      character*1   l_S100     (nr__3) ! Limit flag on S12.0
      real*4        S100       (nr__3) ! (Jy) ?=- Flux density at 100um band
      real*4        e_S100     (nr__3) ! (Jy) ? rms uncertainty on S100
      character*1   r_S100     (nr__3) ! [I] Reference for S100um, in refs.dat file
      real*4        S35_69     (nr__3) ! (Jy) ?=- Flux density at 35.69cm (843MHz) band
      real*4        e_S35_69   (nr__3) ! (Jy) ? rms uncertainty on S35.69
      character*1   r_S35_69   (nr__3) ! [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     (nr__4) ! ADF-S identification number
      real*4        lambda     (nr__4) ! (um) Wavelength
      real*4        S          (nr__4) ! (Jy) Measured flux density at lambda
      real*4        e_S        (nr__4) ! (Jy) ? rms uncertainty on S
      character*9   Band       (nr__4) ! Instrument or filter name
      character*1   r_Band     (nr__4) ! [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        (nr__5) ! Reference code
      character*19  BibCode    (nr__5) ! BibCode
      character*35  Aut        (nr__5) ! Author's name
      character*34  Com        (nr__5) ! 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(i__),ADFS(i__),Name(i__),RAdeg(i__),DEdeg(i__),
     +  RAcdeg(i__),DEcdeg(i__),Dist(i__),z(i__),r_z(i__)
        if(ar__(84:91) .EQ. '') z(i__) = rNULL__
c    ..............Just test output...........
        write(6,1)
     +  Sample(i__),ADFS(i__),Name(i__),RAdeg(i__),DEdeg(i__),
     +  RAcdeg(i__),DEcdeg(i__),Dist(i__),z(i__),r_z(i__)
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(i__),N60(i__),e_N60(i__),WIDE_S(i__),e_WIDE_S(i__),
     +  WIDE_L(i__),e_WIDE_L(i__),N160(i__),e_N160(i__)
        if (idig(ar__1(6:13)).EQ.0) N60(i__) =  rNULL__
        if(ar__1(15:22) .EQ. '') e_N60(i__) = rNULL__
        if (idig(ar__1(24:31)).EQ.0) WIDE_S(i__) =  rNULL__
        if(ar__1(33:40) .EQ. '') e_WIDE_S(i__) = rNULL__
        if (idig(ar__1(42:49)).EQ.0) WIDE_L(i__) =  rNULL__
        if(ar__1(51:58) .EQ. '') e_WIDE_L(i__) = rNULL__
        if (idig(ar__1(60:67)).EQ.0) N160(i__) =  rNULL__
        if(ar__1(69:76) .EQ. '') e_N160(i__) = rNULL__
c    ..............Just test output...........
        write(6,2)
     +  ADFS_1(i__),N60(i__),e_N60(i__),WIDE_S(i__),e_WIDE_S(i__),
     +  WIDE_L(i__),e_WIDE_L(i__),N160(i__),e_N160(i__)
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(i__),S0_44(i__),e_S0_44(i__),r_S0_44(i__),S0_47(i__),
     +  e_S0_47(i__),r_S0_47(i__),S0_55(i__),e_S0_55(i__),
     +  r_S0_55(i__),S0_64(i__),e_S0_64(i__),r_S0_64(i__),S0_71(i__),
     +  e_S0_71(i__),r_S0_71(i__)
        if (idig(ar__2(6:13)).EQ.0) S0_44(i__) =  rNULL__
        if(ar__2(15:22) .EQ. '') e_S0_44(i__) = rNULL__
        if (idig(ar__2(25:32)).EQ.0) S0_47(i__) =  rNULL__
        if(ar__2(34:41) .EQ. '') e_S0_47(i__) = rNULL__
        if (idig(ar__2(44:51)).EQ.0) S0_55(i__) =  rNULL__
        if(ar__2(53:60) .EQ. '') e_S0_55(i__) = rNULL__
        if (idig(ar__2(63:70)).EQ.0) S0_64(i__) =  rNULL__
        if(ar__2(72:79) .EQ. '') e_S0_64(i__) = rNULL__
        if (idig(ar__2(82:89)).EQ.0) S0_71(i__) =  rNULL__
        if(ar__2(91:98) .EQ. '') e_S0_71(i__) = rNULL__
c    ..............Just test output...........
        write(6,3)
     +  ADFS_2(i__),S0_44(i__),e_S0_44(i__),r_S0_44(i__),S0_47(i__),
     +  e_S0_47(i__),r_S0_47(i__),S0_55(i__),e_S0_55(i__),
     +  r_S0_55(i__),S0_64(i__),e_S0_64(i__),r_S0_64(i__),S0_71(i__),
     +  e_S0_71(i__),r_S0_71(i__)
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(i__),S0_79(i__),e_S0_79(i__),r_S0_79(i__),S1_25(i__),
     +  e_S1_25(i__),r_S1_25(i__),S1_65(i__),e_S1_65(i__),
     +  r_S1_65(i__),S2_22(i__),e_S2_22(i__),r_S2_22(i__),l_S12(i__),
     +  S12(i__),e_S12(i__),r_S12(i__),S25(i__),e_S25(i__),r_S25(i__),
     +  S60(i__),e_S60(i__),r_S60(i__),l_S100(i__),S100(i__),
     +  e_S100(i__),r_S100(i__),S35_69(i__),e_S35_69(i__),
     +  r_S35_69(i__)
        if (idig(ar__3(6:13)).EQ.0) S0_79(i__) =  rNULL__
        if(ar__3(15:22) .EQ. '') e_S0_79(i__) = rNULL__
        if (idig(ar__3(25:32)).EQ.0) S1_25(i__) =  rNULL__
        if(ar__3(34:41) .EQ. '') e_S1_25(i__) = rNULL__
        if (idig(ar__3(44:51)).EQ.0) S1_65(i__) =  rNULL__
        if(ar__3(53:60) .EQ. '') e_S1_65(i__) = rNULL__
        if (idig(ar__3(63:70)).EQ.0) S2_22(i__) =  rNULL__
        if(ar__3(72:79) .EQ. '') e_S2_22(i__) = rNULL__
        if (idig(ar__3(83:90)).EQ.0) S12(i__) =  rNULL__
        if(ar__3(92:99) .EQ. '') e_S12(i__) = rNULL__
        if (idig(ar__3(102:109)).EQ.0) S25(i__) =  rNULL__
        if(ar__3(111:118) .EQ. '') e_S25(i__) = rNULL__
        if (idig(ar__3(121:128)).EQ.0) S60(i__) =  rNULL__
        if(ar__3(130:137) .EQ. '') e_S60(i__) = rNULL__
        if (idig(ar__3(141:148)).EQ.0) S100(i__) =  rNULL__
        if(ar__3(150:157) .EQ. '') e_S100(i__) = rNULL__
        if (idig(ar__3(160:167)).EQ.0) S35_69(i__) =  rNULL__
        if(ar__3(169:176) .EQ. '') e_S35_69(i__) = rNULL__
c    ..............Just test output...........
        write(6,4)
     +  ADFS_3(i__),S0_79(i__),e_S0_79(i__),r_S0_79(i__),S1_25(i__),
     +  e_S1_25(i__),r_S1_25(i__),S1_65(i__),e_S1_65(i__),
     +  r_S1_65(i__),S2_22(i__),e_S2_22(i__),r_S2_22(i__),l_S12(i__),
     +  S12(i__),e_S12(i__),r_S12(i__),S25(i__),e_S25(i__),r_S25(i__),
     +  S60(i__),e_S60(i__),r_S60(i__),l_S100(i__),S100(i__),
     +  e_S100(i__),r_S100(i__),S35_69(i__),e_S35_69(i__),
     +  r_S35_69(i__)
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(i__),lambda(i__),S(i__),e_S(i__),Band(i__),r_Band(i__)
        if(ar__4(22:29) .EQ. '') e_S(i__) = rNULL__
c    ..............Just test output...........
        write(6,5)
     +  ADFS_4(i__),lambda(i__),S(i__),e_S(i__),Band(i__),r_Band(i__)
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(i__),BibCode(i__),Aut(i__),Com(i__)
c    ..............Just test output...........
        write(6,6)Ref(i__),BibCode(i__),Aut(i__),Com(i__)
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