FORTRAN Generation
(/./ftp/cats/J/ApJ/889/80)

Conversion of standardized ReadMe file for file /./ftp/cats/J/ApJ/889/80 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 2026-Oct-10
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/889/80 STUDIES. III. SCUBA-2 450um gal. with MIPS & VLA obs. (Lim+, 2020)
*================================================================================
*SCUBA-2 Ultra Deep Imaging EAO Survey (STUDIES).
*III. Multiwavelength properties, luminosity functions, and preliminary source
*catalog of 450 {mu}m selected galaxies.
*    Lim C.-F., Wang W.-H., Smail I., Scott D., Chen C.-C., Chang Y.-Y.,
*    Simpson J.M., Toba Y., Shu X., Clements D., Greenslade J., Ao Y., Babul A.,
*    Birkin J., Chapman S.C., Cheng T.-A., Cho B.S., Dannerbauer H.,
*    Dudzeviciute U., Dunlop J., Gao Y., Goto T., Ho L.C., Hsu L.-T.,
*    Hwang H.S., Jeong W.-S., Koprowski M., Lee C.-H., Lin M.-Y., Lin W.-C.,
*    Michalowski M.J., Parsons H., Sawicki M., Shirley R., Shim H., Urquhart S.,
*    Wang J., Wang T.
*   <Astrophys. J., 889, 80-80 (2020)>
*   =2020ApJ...889...80L    (SIMBAD/NED BibCode)
C=============================================================================

C  Internal variables

      integer*4 i__

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

C  Declarations for 'table2.dat'	! Derived properties of VLA 3-GHz
                               identified 450-um sources

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

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

      integer*4     RAh         ! (h) [9/10] 450um Hour of Right Ascension (J2000)
*                                  (G1)
      integer*4     RAm         ! (min) 450um Minute of Right Ascension (J2000) (G1)
      real*4        RAs         ! (s) 450um Second of Right Ascension (J2000) (G1)
      character*1   DE_         ! [+] 450um Sign of Declination (J2000) (G1)
      integer*4     DEd         ! (deg) [2] 450um Degree of Declination (J2000) (G1)
      integer*4     DEm         ! (arcmin) [12/33] 450um Arcminute of Declination (J2000)
*                                  (G1)
      real*4        DEs         ! (arcsec) 450um Arcsecond of Declination (J2000) (G1)
      integer*4     RACh        ! (h) Hour of Right Ascension (J2000) (1)
      integer*4     RACm        ! (min) Minute of Right Ascension (J2000) (1)
      real*4        RACs        ! (s) Second of Right Ascension (J2000) (1)
      character*1   DEC_        ! Sign of Declination (J2000) (1)
      integer*4     DECd        ! (deg) Degree of Declination (J2000) (1)
      integer*4     DECm        ! (arcmin) Arcminute of Declination (J2000) (1)
      real*4        DECs        ! (arcsec) Arcsecond of Declination (J2000) (1)
      real*4        S450        ! (mJy) [1.9/42.3] The 450 micron flux density (G2)
      real*4        e_S450      ! (mJy) [0.6/8.1] Uncertainty in S450
      real*4        S850        ! (mJy) [1.4/14.3]? The 850 micron flux density (G2)
      real*4        e_S850      ! (mJy) [0.1/1.6]? Uncertainty in S850
      real*4        z           ! [0.1/4.8]? Public redshift
      real*4        e_z         ! [0/1.9]? Uncertainty in z
      integer*4     f_z         ! [0/3] Flag on z (2)
      real*4        logM_       ! ([Msun]) [7.7/11.6]? Log stellar mass
      real*4        e_logM_     ! ([Msun]) [0.2/0.4]? Uncertainty in logM* (3)
      real*4        logLUV      ! ([Lsun]) [7.5/12.5]? Log GALEX UV luminosity (G3)
      real*4        e_logLUV    ! ([Lsun]) [0/0.5]? Uncertainty in logLUV
      real*4        logLIR      ! ([Lsun]) [10.2/13.4] Log IR luminosity
      real*4        e_logLIR    ! ([Lsun]) [0.03/0.6] Uncertainty in logLIR (3)
      real*4        Td          ! (K) [17/66]? Dust temperature
      real*4        e_Td        ! (K) [0.09/16]? Uncertainty in Td
      real*4        betaUV      ! [-11.3/11.6]? Dust UV emissivity spectral
