Conversion of standardized ReadMe file for
file /./ftp/cats/J/AJ/123/637 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.5, on 2013-Jun-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__
ter (rNULL__=-1.e37) ! NULL real number
parameter (iNULL__=-2147483647) ! NULL int number
C=============================================================================
Cat. J/AJ/123/637 Ultra-steep-spectrum radio sources (De Breuck +, 2002)
*================================================================================
*Optical and near-infrared imaging of ultra-steep-spectrum radio sources:
*the K-z diagram of radio-selected and optically selected galaxies.
* De Breuck C., van Breugel W., Stanford S.A., Rottgering H., Miley G.,
* Stern D.
* <Astron. J. 123, 637 (2002)>
* =2002AJ....123..637D
C=============================================================================
C Internal variables
integer*4 i__
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table5.dat' ! Optical Photometry of USS Sources
integer*4 nr__
parameter (nr__=83) ! Number of records
character*44 ar__ ! Full-size record
character*13 v_DVR2000_ (nr__) ! Source name
real*4 z (nr__) ! ? Redshift
character*3 Run (nr__) ! Observation run number
character*4 Filt (nr__) ! [I R r_S_] Filter (1)
character*1 l_Mag (nr__) ! Limit flag on Mag
real*4 Mag (nr__) ! (mag) ? Magnitude within 4'' diameter aperture
character*1 u_Mag (nr__) ! [:] Uncertainty flag in Mag
character*1 f_Mag (nr__) ! [ad] Flag on Mag (2)
*Note (1): Filters:
* r_S_: "Spinrad night-sky" filter, {lambda}_eff_=6890{AA}, EW=1370{AA}
* Transformation from Spinrad night-sky r_S_ into Johnson VR:
* (r_S_ - R) = -0.004 - 0.072(V-R) + 0.073(V-R)^2^
*Note (2): Flag on Mag:
* d = Estimated from non-photometric conditions
* a = Nearby bright star prohibits measurement
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table6.dat' ! Astrometric Data
integer*4 nr__1
parameter (nr__1=365) ! Number of records
character*47 ar__1 ! Full-size record
real*8 RA_ (nr__1) ! (deg) Right Ascension J2000
real*8 Dec (nr__1) ! (deg) Declination J2000
character*13 v_DVR2000__1(nr__1) ! Source name (1)
character*8 Pos (nr__1) ! Source position (2)
integer*4 RAh (nr__1) ! (h) Hour of Right Ascension (J2000)
integer*4 RAm (nr__1) ! (min) Minute of Right Ascension (J2000)
real*4 RAs (nr__1) ! (s) Second of Right Ascension (J2000)
character*1 DE_ (nr__1) ! Sign of the Declination (J2000)
integer*4 DEd (nr__1) ! (deg) Degree of Declination (J2000)
integer*4 DEm (nr__1) ! (arcmin) Arcminute of Declination (J2000)
real*4 DEs (nr__1) ! (arcsec) Arcsecond of Declination (J2000)
*Note (1): Simbad designation:
* The name is [DVR2000] AA JHHMM+DDMM for the source position
* (i.e. Pos = Radio, IR or Opt)
* The name is [DVS2002] AA JHHMM+DDMM AAAAA for the offset stars
* where AAAAA = A(opt), A(IR) or B(IR)
* (i.e. Pos = A(opt), A(IR) or B(IR))
*Note (2): Source position:
* Radio = radio source position
* Opt = optical identification
* IR = near-IR identification
* A(opt) = offset star within optical image
* A(IR) = offset star within near-IR image
* B(IR) = second offset star within near-IR image
c - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
C Declarations for 'table7.dat' ! K-band Photometry and Morphology
integer*4 nr__2
parameter (nr__2=87) ! Number of records
character*109 ar__2 ! Full-size record
character*13 v_DVR2000__2(nr__2) ! Source name
real*4 z_1 (nr__2) ! ? Redshift
character*1 u_z (nr__2) ! [:] Uncertainty flag on z
character*3 Run_1 (nr__2) ! Observation run number
character*4 Filt_1 (nr__2) ! [K k' K_S_ K_s_] Filter (1)
real*4 K_A (nr__2) ! (mag) K-band extinction from H I column density
character*1 l_2mag (nr__2) ! Limit flag on 2mag
real*4 v2mag (nr__2) ! (mag) Magnitude within 2'' diameter aperture
real*4 e_2mag (nr__2) ! (mag) ? Error in 2mag (2)
character*1 f_2mag (nr__2) ! [d] Flag on 2mag (3)
real*4 v4mag (nr__2) ! (mag) ? Magnitude within 4'' diameter aperture
real*4 e_4mag (nr__2) ! (mag) ? Error in 4mag (2)
character*1 f_4mag (nr__2) ! [d] Flag on 4mag (3)
real*4 v8mag (nr__2) ! (mag) ? Magnitude within 8'' diameter aperture
real*4 e_8mag (nr__2) ! (mag) ? Error in 8mag (2)
character*1 f_8mag (nr__2) ! [d] Flag on 8mag (3)
character*1 l_HLRad (nr__2) ! Limit flag on Rad
real*4 HLRad (nr__2) ! (arcsec) ? The half-light radius
real*4 Ellipt (nr__2) ! ? Ellipticity
integer*4 PA (nr__2) ! (deg) ? Position angle
character*18 Morph (nr__2) ! Morphology information
*Note (1): Keck and CTIO filter passbands:
* K: 2.000um-2.427um
* k': 1.955um-2.292um
* K_S_: 1.990um-2.320um
* K_s_: 1.990um-2.300um
*Note (2): Includes both the zero-point uncertainty and the aperture
* centering and sky fitting uncertainties.
*Note (3): Flag on magnitudes:
* d: Estimated from non-photometric conditions.
C=============================================================================
C Loading file 'table5.dat' ! Optical Photometry of USS Sources
C Format for file interpretation
1 format(A13,1X,F5.3,1X,A3,1X,A4,1X,A1,F4.1,A1,1X,A1)
C Effective file loading
open(unit=1,file='table5.dat', status='old')
write(6,*) '....Loading file: table5.dat'
do i__=1,83
read(1,'(A44)')ar__
read(ar__,1)
+ v_DVR2000_(i__),z(i__),Run(i__),Filt(i__),l_Mag(i__),Mag(i__),
+ u_Mag(i__),f_Mag(i__)
if(ar__(15:19) .EQ. '') z(i__) = rNULL__
if(ar__(31:34) .EQ. '') Mag(i__) = rNULL__
c ..............Just test output...........
write(6,1)
+ v_DVR2000_(i__),z(i__),Run(i__),Filt(i__),l_Mag(i__),Mag(i__),
+ u_Mag(i__),f_Mag(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table6.dat' ! Astrometric Data
C Format for file interpretation
2 format(A13,1X,A8,1X,I2,1X,I2,1X,F5.2,1X,A1,I2,1X,I2,1X,F4.1)
C Effective file loading
open(unit=1,file='table6.dat', status='old')
write(6,*) '....Loading file: table6.dat'
do i__=1,365
read(1,'(A47)')ar__1
read(ar__1,2)
+ v_DVR2000__1(i__),Pos(i__),RAh(i__),RAm(i__),RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__)
c Derive coordinates RA_ and Dec from input data
c (RA_ and Dec are set to rNULL_ when unknown)
RA_(i__) = RAh(i__)
if(RAh(i__) .GE. 0) RA_(i__)=RAh(i__)*15.
if(RAm(i__) .GE. 0) RA_(i__)=RA_(i__)+RAm(i__)/4.
if(RAs(i__) .GE. 0) RA_(i__)=RA_(i__)+RAs(i__)/240.
Dec(i__) = DEd(i__)
if(DEm(i__) .GE. 0) Dec(i__)=Dec(i__)+DEm(i__)/60.
if(DEs(i__) .GE. 0) Dec(i__)=Dec(i__)+DEs(i__)/3600.
if(DE_(i__).EQ.'-'.AND.Dec(i__).GE.0) Dec(i__)=-Dec(i__)
c ..............Just test output...........
write(6,2)
+ v_DVR2000__1(i__),Pos(i__),RAh(i__),RAm(i__),RAs(i__),
+ DE_(i__),DEd(i__),DEm(i__),DEs(i__)
write(6,'(6H Pos: 2F8.4)') RA_(i__),Dec(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
C Loading file 'table7.dat' ! K-band Photometry and Morphology
C Format for file interpretation
3 format(
+ A13,1X,F5.3,A1,1X,A3,1X,A4,1X,F5.3,1X,A1,F5.2,1X,F4.2,1X,A1,
+ 1X,F5.2,1X,F4.2,1X,A1,1X,F5.2,1X,F4.2,1X,A1,1X,A1,F3.1,1X,
+ F4.2,1X,I3,1X,A18)
C Effective file loading
open(unit=1,file='table7.dat', status='old')
write(6,*) '....Loading file: table7.dat'
do i__=1,87
read(1,'(A109)')ar__2
read(ar__2,3)
+ v_DVR2000__2(i__),z_1(i__),u_z(i__),Run_1(i__),Filt_1(i__),
+ K_A(i__),l_2mag(i__),v2mag(i__),e_2mag(i__),f_2mag(i__),
+ v4mag(i__),e_4mag(i__),f_4mag(i__),v8mag(i__),e_8mag(i__),
+ f_8mag(i__),l_HLRad(i__),HLRad(i__),Ellipt(i__),PA(i__),
+ Morph(i__)
if(ar__2(15:19) .EQ. '') z_1(i__) = rNULL__
if(ar__2(44:47) .EQ. '') e_2mag(i__) = rNULL__
if(ar__2(51:55) .EQ. '') v4mag(i__) = rNULL__
if(ar__2(57:60) .EQ. '') e_4mag(i__) = rNULL__
if(ar__2(64:68) .EQ. '') v8mag(i__) = rNULL__
if(ar__2(70:73) .EQ. '') e_8mag(i__) = rNULL__
if(ar__2(78:80) .EQ. '') HLRad(i__) = rNULL__
if(ar__2(82:85) .EQ. '') Ellipt(i__) = rNULL__
if(ar__2(87:89) .EQ. '') PA(i__) = iNULL__
c ..............Just test output...........
write(6,3)
+ v_DVR2000__2(i__),z_1(i__),u_z(i__),Run_1(i__),Filt_1(i__),
+ K_A(i__),l_2mag(i__),v2mag(i__),e_2mag(i__),f_2mag(i__),
+ v4mag(i__),e_4mag(i__),f_4mag(i__),v8mag(i__),e_8mag(i__),
+ f_8mag(i__),l_HLRad(i__),HLRad(i__),Ellipt(i__),PA(i__),
+ Morph(i__)
c .......End.of.Just test output...........
end do
close(1)
C=============================================================================
stop
end