Conversion of standardized ReadMe file for
file /./ftp/cats/J/MNRAS/366/1265 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-Sep-06
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/366/1265 CENSORS infrared imaging (Brookes+, 2006)
*================================================================================
*CENSORS: A Combined EIS-NVSS Survey of Radio Sources -
*II. Infrared imaging and the K-z relation.
* Brookes M.H., Best P.N., Rengelink R., Roettgering H.J.A.
* <Mon. Not. R. Astron. Soc., 366, 1265-1288 (2006)>
* =2006MNRAS.366.1265B
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table1.dat' ! Details of observing runs for K-band imaging
of CENSORS.
integer*4 nr__
parameter (nr__=6) ! Number of records
character*38 ar__ ! Full-size record
integer*4 Run ! Run number
character*1 n_Run ! [*] Note on Run (1)
character*21 Dates ! Dates of observation
character*5 Tel ! Telescope name
character*5 Inst ! Instrument name
integer*4 Night ! Number of photometric nights
*Note (1): *: included in this data set are two observations made in
* service mode: CENSORS 51 and 98 in 2002 November 27 and
* 2003 February 4, respectively.
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table2.dat' ! Details of K-band observations of CENSORS and
results.
integer*4 nr__1
parameter (nr__1=154) ! Number of records
character*117 ar__1 ! 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 CENSORS ! CENSORS sequential number
character*1 m_CENSORS ! [ABCDE] Muntiplicity index on CENSORS number
integer*4 EISD ! EISD sequential number
integer*4 Run1 ! ? Observation run
integer*4 Run2 ! ? Observation run
integer*4 Run3 ! ? Observation run
real*8 ExpTime1 ! (s) ? Exposure time
integer*4 ExpTime2 ! (s) ? Exposure time
integer*4 ExpTime3 ! (s) ? Exposure time
integer*4 RAh ! (h) ? Right ascension (J2000)
integer*4 RAm ! (min) ? Right ascension (J2000)
real*4 RAs ! (s) ? Right ascension (J2000)
character*1 DE_ ! Declination sign (J2000)
integer*4 DEd ! (deg) ? Declination (J2000)
integer*4 DEm ! (arcmin) ? Declination (J2000)
real*4 DEs ! (arcsec) ? Declination (J2000)
real*4 Kmag1 ! (mag) ? K magnitude in aperture of radius 1arcsec
real*4 e_Kmag1 ! (mag) ? rms uncertainty on Kmag1
real*4 Kmag1_5 ! (mag) ? K magnitude in aperture of radius 1.5arcsec
real*4 e_Kmag1_5 ! (mag) ? rms uncertainty on Kmag1.5
real*4 Kmag2_5 ! (mag) ? K magnitude in aperture of radius 2.5arcsec
real*4 e_Kmag2_5 ! (mag) ? rms uncertainty on Kmag2.5
real*4 Kmag4_5 ! (mag) ? K magnitude in aperture of radius 4.5arcsec
real*4 e_Kmag4_5 ! (mag) ? rms uncertainty on Kmag4.5
real*4 Kmago ! (mag) ? K magnitude in aperture of radius theta
real*4 e_Kmago ! (mag) ? rms uncertainty on Kmago
character*3 theta ! Radius for the Kmago aperture (0.5 or rec)
real*4 KmagLim ! (mag) ? 2{sigma} limit K magnitude, for undetected
* sources, based upon a 1" radius aperture
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table4.dat' ! Aperture-corrected K-band magnitudes for all
sources with a measured spectroscopic redshift
(presented in Paper 3, in prep.) and a K-band
detection.
integer*4 nr__2
parameter (nr__2=77) ! Number of records
character*35 ar__2 ! Full-size record
integer*4 CENSORS_1 ! CENSORS sequential number
integer*4 EISD_1 ! EISD sequential number
real*4 z ! Redshift
real*4 thetam ! (arcsec) Aperture radius used to measure the
* K-band magnitude
real*4 Kmag_thetam ! (mag) Measured aperture magnitude
* (in thetam radius)
real*4 Kmag ! (mag) Magnitude after correction to 63.9kpc
integer*4 e_Kmag ! (0.01mag) rms uncertainty on Kmag
character*1 Class ! [GQS] Classification (1)
*Note (1): Classification as follows:
* G = radio galaxies
* Q = quasars
* S = star forming galaxies
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'notes.dat' ! Individual notes
integer*4 nr__3
parameter (nr__3=123) ! Number of records
character*80 ar__3 ! Full-size record
integer*4 CENSORS_2 ! CENSORS sequential number
character*76 Note ! Text of the note
C=============================================================================
C Loading file 'table1.dat' ! Details of observing runs for K-band imaging
* of CENSORS.
C Format for file interpretation
1 format(I1,A1,1X,A21,1X,A5,1X,A5,1X,I1)
C Effective file loading
open(unit=1,status='old',file=
+'table1.dat')
write(6,*) '....Loading file: table1.dat'
do i__=1,6
read(1,'(A38)')ar__
read(ar__,1)Run,n_Run,Dates,Tel,Inst,Night
c ..............Just test output...........
write(6,1)Run,n_Run,Dates,Tel,Inst,Night
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table2.dat' ! Details of K-band observations of CENSORS and
* results.
C Format for file interpretation
2 format(
+ I3,A1,1X,I3,1X,I1,1X,I1,1X,I1,1X,F7.2,1X,I4,1X,I4,1X,I2,1X,I2,
+ 1X,F5.2,1X,A1,I2,1X,I2,1X,F5.2,1X,F5.2,1X,F3.2,1X,F5.2,1X,
+ F3.2,1X,F5.2,1X,F3.2,1X,F5.2,1X,F3.2,1X,F5.2,1X,F3.2,1X,A3,2X,
+ F4.1)
C Effective file loading
open(unit=1,status='old',file=
+'table2.dat')
write(6,*) '....Loading file: table2.dat'
do i__=1,154
read(1,'(A117)')ar__1
read(ar__1,2)
+ CENSORS,m_CENSORS,EISD,Run1,Run2,Run3,ExpTime1,ExpTime2,
+ ExpTime3,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Kmag1,e_Kmag1,Kmag1_5,
+ e_Kmag1_5,Kmag2_5,e_Kmag2_5,Kmag4_5,e_Kmag4_5,Kmago,e_Kmago,
+ theta,KmagLim
if(ar__1(10:10) .EQ. '') Run1 = iNULL__
if(ar__1(12:12) .EQ. '') Run2 = iNULL__
if(ar__1(14:14) .EQ. '') Run3 = iNULL__
if(ar__1(16:22) .EQ. '') ExpTime1 = rNULL__
if(ar__1(24:27) .EQ. '') ExpTime2 = iNULL__
if(ar__1(29:32) .EQ. '') ExpTime3 = iNULL__
if(ar__1(34:35) .EQ. '') RAh = iNULL__
if(ar__1(37:38) .EQ. '') RAm = iNULL__
if(ar__1(40:44) .EQ. '') RAs = rNULL__
if(ar__1(47:48) .EQ. '') DEd = iNULL__
if(ar__1(50:51) .EQ. '') DEm = iNULL__
if(ar__1(53:57) .EQ. '') DEs = rNULL__
if(ar__1(59:63) .EQ. '') Kmag1 = rNULL__
if(ar__1(65:67) .EQ. '') e_Kmag1 = rNULL__
if(ar__1(69:73) .EQ. '') Kmag1_5 = rNULL__
if(ar__1(75:77) .EQ. '') e_Kmag1_5 = rNULL__
if(ar__1(79:83) .EQ. '') Kmag2_5 = rNULL__
if(ar__1(85:87) .EQ. '') e_Kmag2_5 = rNULL__
if(ar__1(89:93) .EQ. '') Kmag4_5 = rNULL__
if(ar__1(95:97) .EQ. '') e_Kmag4_5 = rNULL__
if(ar__1(99:103) .EQ. '') Kmago = rNULL__
if(ar__1(105:107) .EQ. '') e_Kmago = rNULL__
if(ar__1(114:117) .EQ. '') KmagLim = 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,2)
+ CENSORS,m_CENSORS,EISD,Run1,Run2,Run3,ExpTime1,ExpTime2,
+ ExpTime3,RAh,RAm,RAs,DE_,DEd,DEm,DEs,Kmag1,e_Kmag1,Kmag1_5,
+ e_Kmag1_5,Kmag2_5,e_Kmag2_5,Kmag4_5,e_Kmag4_5,Kmago,e_Kmago,
+ theta,KmagLim
write(6,'(6H Pos: 2F8.4)') RAdeg,DEdeg
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table4.dat' ! Aperture-corrected K-band magnitudes for all
* sources with a measured spectroscopic redshift
* (presented in Paper 3, in prep.) and a K-band
* detection.
C Format for file interpretation
3 format(I3,1X,I3,1X,F6.4,1X,F3.1,1X,F5.2,1X,F5.2,1X,I2,1X,A1)
C Effective file loading
open(unit=1,status='old',file=
+'table4.dat')
write(6,*) '....Loading file: table4.dat'
do i__=1,77
read(1,'(A35)')ar__2
read(ar__2,3)
+ CENSORS_1,EISD_1,z,thetam,Kmag_thetam,Kmag,e_Kmag,Class
c ..............Just test output...........
write(6,3)
+ CENSORS_1,EISD_1,z,thetam,Kmag_thetam,Kmag,e_Kmag,Class
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'notes.dat' ! Individual notes
C Format for file interpretation
4 format(I3,1X,A76)
C Effective file loading
open(unit=1,status='old',file=
+'notes.dat')
write(6,*) '....Loading file: notes.dat'
do i__=1,123
read(1,'(A80)')ar__3
read(ar__3,4)CENSORS_2,Note
c ..............Just test output...........
write(6,4)CENSORS_2,Note
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end