*                                  index
      real*4        e_betaUV    ! [0.2/4.4]? Uncertainty in betaUV
      character*3   flag        ! AGN flag (s) (4)
*Note (1): VLA 3-GHz image coordinates (Table 2) or MIPS 24-um image
*          coordinates (Table 3).
*Note (2): Flag as follows:
*    1 = spectroscopic redshift;
*    2 = photometric redshift;
*    3 = FIR redshift.
*Note (3): Derived from LE PHARE code (Arnouts+ 1999MNRAS.310..540A &
*          Ilbert+ 2006A&A...457..841I) by including the photometric errors in
*          each waveband but without including the redshift uncertainties.
*Note (4): AGN flag as follows:
*    1 = X-ray AGN;
*    2 = mid-infrared AGN;
*    3 = radio excess.

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

C  Declarations for 'table3.dat'	! Derived properties of MIPS 24-um
                               identified 450-um sources

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

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

      integer*4     RAh_1       ! (h) [9/10] 450um Hour of Right Ascension (J2000)
*                                  (G1)
      integer*4     RAm_1       ! (min) 450um Minute of Right Ascension (J2000) (G1)
      real*4        RAs_1       ! (s) 450um Second of Right Ascension (J2000) (G1)
      character*1   DE__1       ! [+] 450um Sign of Declination (J2000) (G1)
      integer*4     DEd_1       ! (deg) [2] 450um Degree of Declination (J2000) (G1)
      integer*4     DEm_1       ! (arcmin) [12/33] 450um Arcminute of Declination (J2000)
*                                  (G1)
      real*4        DEs_1       ! (arcsec) 450um Arcsecond of Declination (J2000) (G1)
      integer*4     RACh_1      ! (h) Hour of Right Ascension (J2000) (1)
      integer*4     RACm_1      ! (min) Minute of Right Ascension (J2000) (1)
      real*4        RACs_1      ! (s) Second of Right Ascension (J2000) (1)
      character*1   DEC__1      ! Sign of Declination (J2000) (1)
      integer*4     DECd_1      ! (deg) Degree of Declination (J2000) (1)
      integer*4     DECm_1      ! (arcmin) Arcminute of Declination (J2000) (1)
      real*4        DECs_1      ! (arcsec) Arcsecond of Declination (J2000) (1)
      real*4        S450_1      ! (mJy) [1.9/42.3] The 450 micron flux density (G2)
      real*4        e_S450_1    ! (mJy) [0.6/8.1] Uncertainty in S450
      real*4        S850_1      ! (mJy) [1.4/14.3]? The 850 micron flux density (G2)
      real*4        e_S850_1    ! (mJy) [0.1/1.6]? Uncertainty in S850
      real*4        z_1         ! [0.1/4.8]? Public redshift
      real*4        e_z_1       ! [0/1.9]? Uncertainty in z
      integer*4     f_z_1       ! [0/3] Flag on z (2)
      real*4        logM__1     ! ([Msun]) [7.7/11.6]? Log stellar mass
      real*4        e_logM__1   ! ([Msun]) [0.2/0.4]? Uncertainty in logM* (3)
      real*4        logLUV_1    ! ([Lsun]) [7.5/12.5]? Log GALEX UV luminosity (G3)
      real*4        e_logLUV_1  ! ([Lsun]) [0/0.5]? Uncertainty in logLUV
      real*4        logLIR_1    ! ([Lsun]) [10.2/13.4] Log IR luminosity
      real*4        e_logLIR_1  ! ([Lsun]) [0.03/0.6] Uncertainty in logLIR (3)
      real*4        Td_1        ! (K) [17/66]? Dust temperature
      real*4        e_Td_1      ! (K) [0.09/16]? Uncertainty in Td
      real*4        betaUV_1    ! [-11.3/11.6]? Dust UV emissivity spectral
*                                  index
      real*4        e_betaUV_1  ! [0.2/4.4]? Uncertainty in betaUV
      character*3   flag_1      ! AGN flag (s) (4)
