Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/413/2314 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-05
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/MNRAS/413/2314 Radio and mid-IR counterpart of submm galaxies (Biggs+, 2011)
*================================================================================
*The LABOCA survey of the Extended Chandra Deep Field-South.
*Radio and mid-infrared counterparts to submillimetre galaxies.
* Biggs A.D., Ivison R.J., Ibar E., Wardlow J.L., Dannerbauer H., Smail I.,
* Walter F., Weiss A., Chapman S.C., Coppin K.E.K., De Breuck C.,
* Dickinson M., Knudsen K.K., Mainieri V., Menten K., Papovich C.
* <Mon. Not. R. Astron. Soc., 413, 2314-2338 (2011)>
* =2011MNRAS.413.2314B (SIMBAD/NED BibCode)
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Radio properties of potential counterparts to
LESS 870um sources in the ECDF-S
integer*4 nr__
parameter (nr__=150) ! Number of records
character*115 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 Seq ! [1/126] Sequential number
character*16 LESS ! SMG name (JHHMMSS.s+DDMMSS) (G1)
character*1 n_LESS ! [*] Note on LESS (1)
integer*4 RAh ! (h) Submm right ascension (J2000)
integer*4 RAm ! (min) Submm right ascension (J2000)
real*4 RAs ! (s) Submm right ascension (J2000)
character*1 DE_ ! Submm declination sign (J2000)
integer*4 DEd ! (deg) Submm declination (J2000)
integer*4 DEm ! (arcmin) Submm declination (J2000)
real*4 DEs ! (arcsec) Submm declination (J2000)
real*4 rr ! (arcsec) Search radius for radio counterpart
integer*4 RA2h ! (h) ? Radio counterpart right ascension (J2000)
integer*4 RA2m ! (min) ? Radio counterpart right ascension (J2000)
real*8 RA2s ! (s) ? Radio counterpart right ascension (J2000)
character*1 DE2_ ! Radio counterpart declination sign (J2000)
integer*4 DE2d ! (deg) ? Radio counterpart declination (J2000)
integer*4 DE2m ! (arcmin) ? Radio counterpart declination (J2000)
real*4 DE2s ! (arcsec) ? Radio counterpart declination (J2000)
real*4 FR ! (uJy) ? 1.4GHz radio flux (2)
real*4 e_FR ! (uJy) ? rms uncertainty on FR
real*4 Off_R ! (arcsec) ? Offset between submm and radio sources
character*1 f_p_R ! [*b(s] Quality flag for counterpart (G2)
real*4 p_R ! ? Probality of spurious counterpart
character*6 n_p_R ! Additional information for p.R
*Note (1): * indicates that they are not on the Miller et al. (2008,
* Cat. J/ApJS/179/114) map; radio counterparts have instead been
* searched for using our own reduction.
*Note (2): Although not used in the p-statistic procedure, all radio fluxes
* have been corrected for flux boosting (Section 2.2.3.)
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! 24um properties of potential counterparts to
LESS 870um sources in the ECDF-S
integer*4 nr__1
parameter (nr__1=178) ! Number of records
character*116 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 Seq_1 ! [1/126] Sequential number
character*16 LESS_1 ! SMG name (JHHMMSS.s+DDMMSS) (G1)
character*1 n_LESS_1 ! [*] Note on LESS (1)
integer*4 RAh_1 ! (h) Submm right ascension (J2000)
integer*4 RAm_1 ! (min) Submm right ascension (J2000)
real*4 RAs_1 ! (s) Submm right ascension (J2000)
character*1 DE__1 ! Submm declination sign (J2000)
integer*4 DEd_1 ! (deg) Submm declination (J2000)
integer*4 DEm_1 ! (arcmin) Submm declination (J2000)
real*4 DEs_1 ! (arcsec) Submm declination (J2000)
real*4 r24 ! (arcsec) Search radius for radio counterpart
integer*4 RA2h_1 ! (h) ? 24um counterpart right ascension (J2000)
integer*4 RA2m_1 ! (min) ? 24um counterpart right ascension (J2000)
real*8 RA2s_1 ! (s) ? 24um counterpart right ascension (J2000)
character*1 DE2__1 ! 24um counterpart declination sign (J2000)
integer*4 DE2d_1 ! (deg) ? 24um counterpart declination (J2000)
integer*4 DE2m_1 ! (arcmin) ? 24um counterpart declination (J2000)
real*4 DE2s_1 ! (arcsec) ? 24um counterpart declination (J2000)
real*4 F24 ! (uJy) ? 24um flux
real*4 e_F24 ! (uJy) ? rms uncertainty on F24
real*4 Off_24 ! (arcsec) ? Offset between 24um and radio sources
character*1 f_p24 ! [*b(] Quality flag for counterpart (G2)
real*4 p24 ! ? Probability of spurious counterpart
character*7 n_p24 ! Additional information for p24
*Note (1): * indicates not fully covered by the FIDEL map.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table3.dat' ! IRAC properties of potential counterparts to
LESS 870um sources in the ECDF-S that do not have
robust counterparts identified in either the radio
or at 24um and fall within the colour-flux cut
shown in Fig. 3
integer*4 nr__2
parameter (nr__2=77) ! Number of records
character*116 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 Seq_2 ! [1/126] Sequential number
character*16 LESS_2 ! SMG name (JHHMMSS.s+DDMMSS)
character*1 n_LESS_2 ! [*] Note on LESS (1)
integer*4 RAh_2 ! (h) Submm right ascension (J2000)
integer*4 RAm_2 ! (min) Submm right ascension (J2000)
real*4 RAs_2 ! (s) Submm right ascension (J2000)
character*1 DE__2 ! Submm declination sign (J2000)
integer*4 DEd_2 ! (deg) Submm declination (J2000)
integer*4 DEm_2 ! (arcmin) Submm declination (J2000)
real*4 DEs_2 ! (arcsec) Submm declination (J2000)
real*4 r5_8 ! (arcsec) Search radius for radio counterpart
integer*4 RA2h_2 ! (h) ? 5.8um counterpart right ascension (J2000)
integer*4 RA2m_2 ! (min) ? 5.8um counterpart right ascension (J2000)
real*8 RA2s_2 ! (s) ? 5.8um counterpart right ascension (J2000)
character*1 DE2__2 ! 5.8um counterpart declination sign (J2000)
integer*4 DE2d_2 ! (deg) ? 5.8um counterpart declination (J2000)
integer*4 DE2m_2 ! (arcmin) ? 5.8um counterpart declination (J2000)
real*4 DE2s_2 ! (arcsec) ? 5.8um counterpart declination (J2000)
real*4 F5_8 ! (uJy) ? 5.8um flux
real*4 e_F5_8 ! (uJy) ? rms uncertainty on F5.8
real*4 Offset5_8 ! (arcsec) ? Offset between 5.8um and radio sources
character*1 f_p5_8 ! [*b(] Quality flag for counterpart (G2)
real*4 p5_8 ! ? Probality of counterpart
character*7 n_p5_8 ! Additional information for p5.8
*Note (1): * indicates not fully covered by the SIMPLE data at both 3.6um
* and 5.8um and so counterparts for them could not be found with this
* method.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! *Summary of counterparts to SMGs
integer*4 nr__3
parameter (nr__3=89) ! Number of records
character*52 ar__3 ! Full-size record
integer*4 Seq_3 ! [1/126] Sequential number
real*4 F870 ! (mJy) ? Flux at 870um
real*4 e_F870 ! (mJy) ? rms uncertainty on F870
real*4 F24_1 ! (uJy) ? Flux at 24um
real*4 e_F24_1 ! (uJy) ? rms uncertainty on F24
real*4 FR_1 ! (uJy) ? Flux at 21cm (1.4GHz)
real*4 e_FR_1 ! (uJy) ? rms uncertainty on FR
real*4 z ! ? Redshift estimated from the
* submm/radio spectral index (1)
real*4 E_z ! ? Error on z (upper value)
real*4 e_z_1 ! ? Error on z (lower value)
*Note (1): LESS063 and 118 have not had redshifts calculated as the radio
* emission may be spurious. We have also not calculated the redshifts
* when there are multiple robust radio counterparts.
C=============================================================================
C Loading file 'table1.dat' ! Radio properties of potential counterparts to
* LESS 870um sources in the ECDF-S
C Format for file interpretation
1 format(
+ I3,6X,A16,A1,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F4.1,
+ 1X,I2,1X,I2,1X,F7.4,1X,A1,I2,1X,I2,1X,F6.3,1X,F6.1,1X,F4.1,1X,
+ F3.1,3X,A1,1X,F5.3,1X,A6)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,150
read(1,'(A115)')ar__
read(ar__,1)
+ Seq,LESS,n_LESS,RAh,RAm,RAs,DE_,DEd,DEm,DEs,rr,RA2h,RA2m,RA2s,
+ DE2_,DE2d,DE2m,DE2s,FR,e_FR,Off_R,f_p_R,p_R,n_p_R
if(ar__(56:57) .EQ. '') RA2h = iNULL__
if(ar__(59:60) .EQ. '') RA2m = iNULL__
if(ar__(62:68) .EQ. '') RA2s = rNULL__
if(ar__(71:72) .EQ. '') DE2d = iNULL__
if(ar__(74:75) .EQ. '') DE2m = iNULL__
if(ar__(77:82) .EQ. '') DE2s = rNULL__
if(ar__(84:89) .EQ. '') FR = rNULL__
if(ar__(91:94) .EQ. '') e_FR = rNULL__
if(ar__(96:98) .EQ. '') Off_R = rNULL__
if(ar__(104:108) .EQ. '') p_R = 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)
+ Seq,LESS,n_LESS,RAh,RAm,RAs,DE_,DEd,DEm,DEs,rr,RA2h,RA2m,RA2s,
+ DE2_,DE2d,DE2m,DE2s,FR,e_FR,Off_R,f_p_R,p_R,n_p_R
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! 24um properties of potential counterparts to
* LESS 870um sources in the ECDF-S
C Format for file interpretation
2 format(
+ I3,6X,A16,A1,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F4.1,
+ 1X,I2,1X,I2,1X,F7.4,1X,A1,I2,1X,I2,1X,F6.3,1X,F6.1,1X,F4.1,1X,
+ F3.1,3X,A1,1X,F5.3,1X,A7)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,178
read(1,'(A116)')ar__1
read(ar__1,2)
+ Seq_1,LESS_1,n_LESS_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,
+ DEs_1,r24,RA2h_1,RA2m_1,RA2s_1,DE2__1,DE2d_1,DE2m_1,DE2s_1,
+ F24,e_F24,Off_24,f_p24,p24,n_p24
if(ar__1(56:57) .EQ. '') RA2h_1 = iNULL__
if(ar__1(59:60) .EQ. '') RA2m_1 = iNULL__
if(ar__1(62:68) .EQ. '') RA2s_1 = rNULL__
if(ar__1(71:72) .EQ. '') DE2d_1 = iNULL__
if(ar__1(74:75) .EQ. '') DE2m_1 = iNULL__
if(ar__1(77:82) .EQ. '') DE2s_1 = rNULL__
if(ar__1(84:89) .EQ. '') F24 = rNULL__
if(ar__1(91:94) .EQ. '') e_F24 = rNULL__
if(ar__1(96:98) .EQ. '') Off_24 = rNULL__
if(ar__1(104:108) .EQ. '') p24 = 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)
+ Seq_1,LESS_1,n_LESS_1,RAh_1,RAm_1,RAs_1,DE__1,DEd_1,DEm_1,
+ DEs_1,r24,RA2h_1,RA2m_1,RA2s_1,DE2__1,DE2d_1,DE2m_1,DE2s_1,
+ F24,e_F24,Off_24,f_p24,p24,n_p24
write(6,'(6H Pos: 2F8.4)') RAdeg_1,DEdeg_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table3.dat' ! IRAC properties of potential counterparts to
* LESS 870um sources in the ECDF-S that do not have
* robust counterparts identified in either the radio
* or at 24um and fall within the colour-flux cut
* shown in Fig. 3
C Format for file interpretation
3 format(
+ I3,6X,A16,A1,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1,1X,F4.1,
+ 1X,I2,1X,I2,1X,F7.4,1X,A1,I2,1X,I2,1X,F6.3,3X,F4.1,2X,F3.1,1X,
+ F3.1,3X,A1,1X,F5.3,1X,A7)
C Effective file loading
open(unit=1,status='old',file=
+'table3.dat')
write(6,*) '....Loading file: table3.dat'
do i__=1,77
read(1,'(A116)')ar__2
read(ar__2,3)
+ Seq_2,LESS_2,n_LESS_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,
+ DEs_2,r5_8,RA2h_2,RA2m_2,RA2s_2,DE2__2,DE2d_2,DE2m_2,DE2s_2,
+ F5_8,e_F5_8,Offset5_8,f_p5_8,p5_8,n_p5_8
if(ar__2(56:57) .EQ. '') RA2h_2 = iNULL__
if(ar__2(59:60) .EQ. '') RA2m_2 = iNULL__
if(ar__2(62:68) .EQ. '') RA2s_2 = rNULL__
if(ar__2(71:72) .EQ. '') DE2d_2 = iNULL__
if(ar__2(74:75) .EQ. '') DE2m_2 = iNULL__
if(ar__2(77:82) .EQ. '') DE2s_2 = rNULL__
if(ar__2(86:89) .EQ. '') F5_8 = rNULL__
if(ar__2(92:94) .EQ. '') e_F5_8 = rNULL__
if(ar__2(96:98) .EQ. '') Offset5_8 = rNULL__
if(ar__2(104:108) .EQ. '') p5_8 = 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)
+ Seq_2,LESS_2,n_LESS_2,RAh_2,RAm_2,RAs_2,DE__2,DEd_2,DEm_2,
+ DEs_2,r5_8,RA2h_2,RA2m_2,RA2s_2,DE2__2,DE2d_2,DE2m_2,DE2s_2,
+ F5_8,e_F5_8,Offset5_8,f_p5_8,p5_8,n_p5_8
write(6,'(6H Pos: 2F8.4)') RAdeg_2,DEdeg_2
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4.dat' ! *Summary of counterparts to SMGs
C Format for file interpretation
4 format(
+ I3,1X,F4.1,1X,F3.1,1X,F6.1,1X,F4.1,1X,F6.1,1X,F4.1,2X,F4.2,1X,
+ F4.2,1X,F4.2)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,89
read(1,'(A52)')ar__3
read(ar__3,4)
+ Seq_3,F870,e_F870,F24_1,e_F24_1,FR_1,e_FR_1,z,E_z,e_z_1
if(ar__3(5:8) .EQ. '') F870 = rNULL__
if(ar__3(10:12) .EQ. '') e_F870 = rNULL__
if(ar__3(14:19) .EQ. '') F24_1 = rNULL__
if(ar__3(21:24) .EQ. '') e_F24_1 = rNULL__
if(ar__3(26:31) .EQ. '') FR_1 = rNULL__
if(ar__3(33:36) .EQ. '') e_FR_1 = rNULL__
if(ar__3(39:42) .EQ. '') z = rNULL__
if(ar__3(44:47) .EQ. '') E_z = rNULL__
if(ar__3(49:52) .EQ. '') e_z_1 = rNULL__
c ..............Just test output...........
write(6,4)
+ Seq_3,F870,e_F870,F24_1,e_F24_1,FR_1,e_FR_1,z,E_z,e_z_1
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end