*Note (1): VLA 3-GHz image coordinates (Table 2) or MIPS 24-um image
*          coordinates (Table 3).
*Note (2): Flag as follows:
*    1 = spectroscopic redshift;
*    2 = photometric redshift;
*    3 = FIR redshift.
*Note (3): Derived from LE PHARE code (Arnouts+ 1999MNRAS.310..540A &
*          Ilbert+ 2006A&A...457..841I) by including the photometric errors in
*          each waveband but without including the redshift uncertainties.
*Note (4): AGN flag as follows:
*    1 = X-ray AGN;
*    2 = mid-infrared AGN;
*    3 = radio excess.

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

C  Declarations for 'table4.dat'	! Multi-wavelength photometry for VLA 3-GHz
                               identified 450-um sources

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

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

      integer*4     RAh_2       ! (h) [9/10] 450um Hour of Right Ascension (J2000)
*                                 (G1)
      integer*4     RAm_2       ! (min) 450um Minute of Right Ascension (J2000) (G1)
      real*4        RAs_2       ! (s) 450um Second of Right Ascension (J2000) (G1)
      character*1   DE__2       ! [+] 450um Sign of Declination (J2000) (G1)
      integer*4     DEd_2       ! (deg) [2] 450um Degree of Declination (J2000) (G1)
      integer*4     DEm_2       ! (arcmin) [12/33] 450um Arcminute of Declination (J2000)
*                                 (G1)
      real*4        DEs_2       ! (arcsec) 450um Arcsecond of Declination (J2000) (G1)
      integer*4     RAOh        ! (h) ? Optical Hour of Right Ascension (J2000)
      integer*4     RAOm        ! (min) ? Optical Minute of Right Ascension (J2000)
      real*4        RAOs        ! (s) ? Optical Second of Right Ascension (J2000)
      character*1   DEO_        ! ? Optical Sign of Declination (J2000) (G1)
      integer*4     DEOd        ! (deg) ? Optical Degree of Declination (J2000)
      integer*4     DEOm        ! (arcmin) ? Optical Arcminute of Declination (J2000)
      real*4        DEOs        ! (arcsec) ? Optical Arcsecond of Declination (J2000)
      real*4        rmag        ! (mag) [19.19/26.9]? Apparent Subaru/Suprime-cam
*                                 r band magnitude (G3)
      real*4        e_rmag      ! (mag) [0/0.41]? Uncertainty in rmag
      real*4        Ksmag       ! (mag) [17.57/24.4]? Apparent VISTA/VIRCAM
*                                 K_s_ band magnitude (G3)
      real*4        e_Ksmag     ! (mag) [0/0.28]? Uncertainty in Ksmag
      real*4        S3_6        ! (mJy) [17.26/23.62]? The Spitzer/IRAC 3.6um flux
*                                 density (from Sanders+ 2007ApJS..172...86S)
      real*4        e_S3_6      ! (mJy) [0/0.06]? Uncertainty in S3.6
      real*4        S250        ! (mJy) [0.7/87] The Herschel/SPIRE 250um flux
*                                 density (G4)
      real*4        e_S250      ! (mJy) [0.7/3.8] Uncertainty in S250
      real*4        S450_2      ! (mJy) [1.98/42.3] The JCMT/SCUBA-2 450um flux
*                                 density (G2)
      real*4        e_S450_2    ! (mJy) [0.6/8.1] Uncertainty in S450
      real*4        S850_2      ! (mJy) [1.45/14.3]? The JCMT/SCUBA-2 850um flux
*                                 density (G2)
      real*4        e_S850_2    ! (mJy) [0.1/1.6]? Uncertainty in S850
      real*8        SC          ! (mJy) The VLA 3GHz (Table 4) or MISP 24um (Table 5)
*                                 flux density
      real*4        e_SC        ! (mJy) Uncertainty in SC

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

C  Declarations for 'table5.dat'	! Multi-wavelength photometry for MIPS 24-um
                               identified 450-um sources

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

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

      integer*4     RAh_3       ! (h) [9/10] 450um Hour of Right Ascension (J2000)
*                                 (G1)
      integer*4     RAm_3       ! (min) 450um Minute of Right Ascension (J2000) (G1)
      real*4        RAs_3       ! (s) 450um Second of Right Ascension (J2000) (G1)
      character*1   DE__3       ! [+] 450um Sign of Declination (J2000) (G1)
      integer*4     DEd_3       ! (deg) [2] 450um Degree of Declination (J2000) (G1)
      integer*4     DEm_3       ! (arcmin) [12/33] 450um Arcminute of Declination (J2000)
*                                 (G1)
      real*4        DEs_3       ! (arcsec) 450um Arcsecond of Declination (J2000) (G1)
      integer*4     RAOh_1      ! (h) ? Optical Hour of Right Ascension (J2000)
      integer*4     RAOm_1      ! (min) ? Optical Minute of Right Ascension (J2000)
      real*4        RAOs_1      ! (s) ? Optical Second of Right Ascension (J2000)
      character*1   DEO__1      ! ? Optical Sign of Declination (J2000) (G1)
      integer*4     DEOd_1      ! (deg) ? Optical Degree of Declination (J2000)
      integer*4     DEOm_1      ! (arcmin) ? Optical Arcminute of Declination (J2000)
      real*4        DEOs_1      ! (arcsec) ? Optical Arcsecond of Declination (J2000)
      real*4        rmag_1      ! (mag) [19.19/26.9]? Apparent Subaru/Suprime-cam
*                                 r band magnitude (G3)
      real*4        e_rmag_1    ! (mag) [0/0.41]? Uncertainty in rmag
      real*4        Ksmag_1     ! (mag) [17.57/24.4]? Apparent VISTA/VIRCAM
*                                 K_s_ band magnitude (G3)
      real*4        e_Ksmag_1   ! (mag) [0/0.28]? Uncertainty in Ksmag
      real*4        S3_6_1      ! (mJy) [17.26/23.62]? The Spitzer/IRAC 3.6um flux
*                                 density (from Sanders+ 2007ApJS..172...86S)
      real*4        e_S3_6_1    ! (mJy) [0/0.06]? Uncertainty in S3.6
      real*4        S250_1      ! (mJy) [0.7/87] The Herschel/SPIRE 250um flux
*                                 density (G4)
      real*4        e_S250_1    ! (mJy) [0.7/3.8] Uncertainty in S250
      real*4        S450_3      ! (mJy) [1.98/42.3] The JCMT/SCUBA-2 450um flux
*                                 density (G2)
      real*4        e_S450_3    ! (mJy) [0.6/8.1] Uncertainty in S450
      real*4        S850_3      ! (mJy) [1.45/14.3]? The JCMT/SCUBA-2 850um flux
*                                 density (G2)
      real*4        e_S850_3    ! (mJy) [0.1/1.6]? Uncertainty in S850
      real*8        SC_1        ! (mJy) The VLA 3GHz (Table 4) or MISP 24um (Table 5)
*                                 flux density
      real*4        e_SC_1      ! (mJy) Uncertainty in SC

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

C  Declarations for 'table6.dat'	! List of 450-um sources without VLA 3GHz and
                               MIPS 24um counterparts

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

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

      integer*4     RAh_4       ! (h) [10] Hour of Right Ascension (J2000)
      integer*4     RAm_4       ! (min) [0] Minute of Right Ascension (J2000)
      real*4        RAs_4       ! (s) Second of Right Ascension (J2000)
      character*1   DE__4       ! [+] 450um Sign of Declination (J2000) (G1)
      integer*4     DEd_4       ! (deg) [2] Degree of Declination (J2000)
      integer*4     DEm_4       ! (arcmin) [11/34] Arcminute of Declination (J2000)
      real*4        DEs_4       ! (arcsec) Arcsecond of Declination (J2000)
      real*4        S250_2      ! (mJy) [0.2/46] The Herschel/SPIRE 250um flux
*                                   density (G4)
      real*4        e_S250_2    ! (mJy) [0.4/3.1] Uncertainty in S250
      real*4        S450_4      ! (mJy) [2.16/51.2] The JCMT/SCUBA-2 450um flux
*                                   density (G2)
      real*4        e_S450_4    ! (mJy) [0.6/13.7] Uncertainty in S450
      real*4        S850_4      ! (mJy) [1.4/5]? The JCMT/SCUBA-2 850um flux
*                                   density (G2)
      real*4        e_S850_4    ! (mJy) [0.1/0.3]? Uncertainty in S850

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

C  Loading file 'table2.dat'	! Derived properties of VLA 3-GHz
*                               identified 450-um sources

C  Format for file interpretation

    1 format(
     +  I2,1X,I2,1X,F5.2,1X,A1,I1,1X,I2,1X,F5.2,1X,I2,1X,I2,1X,F5.2,
     +  1X,A1,I1,1X,I2,1X,F5.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,
     +  F4.2,1X,F4.2,1X,I1,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F4.2,1X,F5.2,1X,F5.2,1X,F6.2,1X,F4.2,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table2.dat')
      write(6,*) '....Loading file: table2.dat'
      do i__=1,134
        read(1,'(A142)')ar__
        read(ar__,1)
     +  RAh,RAm,RAs,DE_,DEd,DEm,DEs,RACh,RACm,RACs,DEC_,DECd,DECm,
     +  DECs,S450,e_S450,S850,e_S850,z,e_z,f_z,logM_,e_logM_,logLUV,
     +  e_logLUV,logLIR,e_logLIR,Td,e_Td,betaUV,e_betaUV,flag
        if(ar__(60:64) .EQ. '') S850 = rNULL__
        if(ar__(66:69) .EQ. '') e_S850 = rNULL__
        if(ar__(71:74) .EQ. '') z = rNULL__
        if(ar__(76:79) .EQ. '') e_z = rNULL__
        if(ar__(83:87) .EQ. '') logM_ = rNULL__
        if(ar__(89:92) .EQ. '') e_logM_ = rNULL__
        if(ar__(94:98) .EQ. '') logLUV = rNULL__
        if(ar__(100:103) .EQ. '') e_logLUV = rNULL__
        if(ar__(116:120) .EQ. '') Td = rNULL__
        if(ar__(122:126) .EQ. '') e_Td = rNULL__
        if(ar__(128:133) .EQ. '') betaUV = rNULL__
        if(ar__(135:138) .EQ. '') e_betaUV = rNULL__
        RAdeg = rNULL__
        DEdeg = rNULL__
c  Derive coordinates RAdeg and DEdeg from input data
c  (RAdeg and DEdeg are set to rNULL__ when unknown)
        if(RAh .GT. -180) RAdeg=RAh*15.
        if(RAm .GT. -180) RAdeg=RAdeg+RAm/4.
        if(RAs .GT. -180) RAdeg=RAdeg+RAs/240.
        if(DEd .GE. 0) DEdeg=DEd
        if(DEm .GE. 0) DEdeg=DEdeg+DEm/60.
        if(DEs .GE. 0) DEdeg=DEdeg+DEs/3600.
        if(DE_.EQ.'-'.AND.DEdeg.GE.0) DEdeg=-DEdeg
c    ..............Just test output...........
        write(6,1)
     +  RAh,RAm,RAs,DE_,DEd,DEm,DEs,RACh,RACm,RACs,DEC_,DECd,DECm,
     +  DECs,S450,e_S450,S850,e_S850,z,e_z,f_z,logM_,e_logM_,logLUV,
     +  e_logLUV,logLIR,e_logLIR,Td,e_Td,betaUV,e_betaUV,flag
        write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table3.dat'	! Derived properties of MIPS 24-um
*                               identified 450-um sources

C  Format for file interpretation

    2 format(
     +  I2,1X,I2,1X,F5.2,1X,A1,I1,1X,I2,1X,F5.2,1X,I2,1X,I2,1X,F5.2,
     +  1X,A1,I1,1X,I2,1X,F5.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,
     +  F4.2,1X,F4.2,1X,I1,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,
     +  F4.2,1X,F5.2,1X,F5.2,1X,F6.2,1X,F4.2,1X,A3)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table3.dat')
      write(6,*) '....Loading file: table3.dat'
      do i__=1,76
        read(1,'(A142)')ar__1
        read(ar__1,2)
     +  RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,RACh_1,RACm_1,
     +  RACs_1,DEC__1,DECd_1,DECm_1,DECs_1,S450_1,e_S450_1,S850_1,
     +  e_S850_1,z_1,e_z_1,f_z_1,logM__1,e_logM__1,logLUV_1,
     +  e_logLUV_1,logLIR_1,e_logLIR_1,Td_1,e_Td_1,betaUV_1,
     +  e_betaUV_1,flag_1
        if(ar__1(60:64) .EQ. '') S850_1 = rNULL__
        if(ar__1(66:69) .EQ. '') e_S850_1 = rNULL__
        if(ar__1(71:74) .EQ. '') z_1 = rNULL__
        if(ar__1(76:79) .EQ. '') e_z_1 = rNULL__
        if(ar__1(83:87) .EQ. '') logM__1 = rNULL__
        if(ar__1(89:92) .EQ. '') e_logM__1 = rNULL__
        if(ar__1(94:98) .EQ. '') logLUV_1 = rNULL__
        if(ar__1(100:103) .EQ. '') e_logLUV_1 = rNULL__
        if(ar__1(116:120) .EQ. '') Td_1 = rNULL__
        if(ar__1(122:126) .EQ. '') e_Td_1 = rNULL__
        if(ar__1(128:133) .EQ. '') betaUV_1 = rNULL__
        if(ar__1(135:138) .EQ. '') e_betaUV_1 = rNULL__
        RAdeg_1 = rNULL__
        DEdeg_1 = 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 .GT. -180) RAdeg_1=RAh_1*15.
        if(RAm_1 .GT. -180) RAdeg_1=RAdeg_1+RAm_1/4.
        if(RAs_1 .GT. -180) RAdeg_1=RAdeg_1+RAs_1/240.
        if(DEd_1 .GE. 0) DEdeg_1=DEd_1
        if(DEm_1 .GE. 0) DEdeg_1=DEdeg_1+DEm_1/60.
        if(DEs_1 .GE. 0) DEdeg_1=DEdeg_1+DEs_1/3600.
        if(DE__1.EQ.'-'.AND.DEdeg_1.GE.0) DEdeg_1=-DEdeg_1
c    ..............Just test output...........
        write(6,2)
     +  RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,DEs_1,RACh_1,RACm_1,
     +  RACs_1,DEC__1,DECd_1,DECm_1,DECs_1,S450_1,e_S450_1,S850_1,
     +  e_S850_1,z_1,e_z_1,f_z_1,logM__1,e_logM__1,logLUV_1,
     +  e_logLUV_1,logLIR_1,e_logLIR_1,Td_1,e_Td_1,betaUV_1,
     +  e_betaUV_1,flag_1
        write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table4.dat'	! Multi-wavelength photometry for VLA 3-GHz
*                               identified 450-um sources

C  Format for file interpretation

    3 format(
     +  I2,1X,I2,1X,F5.2,1X,A1,I1,1X,I2,1X,F5.2,1X,I2,1X,I2,1X,F5.2,
     +  1X,A1,I1,1X,I2,1X,F5.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,
     +  F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,
     +  1X,F7.2,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table4.dat')
      write(6,*) '....Loading file: table4.dat'
      do i__=1,134
        read(1,'(A128)')ar__2
        read(ar__2,3)
     +  RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,RAOh,RAOm,RAOs,DEO_,
     +  DEOd,DEOm,DEOs,rmag,e_rmag,Ksmag,e_Ksmag,S3_6,e_S3_6,S250,
     +  e_S250,S450_2,e_S450_2,S850_2,e_S850_2,SC,e_SC
        if(ar__2(25:26) .EQ. '') RAOh = iNULL__
        if(ar__2(28:29) .EQ. '') RAOm = iNULL__
        if(ar__2(31:35) .EQ. '') RAOs = rNULL__
        if(ar__2(38:38) .EQ. '') DEOd = iNULL__
        if(ar__2(40:41) .EQ. '') DEOm = iNULL__
        if(ar__2(43:47) .EQ. '') DEOs = rNULL__
        if(ar__2(49:53) .EQ. '') rmag = rNULL__
        if(ar__2(55:58) .EQ. '') e_rmag = rNULL__
        if(ar__2(60:64) .EQ. '') Ksmag = rNULL__
        if(ar__2(66:69) .EQ. '') e_Ksmag = rNULL__
        if(ar__2(71:75) .EQ. '') S3_6 = rNULL__
        if(ar__2(77:80) .EQ. '') e_S3_6 = rNULL__
        if(ar__2(104:108) .EQ. '') S850_2 = rNULL__
        if(ar__2(110:113) .EQ. '') e_S850_2 = rNULL__
        RAdeg_2 = rNULL__
        DEdeg_2 = rNULL__
c  Derive coordinates RAdeg_2 and DEdeg_2 from input data
c  (RAdeg_2 and DEdeg_2 are set to rNULL__ when unknown)
        if(RAh_2 .GT. -180) RAdeg_2=RAh_2*15.
        if(RAm_2 .GT. -180) RAdeg_2=RAdeg_2+RAm_2/4.
        if(RAs_2 .GT. -180) RAdeg_2=RAdeg_2+RAs_2/240.
        if(DEd_2 .GE. 0) DEdeg_2=DEd_2
        if(DEm_2 .GE. 0) DEdeg_2=DEdeg_2+DEm_2/60.
        if(DEs_2 .GE. 0) DEdeg_2=DEdeg_2+DEs_2/3600.
        if(DE__2.EQ.'-'.AND.DEdeg_2.GE.0) DEdeg_2=-DEdeg_2
c    ..............Just test output...........
        write(6,3)
     +  RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,DEs_2,RAOh,RAOm,RAOs,DEO_,
     +  DEOd,DEOm,DEOs,rmag,e_rmag,Ksmag,e_Ksmag,S3_6,e_S3_6,S250,
     +  e_S250,S450_2,e_S450_2,S850_2,e_S850_2,SC,e_SC
        write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table5.dat'	! Multi-wavelength photometry for MIPS 24-um
*                               identified 450-um sources

C  Format for file interpretation

    4 format(
     +  I2,1X,I2,1X,F5.2,1X,A1,I1,1X,I2,1X,F5.2,1X,I2,1X,I2,1X,F5.2,
     +  1X,A1,I1,1X,I2,1X,F5.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,
     +  F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,1X,F5.2,1X,F4.2,
     +  1X,F7.2,1X,F6.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table5.dat')
      write(6,*) '....Loading file: table5.dat'
      do i__=1,76
        read(1,'(A128)')ar__3
        read(ar__3,4)
     +  RAh_3,RAm_3,RAs_3,DE__3,DEd_3,DEm_3,DEs_3,RAOh_1,RAOm_1,
     +  RAOs_1,DEO__1,DEOd_1,DEOm_1,DEOs_1,rmag_1,e_rmag_1,Ksmag_1,
     +  e_Ksmag_1,S3_6_1,e_S3_6_1,S250_1,e_S250_1,S450_3,e_S450_3,
     +  S850_3,e_S850_3,SC_1,e_SC_1
        if(ar__3(25:26) .EQ. '') RAOh_1 = iNULL__
        if(ar__3(28:29) .EQ. '') RAOm_1 = iNULL__
        if(ar__3(31:35) .EQ. '') RAOs_1 = rNULL__
        if(ar__3(38:38) .EQ. '') DEOd_1 = iNULL__
        if(ar__3(40:41) .EQ. '') DEOm_1 = iNULL__
        if(ar__3(43:47) .EQ. '') DEOs_1 = rNULL__
        if(ar__3(49:53) .EQ. '') rmag_1 = rNULL__
        if(ar__3(55:58) .EQ. '') e_rmag_1 = rNULL__
        if(ar__3(60:64) .EQ. '') Ksmag_1 = rNULL__
        if(ar__3(66:69) .EQ. '') e_Ksmag_1 = rNULL__
        if(ar__3(71:75) .EQ. '') S3_6_1 = rNULL__
        if(ar__3(77:80) .EQ. '') e_S3_6_1 = rNULL__
        if(ar__3(104:108) .EQ. '') S850_3 = rNULL__
        if(ar__3(110:113) .EQ. '') e_S850_3 = rNULL__
        RAdeg_3 = rNULL__
        DEdeg_3 = rNULL__
c  Derive coordinates RAdeg_3 and DEdeg_3 from input data
c  (RAdeg_3 and DEdeg_3 are set to rNULL__ when unknown)
        if(RAh_3 .GT. -180) RAdeg_3=RAh_3*15.
        if(RAm_3 .GT. -180) RAdeg_3=RAdeg_3+RAm_3/4.
        if(RAs_3 .GT. -180) RAdeg_3=RAdeg_3+RAs_3/240.
        if(DEd_3 .GE. 0) DEdeg_3=DEd_3
        if(DEm_3 .GE. 0) DEdeg_3=DEdeg_3+DEm_3/60.
        if(DEs_3 .GE. 0) DEdeg_3=DEdeg_3+DEs_3/3600.
        if(DE__3.EQ.'-'.AND.DEdeg_3.GE.0) DEdeg_3=-DEdeg_3
c    ..............Just test output...........
        write(6,4)
     +  RAh_3,RAm_3,RAs_3,DE__3,DEd_3,DEm_3,DEs_3,RAOh_1,RAOm_1,
     +  RAOs_1,DEO__1,DEOd_1,DEOm_1,DEOs_1,rmag_1,e_rmag_1,Ksmag_1,
     +  e_Ksmag_1,S3_6_1,e_S3_6_1,S250_1,e_S250_1,S450_3,e_S450_3,
     +  S850_3,e_S850_3,SC_1,e_SC_1
        write(6,'(6H Pos: 2F8.4)') RAdeg_3,DEdeg_3
c    .......End.of.Just test output...........
      end do
      close(1)

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

C  Loading file 'table6.dat'	! List of 450-um sources without VLA 3GHz and
*                               MIPS 24um counterparts

C  Format for file interpretation

    5 format(
     +  I2,1X,I2,1X,F5.2,1X,A1,I1,1X,I2,1X,F5.2,1X,F5.2,1X,F4.2,1X,
     +  F5.2,1X,F5.2,1X,F4.2,1X,F4.2)

C  Effective file loading

      open(unit=1,status='old',file=
     +'table6.dat')
      write(6,*) '....Loading file: table6.dat'
      do i__=1,46
        read(1,'(A56)')ar__4
        read(ar__4,5)
     +  RAh_4,RAm_4,RAs_4,DE__4,DEd_4,DEm_4,DEs_4,S250_2,e_S250_2,
     +  S450_4,e_S450_4,S850_4,e_S850_4
        if(ar__4(48:51) .EQ. '') S850_4 = rNULL__
        if(ar__4(53:56) .EQ. '') e_S850_4 = rNULL__
        RAdeg_4 = rNULL__
        DEdeg_4 = rNULL__
c  Derive coordinates RAdeg_4 and DEdeg_4 from input data
c  (RAdeg_4 and DEdeg_4 are set to rNULL__ when unknown)
        if(RAh_4 .GT. -180) RAdeg_4=RAh_4*15.
        if(RAm_4 .GT. -180) RAdeg_4=RAdeg_4+RAm_4/4.
        if(RAs_4 .GT. -180) RAdeg_4=RAdeg_4+RAs_4/240.
        if(DEd_4 .GE. 0) DEdeg_4=DEd_4
        if(DEm_4 .GE. 0) DEdeg_4=DEdeg_4+DEm_4/60.
        if(DEs_4 .GE. 0) DEdeg_4=DEdeg_4+DEs_4/3600.
        if(DE__4.EQ.'-'.AND.DEdeg_4.GE.0) DEdeg_4=-DEdeg_4
c    ..............Just test output...........
        write(6,5)
     +  RAh_4,RAm_4,RAs_4,DE__4,DEd_4,DEm_4,DEs_4,S250_2,e_S250_2,
     +  S450_4,e_S450_4,S850_4,e_S850_4
        write(6,'(6H Pos: 2F8.4)') RAdeg_4,DEdeg_4
c    .......End.of.Just test output...........
      end do
      close(1)

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